Repository navigation
ci: skip Claude for failures that open issues already cover #265
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
5 commits
Select commit
Hold shift + click to select a range
a22deec
ci: skip Claude for failures that open issues already cover
Patai5 b1709f7
ci: mark every workflow script bundle as generated
Patai5 03c0ec8
ci: keep failure signature logic in pure functions
Patai5 dfb7135
ci: type the github-script arguments with proper imports
Patai5 3d0628c
ci: fix skipped investigations and tighten failure signatures
Patai5 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # Generated by `npm run bundle`: collapsed in GitHub diffs and shown as binary by git diff. | ||
| .github/cli/apify-test-tools.mjs linguist-generated=true -diff | ||
| .github/scripts/run-with-apify-tokens.mjs linguist-generated=true -diff | ||
| .github/scripts/*.mjs linguist-generated=true -diff |
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,52 @@ | ||
| name: Match failures to known issues | ||
| description: >- | ||
| `match` matches the run's failing tests to open issues by failure signature, `record` records the signatures that | ||
| matched nothing on the issue that now covers them. See workflow-scripts-src/failure-signatures.ts. | ||
| inputs: | ||
| mode: | ||
| description: '`match` or `record`' | ||
| required: true | ||
| new-issue-number: | ||
| description: The issue the investigation opened, if any, for `record`. | ||
| required: false | ||
| default: '' | ||
| outputs: | ||
| all-known: | ||
| description: '`true` when every failure matches an open issue' | ||
| value: ${{ steps.script.outputs.all-known }} | ||
| note: | ||
| description: When only some failures match, which issues cover them and which failing tests are left | ||
| value: ${{ steps.script.outputs.note }} | ||
|
|
||
| # The script ships with this action as a bundle (npm run bundle), so nothing is checked out or installed. | ||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Run the script | ||
| id: script | ||
| uses: actions/github-script@v9 | ||
| env: | ||
| MODE: ${{ inputs.mode }} | ||
| NEW_ISSUE_NUMBER: ${{ inputs.new-issue-number }} | ||
| MATCHES_PATH: ${{ runner.temp }}/failure-signatures.json | ||
| SCRIPT_PATH: ${{ github.action_path }}/../../scripts/failure-signatures.mjs | ||
| with: | ||
| script: | | ||
| const { matchKnownFailures, recordSignatures } = await import(process.env.SCRIPT_PATH); | ||
| const workspace = process.env.GITHUB_WORKSPACE; | ||
| const params = { github, context, core, matchesPath: process.env.MATCHES_PATH }; | ||
| if (process.env.MODE === 'match') { | ||
| await matchKnownFailures({ | ||
| ...params, | ||
| reportPath: `${workspace}/vitest-results/test-report.json`, | ||
| duplicatesPath: `${workspace}/duplicate-of.txt`, | ||
| }); | ||
| } else if (process.env.MODE === 'record') { | ||
| await recordSignatures({ | ||
| ...params, | ||
| dedupePath: `${workspace}/dedupe.json`, | ||
| newIssueNumber: Number(process.env.NEW_ISSUE_NUMBER) || undefined, | ||
| }); | ||
| } else { | ||
| throw new Error(`Unsupported mode '${process.env.MODE}'. Use 'match' or 'record'.`); | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this to the no diff thing. We did the same to the other files that we compile like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ b1709f7