| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR updates the PR-check specification templates and their generated workflows, with the stated goal of reducing macOS coverage for Go tracing checks on older CodeQL bundle versions.
Changes:
Copilot reviewed 57 out of 57 changed files in this pull request and generated 3 comments.
Show a summary per file| File | Description |
|---|---|
| pr-checks/checks/with-checkout-path.yml | Reformat versions list |
| pr-checks/checks/upload-sarif.yml | Reformat versions/analysisKinds |
| pr-checks/checks/upload-ref-sha-input.yml | Reformat versions list |
| pr-checks/checks/swift-custom-build.yml | Reformat versions/operatingSystems |
| pr-checks/checks/swift-autobuild.yml | Reformat versions/operatingSystems |
| pr-checks/checks/submit-sarif-failure.yml | Reformat versions list |
| pr-checks/checks/start-proxy.yml | Reformat operatingSystems/versions |
| pr-checks/checks/split-workflow.yml | Reformat lists; move comment |
| pr-checks/checks/ruby.yml | Reformat versions/operatingSystems |
| pr-checks/checks/rubocop-multi-language.yml | Reformat versions list |
| pr-checks/checks/resolve-environment-action.yml | Reformat versions list |
| pr-checks/checks/packaging-inputs-js.yml | Reformat versions; move comment |
| pr-checks/checks/packaging-config-js.yml | Reformat versions; move comment |
| pr-checks/checks/packaging-config-inputs-js.yml | Reformat versions; move comment |
| pr-checks/checks/packaging-codescanning-config-inputs-js.yml | Reformat versions; move comment |
| pr-checks/checks/overlay-init-fallback.yml | Reformat versions list |
| pr-checks/checks/multi-language-autodetect.yml | Update description; reformat OS list |
| pr-checks/checks/local-bundle.yml | Reformat versions list |
| pr-checks/checks/language-aliases.yml | Reformat versions list |
| pr-checks/checks/job-run-uuid-sarif.yml | Reformat versions list |
| pr-checks/checks/javascript-source-root.yml | Reformat versions; move comment |
| pr-checks/checks/init-with-registries.yml | Convert bracketed versions to list |
| pr-checks/checks/go-tracing-legacy-workflow.yml | Add osCodeQlVersions for macOS |
| pr-checks/checks/go-tracing-custom-build-steps.yml | Add osCodeQlVersions for macOS |
| pr-checks/checks/go-tracing-autobuilder.yml | Add osCodeQlVersions for macOS |
| pr-checks/checks/go-indirect-tracing-workaround.yml | Reformat versions list |
| pr-checks/checks/go-indirect-tracing-workaround-no-file-program.yml | Reformat versions list |
| pr-checks/checks/go-indirect-tracing-workaround-diagnostic.yml | Reformat versions list |
| pr-checks/checks/global-proxy.yml | Reformat versions list |
| pr-checks/checks/extractor-ram-threads.yml | Reformat versions list |
| pr-checks/checks/export-file-baseline-information.yml | Reformat operatingSystems/versions |
| pr-checks/checks/diagnostics-export.yml | Reformat versions list |
| pr-checks/checks/cpp-deptrace-enabled.yml | Reformat versions list |
| pr-checks/checks/cpp-deptrace-enabled-on-macos.yml | Reformat OS/versions lists |
| pr-checks/checks/cpp-deptrace-disabled.yml | Reformat versions list |
| pr-checks/checks/config-input.yml | Reformat versions list |
| pr-checks/checks/config-export.yml | Reformat versions list |
| pr-checks/checks/cleanup-db-cluster-dir.yml | Reformat versions list |
| pr-checks/checks/bundle-zstd.yml | Reorder operatingSystems list |
| pr-checks/checks/bundle-toolcache.yml | Reorder operatingSystems list |
| pr-checks/checks/build-mode-rollback.yml | Reformat versions list |
| pr-checks/checks/build-mode-none.yml | Reformat versions list |
| pr-checks/checks/build-mode-manual.yml | Reformat versions list |
| pr-checks/checks/build-mode-autobuild.yml | Reformat OS/versions lists |
| pr-checks/checks/autobuild-working-dir.yml | Reformat versions list |
| pr-checks/checks/autobuild-direct-tracing-with-working-dir.yml | Reformat OS/versions lists |
| pr-checks/checks/autobuild-action.yml | Reformat OS/versions lists |
| pr-checks/checks/analyze-ref-input.yml | Reformat versions list |
| pr-checks/checks/analysis-kinds.yml | Reformat versions/analysisKinds |
| pr-checks/checks/all-platform-bundle.yml | Reformat OS/versions lists |
| .github/workflows/__resolve-environment-action.yml | Regenerated workflow output |
| .github/workflows/__multi-language-autodetect.yml | Regenerated workflow output |
| .github/workflows/__go-tracing-legacy-workflow.yml | Regenerated workflow output |
| .github/workflows/__go-tracing-custom-build-steps.yml | Regenerated workflow output |
| .github/workflows/__go-tracing-autobuilder.yml | Regenerated workflow output |
| .github/workflows/__bundle-zstd.yml | Regenerated workflow output |
| .github/workflows/__bundle-toolcache.yml | Regenerated workflow output |
Sorry, something went wrong.
| // If osCodeQlVersions is set for this OS, only include the specified CodeQL versions. | ||
| const allowedVersions = | ||
| checkSpecification.osCodeQlVersions?.[operatingSystem]; | ||
| if (allowedVersions && !allowedVersions.includes(version)) { | ||
| continue; | ||
| } |
There was a problem hiding this comment.
osCodeQlVersions is assumed to be a string[], but if a template accidentally provides a scalar (e.g. macos: linked) or other non-array value, this code will still run (because strings have .includes) and can silently produce an incomplete/incorrect matrix. Consider validating allowedVersions with Array.isArray(...) (and throwing a clear error if not), and optionally validating that the osCodeQlVersions keys match entries in operatingSystems to catch typos early.
Sorry, something went wrong.
There was a problem hiding this comment.
Might be worth adding a JSON schema for the PR checks to validate this, rather than needing to validate each property individually. I think this is best left to a future PR.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with one minor thought on maintainability.
Sorry, something went wrong.
| versions: | ||
| - linked | ||
| - default | ||
| - nightly-latest |
There was a problem hiding this comment.
Stray thought: it could be useful to be able to flip this around and specify what we don't want to run on.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, our approach could use a rethink. We support a bunch of Action / CLI combinations, but is impractical to run PR checks against every combination so in practice most checks just run against linked, default, and nightly-latest. Providing CI is sufficiently unflaky though, it could be useful to start running nightly checks against the full set of combinations.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Drop Go macOS tests on older CodeQL versions due to usage in production being predominantly Linux and using up to date CodeQL versions.