-
Notifications
You must be signed in to change notification settings - Fork 129
[2.4.0 stack 14/18] Follow-ups: banks dataset, source citations, holidays helper, SonarJS, OpenSSF Scorecard, SBOM, tree-shaking report, phone fix #525
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
Open
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e0f4e2d
chore(data): refresh the banks dataset from the current Bacen STR list
hyanmandian b79cef0
docs: fix the examples and source citations the function-by-function …
hyanmandian 73e43a5
refactor(holidays): move the holiday date resolution to an internal h…
hyanmandian cdf8729
ci(tree-shaking): weigh the same export set on both sides and tell me…
hyanmandian e16aadf
ci(datasets): validate the refreshed datasets and detect new files be…
hyanmandian 4018376
ci(tree-shaking): lead the report with the size impact and collapse t…
hyanmandian 5981dd3
ci(lint): run the SonarJS rules through the oxlint JS plugin and fix …
hyanmandian a8a3987
ci(security): publish an OpenSSF Scorecard for the repository
hyanmandian bcc853a
ci(release): attach a CycloneDX SBOM to every GitHub release
hyanmandian 5c34f47
fix(phone): read a bare 55 before a service number as the country code
hyanmandian 3ab1b44
docs: state the supported Node.js range instead of 20+ in the feature…
hyanmandian 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
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.
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.
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.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Treat every unexpected nonzero exit code as a comparison failure.
The workflow treats only exit code
2as a comparison failure. A Node launch failure or terminated process can return another code, such as127or137.If the PR has the
tree-shaking: acceptedlabel, that code bypasses both failure steps. The job can then pass without a valid comparison.Use code
1only for regressions. Treat every other nonzero code as a comparison failure.Proposed condition changes
Also applies to: 146-150
🤖 Prompt for AI Agents
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.
Fixed at the tip of the stack: the compare step now maps every exit code other than 0 and 1 to code 2 (case "$code" in 0 | 1) ;; *) code=2 ;; esac), so a killed or missing Node process reaches the comparison-failure branch, which the tree-shaking: accepted label does not cover; code 1 stays the regression signal.
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.
🧩 Analysis chain
🏁 Script executed:
Length of output: 4036
@hyanmandian, I could not verify this fix in the checked revision.The compare step still exports the raw process exit code. It does not map exit codes other than
0and1to2.The report and failure steps still handle only
code == '2'as a comparison failure. Therefore, an exit code such as127or137can still be bypassed by thetree-shaking: acceptedlabel.Please ensure the tip includes the exit-code mapping and update the workflow failure conditions if needed.
You are interacting with an AI system.