-
Notifications
You must be signed in to change notification settings - Fork 1
[codex] Fix sync review source regressions #1909
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -194,7 +194,17 @@ def _append_parse_error_detail( | |||||
| details[index] = replace(existing, count=existing.count + detail.count) | ||||||
| return | ||||||
|
|
||||||
| details.append(replace(detail, line=None)) | ||||||
| for index, existing in enumerate(details): | ||||||
| if ( | ||||||
| existing.path == detail.path | ||||||
| and existing.artifact == detail.artifact | ||||||
| and existing.artifact_family == detail.artifact_family | ||||||
| and existing.reason == detail.reason | ||||||
| ): | ||||||
| details[index] = replace(existing, line=None, count=existing.count + detail.count) | ||||||
| return | ||||||
|
|
||||||
| details[-1] = replace(detail, line=None, count=details[-1].count + detail.count) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the detail buffer is full and a new error reason appears that is not already compacted, this branch overwrites Useful? React with 👍 / 👎.
|
||||||
| details[-1] = replace(detail, line=None, count=details[-1].count + detail.count) | |
| details[-1] = replace(details[-1], line=None, count=details[-1].count + detail.count) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ jobs: | |
| steps: | ||
| - name: Check PR is merged | ||
| id: check-merged | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
|
||
| with: | ||
| github-token: ${{ github.token }} | ||
| script: | | ||
|
|
@@ -66,7 +66,7 @@ jobs: | |
|
|
||
| - name: Checkout repository | ||
| if: steps.check-merged.outputs.merged == 'true' | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| repository: stranske/Workflows | ||
| token: ${{ steps.select-token.outputs.token }} | ||
|
|
@@ -103,7 +103,7 @@ jobs: | |
| - name: Collect verification and original issue data | ||
| id: collect | ||
| if: steps.check-merged.outputs.merged == 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| with: | ||
| github-token: ${{ steps.select-token.outputs.token }} | ||
| script: | | ||
|
|
@@ -248,7 +248,7 @@ jobs: | |
| - name: Check chain depth limit | ||
| id: chain-check | ||
| if: steps.check-merged.outputs.merged == 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| CHAIN_DEPTH: ${{ steps.collect.outputs.chain_depth }} | ||
| MAX_CHAIN_DEPTH: '2' | ||
|
|
@@ -389,7 +389,7 @@ jobs: | |
| steps.check-merged.outputs.merged == 'true' && | ||
| steps.chain-check.outputs.exceeded != 'true' && | ||
| steps.extract-verdict.outputs.needs_human == 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| LINKED_ISSUE: ${{ steps.collect.outputs.original_issue_number }} | ||
| NEEDS_HUMAN_REASON: ${{ steps.extract-verdict.outputs.needs_human_reason }} | ||
|
|
@@ -505,7 +505,7 @@ jobs: | |
| steps.check-merged.outputs.merged == 'true' && | ||
| steps.chain-check.outputs.exceeded != 'true' && | ||
| steps.extract-verdict.outputs.needs_human != 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| FOLLOW_UP_DEPTH: ${{ steps.chain-check.outputs.next_depth }} | ||
| EXTRACTED_VERDICT: ${{ steps.extract-verdict.outputs.verdict }} | ||
|
|
@@ -677,7 +677,7 @@ jobs: | |
| steps.check-merged.outputs.merged == 'true' && | ||
| steps.chain-check.outputs.exceeded != 'true' && | ||
| steps.extract-verdict.outputs.needs_human != 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| ISSUE_TITLE: >- | ||
| ${{ steps.generate.outputs.issue_title || | ||
|
|
@@ -779,7 +779,7 @@ jobs: | |
| steps.chain-check.outputs.exceeded != 'true' && | ||
| steps.extract-verdict.outputs.needs_human != 'true' && | ||
| steps.create-issue.outputs.issue_number != '' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| ISSUE_NUMBER: ${{ steps.create-issue.outputs.issue_number }} | ||
| DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
|
|
@@ -816,7 +816,7 @@ jobs: | |
| steps.check-merged.outputs.merged == 'true' && | ||
| steps.chain-check.outputs.exceeded != 'true' && | ||
| steps.extract-verdict.outputs.needs_human != 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| env: | ||
| ISSUE_NUMBER: ${{ steps.create-issue.outputs.issue_number }} | ||
| ISSUE_URL: ${{ steps.create-issue.outputs.issue_url }} | ||
|
|
@@ -870,7 +870,7 @@ jobs: | |
| FOLLOWUP_ISSUE_NUMBER: ${{ steps.create-issue.outputs.issue_number }} | ||
| FOLLOWUP_ISSUE_URL: ${{ steps.create-issue.outputs.issue_url }} | ||
| DISPATCH_AUTOPILOT_OUTCOME: ${{ steps.dispatch-autopilot.outcome }} | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| with: | ||
| github-token: ${{ steps.select-token.outputs.token }} | ||
| script: | | ||
|
|
@@ -1006,7 +1006,7 @@ jobs: | |
|
|
||
| - name: Upload terminal disposition artifact | ||
| if: always() && steps.check-merged.outputs.merged == 'true' | ||
| uses: actions/upload-artifact@v7 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: verifier-terminal-disposition-${{ github.run_id }} | ||
| path: | | ||
|
|
@@ -1017,7 +1017,7 @@ jobs: | |
|
|
||
| - name: Remove trigger label | ||
| if: steps.check-merged.outputs.merged == 'true' | ||
| uses: actions/github-script@v9 | ||
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 | ||
| continue-on-error: true | ||
| with: | ||
| github-token: ${{ steps.select-token.outputs.token }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -194,7 +194,17 @@ def _append_parse_error_detail( | |||||
| details[index] = replace(existing, count=existing.count + detail.count) | ||||||
| return | ||||||
|
|
||||||
| details.append(replace(detail, line=None)) | ||||||
| for index, existing in enumerate(details): | ||||||
| if ( | ||||||
| existing.path == detail.path | ||||||
| and existing.artifact == detail.artifact | ||||||
| and existing.artifact_family == detail.artifact_family | ||||||
| and existing.reason == detail.reason | ||||||
| ): | ||||||
| details[index] = replace(existing, line=None, count=existing.count + detail.count) | ||||||
| return | ||||||
|
|
||||||
| details[-1] = replace(detail, line=None, count=details[-1].count + detail.count) | ||||||
|
||||||
| details[-1] = replace(detail, line=None, count=details[-1].count + detail.count) | |
| details[-1] = replace(details[-1], line=None, count=details[-1].count + detail.count) |
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.
This workflow now pins some actions by commit SHA, but
actions/setup-python@v6is still referenced by a floating tag later in the job. The repo’s action-pinning policy calls for SHA pinning to avoid tag retags changing workflow behavior (docs/ci/ACTIONS_PINNING.md). Please pin setup-python to a commit SHA as well for consistency and supply-chain integrity.