Skip to content

ci: purge archived repos and fix date logic in contributor metrics wo… - #2356

Draft
shellyco-code wants to merge 2 commits into
flatcar:mainfrom
shellyco-code:feat/cleanup-metrics-workflow-repos
Draft

ci: purge archived repos and fix date logic in contributor metrics wo…#2356
shellyco-code wants to merge 2 commits into
flatcar:mainfrom
shellyco-code:feat/cleanup-metrics-workflow-repos

Conversation

@shellyco-code

Copy link
Copy Markdown

Fixes #2355

This PR cleans up the monthly contributor metrics GitHub Actions workflow (.github/workflows/issue-pr-contrib-metrics.yaml):

  • Purged Archived Repositories: Removed flatcar/torcx (superseded by sysext-bakery / systemd-sysext) and flatcar/ign-converter from the REPOSITORY metrics list string to ensure community reports only track active repositories.
  • Robust Date Calculation: Replaced date -d "last month" with deterministic month-start calculations (date -d "$(date +%Y-%m-01) -1 month") to eliminate date calculation bugs when running workflows on month-end dates.

How to use

Reviewers can validate this PR by inspecting .github/workflows/issue-pr-contrib-metrics.yaml and confirming that archived repos are removed from the REPOSITORY string and bash date logic uses month-start bounds.

Testing done

  • Validated YAML syntax and verified bash date string logic using local git diff inspection.

  • Verified commit sign-off (git commit -s).

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

…rkflow

- Remove deprecated/archived repos (flatcar/torcx and flatcar/ign-converter) from REPOSITORY metrics string.
- Refactor GNU date calculation to use deterministic month-start calculations.

Signed-off-by: shellyco-code <shellyco-code@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[RFE] Purge archived repositories and fix date logic in issue-pr-contrib-metrics workflow

1 participant