Repository navigation
feat: implement issue #629 — Compliance: non-stub-feature-ideation.yml #805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6c766b1
feat: implement issue #629 — Compliance: non-stub-feature-ideation.yml
donpetry-bot 7fa85f6
chore: apply manual instructions [skip ci-relay]
donpetry-bot ae20902
fix(bot): address bot feedback [skip ci-relay]
donpetry-bot f9595ab
Merge branch 'main' into dev-lead/issue-629-20260619-1533
don-petry 35bf565
Merge branch 'main' into dev-lead/issue-629-20260619-1533
don-petry 0769db0
Merge branch 'main' into dev-lead/issue-629-20260619-1533
don-petry 03f48b9
Merge branch 'main' into dev-lead/issue-629-20260619-1533
don-petry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| #!/usr/bin/env bats | ||
| # Regression tests for .github/workflows/feature-ideation.yml compliance. | ||
| # | ||
| # Guards the invariants checked by the weekly org compliance audit | ||
| # (check: non-stub-feature-ideation.yml) to prevent re-filing of the | ||
| # "reusable not pinned to @v1" finding (#629). | ||
| # | ||
| # Run with: bats tests/test_feature_ideation.bats | ||
|
|
||
| FEATURE_IDEATION_YML=".github/workflows/feature-ideation.yml" | ||
|
|
||
| # Canonical reusable + v1 pin from | ||
| # petry-projects/.github/standards/workflows/feature-ideation.yml | ||
| REUSABLE="petry-projects/.github/.github/workflows/feature-ideation-reusable.yml" | ||
| V1_SHA="897e4dede3518cdd7273b9dc63e607d0d05cbdda" | ||
| # The superseded pin the audit flagged (#629). | ||
| V2_SHA="376a4fcb1117444595e3e702fa450873d0e54310" | ||
|
|
||
| setup() { | ||
| # Run tests from repo root so relative paths resolve correctly. | ||
| cd "$(dirname "$BATS_TEST_FILENAME")/.." | ||
| } | ||
|
|
||
| @test "feature-ideation.yml exists" { | ||
| [ -f "$FEATURE_IDEATION_YML" ] | ||
| } | ||
|
|
||
| @test "feature-ideation.yml calls the org reusable workflow" { | ||
| grep -qF "uses: ${REUSABLE}@" "$FEATURE_IDEATION_YML" | ||
| } | ||
|
|
||
| @test "feature-ideation.yml pins the reusable to the v1 SHA (compliance-audit check)" { | ||
| grep -qF "uses: ${REUSABLE}@${V1_SHA}" "$FEATURE_IDEATION_YML" | ||
| } | ||
|
|
||
| @test "feature-ideation.yml uses: line is annotated # v1" { | ||
| grep -qE "uses: ${REUSABLE}@${V1_SHA}[[:space:]]+# v1" "$FEATURE_IDEATION_YML" | ||
| } | ||
|
|
||
| @test "feature-ideation.yml is not pinned to the superseded v2 SHA" { | ||
| [ -f "$FEATURE_IDEATION_YML" ] && ! grep -qF "$V2_SHA" "$FEATURE_IDEATION_YML" | ||
| } | ||
|
don-petry marked this conversation as resolved.
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.