GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Merge releases/v4 into releases/v3 by github-actions[bot] · Pull Request #3778 · github/codeql-action Conversation
|
|
Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR merges changes from releases/v4 into releases/v3, bringing over improvements to diff-informed analysis/overlay behavior, release tooling/scripts, and several dependency/version updates needed for the v3 release line.
Changes:
init and reuse them in analyze and overlay change-file computation.git ls-files OID collection to --stage.pr-checks/, plus related config/docs/workflow updates.Copilot reviewed 39 out of 47 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/testing-utils.ts | Enhances test logger utilities (message matching, negative assertions) and refactors getRecordingLogger. |
| src/start-proxy.ts | Fixes PAT-with-username warning logic by restructuring the condition. |
| src/start-proxy.test.ts | Expands credentials warning coverage and introduces a shared AVA macro pattern. |
| src/overlay/index.ts | Merges diff-range file paths into overlay changed-file list; adds diff-range JSON reading/conversion logic. |
| src/overlay/index.test.ts | Adds tests for overlay changes merging and source-root-relative conversion behavior. |
| src/init-action.ts | Computes and persists PR diff ranges during init for later reuse. |
| src/git-utils.ts | Lowers overlay Git minimum to 2.11.0 and updates OID collection to parse git ls-files --stage. |
| src/git-utils.test.ts | Updates tests for new git ls-files --stage output parsing. |
| src/diff-informed-analysis-utils.ts | Centralizes diff-range JSON path and hardens JSON parsing with error handling. |
| src/defaults.json | Bumps default bundle/CLI versions to 2.25.1 (and shifts prior versions accordingly). |
| src/config-utils.test.ts | Updates overlay fallback test to reflect the new minimum Git version (2.11.0). |
| src/analyze.ts | Switches diff-informed analysis setup to read precomputed diff ranges rather than recomputing. |
| src/analyze-action.ts | Updates analyze flow to call the new setupDiffInformedQueryRun(logger) signature. |
| src/actions-util.ts | Adds a shared helper for locating pr-diff-range.json in the temp directory. |
| pr-checks/sync-checks.ts | New TS tool to sync required checks using the GitHub API and exclusions config. |
| pr-checks/sync-checks.test.ts | Unit tests for required-check exclusion filtering logic. |
| pr-checks/release-branches.ts | New TS tool to compute backport source/targets based on tags and support policy. |
| pr-checks/release-branches.test.ts | Unit tests for backport-branch computation and input validation. |
| pr-checks/package.json | Adds dependencies needed for the new pr-checks scripts and bumps yaml. |
| pr-checks/excluded.yml | New config file defining which checks should be excluded from “required checks”. |
| pr-checks/config.ts | Centralizes pr-checks constants (oldest supported major version, exclusions path). |
| pr-checks/checks/rubocop-multi-language.yml | Updates pinned ruby/setup-ruby SHA/version used by the check. |
| package.json | Bumps action version to 3.35.0 and updates dev dependency versions. |
| package-lock.json | Updates lockfile for dependency bumps (but currently has inconsistent version metadata). |
| eslint.config.mjs | Tightens extraneous-dependency checks for pr-checks and adjusts config structure. |
| CONTRIBUTING.md | Updates contributor instructions to reference the new TS required-checks tool and config location. |
| CHANGELOG.md | Adds v3.35.0 entry including Git minimum reduction and default bundle update. |
| .vscode/tests.code-snippets | Adds a VS Code snippet for an AVA test macro template. |
| .github/workflows/script/update-required-checks.sh | Removes the legacy shell script now replaced by TS tooling. |
| .github/releases.ini | Removes legacy support-policy config file (moved to pr-checks config). |
| .github/actions/release-initialise/action.yml | Ensures Node is set up (with npm cache) for release workflows/actions. |
| .github/actions/release-branches/release-branches.py | Removes legacy Python backport-branch computation script. |
| .github/actions/release-branches/action.yml | Switches release-branches action to run the TS implementation via tsx. |
| .github/workflows/__rubocop-multi-language.yml | Generated workflow update reflecting new ruby/setup-ruby pin (not reviewed). |
| lib/* | Generated build artifacts updated (not reviewed). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| let diffRanges: Array<{ path: string }>; | ||
| try { | ||
| diffRanges = JSON.parse(contents) as Array<{ path: string }>; | ||
| } catch (e) { | ||
| logger.warning( | ||
| `Failed to parse diff ranges JSON file at ${jsonFilePath}: ${e}`, | ||
| ); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
After JSON.parse, diffRanges is assumed to be Array<{path: string}> (uses .length, .map). If the file is malformed but still valid JSON (e.g. an object, or array entries without a string path), this will throw later and can break overlay generation. Add runtime validation (array + string path) and fall back to []/warning on invalid shape.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const check = (val: string) => | ||
| typeof messageOrRegExp === "string" | ||
| ? val.includes(messageOrRegExp) | ||
| : messageOrRegExp.test(val); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
hasLoggedMessage uses RegExp.test(). If callers pass a global/sticky regex (e.g. /foo/g), test() mutates lastIndex, which can make subsequent checks incorrect/flaky. Consider normalizing by resetting lastIndex to 0 before testing, or by using a non-global copy of the regex.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.