ci: dynamic repository matrix generation for contributor metrics - #2269
Open
Rucha0901 wants to merge 1 commit into
Open
ci: dynamic repository matrix generation for contributor metrics#2269Rucha0901 wants to merge 1 commit into
Rucha0901 wants to merge 1 commit into
Conversation
- Add python script .github/scripts/fetch_active_repos.py to fetch active non-archived repos via GitHub REST API with fallback to MAINTAINERS.md. - Add unit test suite .github/scripts/test_fetch_active_repos.py. - Update .github/workflows/issue-pr-contrib-metrics.yaml to fetch repos dynamically and fix SC2129 shellcheck warning. - Add actionlint and script unit test CI workflow .github/workflows/contrib-metrics-test.yml. Signed-off-by: Rucha0901 <imt_2025071@iiitm.ac.in>
Member
|
Hi @Rucha0901, thanks for opening this PR! A couple of questions before we dig into review - it's pretty challenging to read through the description.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Dynamic Repository Matrix Generation for Contributor Metrics CI
Summary of Changes
Dynamic Repository Discovery Script (
.github/scripts/fetch_active_repos.py):/orgs/flatcar/repos) with pagination to dynamically list all active, non-archived, and non-fork repositories.MAINTAINERS.mdif API calls fail or return no results.$GITHUB_ENV(REPOSITORIES=flatcar/repo1,flatcar/repo2,...).Unit Tests (
.github/scripts/test_fetch_active_repos.py):MAINTAINERS.md, and$GITHUB_ENVexport.Workflow Enhancements (
.github/workflows/issue-pr-contrib-metrics.yaml):Fetch active repositoriespre-step using.github/scripts/fetch_active_repos.py.${{ env.REPOSITORIES }}.summary_report.mdandcomment_report.mdredirections into block redirects.CI & Verification (
.github/workflows/contrib-metrics-test.yml):actionlintto automatically check syntax and lint errors across all workflow files..github/scripts/.Verification Evidence
python3 -m unittest discover -s .github/scripts -v(4/4 tests passed).actionlint .github/workflows/*.yaml .github/workflows/*.yml(0 syntax errors / warnings).python3 .github/scripts/fetch_active_repos.pyagainst live GitHub API (discovered 53 active repositories).Signed-off-by: Rucha0901 imt_2025071@iiitm.ac.in