Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A arch-release-promotion
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • arch-release-promotion
  • Merge requests
  • !5

Read openmetrics of different types

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged David Runge requested to merge issues/11 into master Jul 31, 2021
  • Overview 1
  • Commits 3
  • Pipelines 2
  • Changes 9

arch_release_promotion/release.py: Add Metric, SizeMetric, AmountMetric and |VersionMetric| models, that track metrics with size, amount or version (respectively). Change the Release model to use amount_metrics, size_metrics and version_metrics attributes instead of info.

arch_release_promotion/config.py: Change the ReleaseConfig model to track version_metrics, size_metrics and amount_metrics instead of info_metrics.

arch_release_promotion/files.py: Change read_metrics_file() to return a tuple of AmountMetric, SizeMetric and VersionMetric lists and read the provided file only if it exists.

arch_release_promotion/cli.py: Change main() to correctly initialize instances of Release with the different types of metrics.

tests/*: Change the tests to match the changes in signature and attributes.

Fixes #11 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: issues/11