Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
4c96123
Add support for linux/arm64
redsun82 Aug 4, 2026
43ae5e7
Address review comments
redsun82 Aug 5, 2026
b4c390c
Merge remote-tracking branch 'origin/main' into redsun82-linux-arm64-…
redsun82 Aug 10, 2026
9875827
Bump @octokit/types from 16.0.0 to 17.0.0
dependabot[bot] Aug 13, 2026
93d793c
Use `json` module for JSON validation in `output-cache`
mario-campos Aug 14, 2026
cb9d39f
Export `getCommandCacheFilePath` function for use in tests
mario-campos Aug 14, 2026
d7d901a
Refactor tests to use `getCommandCacheFilePath`
mario-campos Aug 14, 2026
c8ba2d2
Refactor `isVersionInfo` with `json` module
mario-campos Aug 14, 2026
f3deecb
Refactor `OutputCache` with `json` module
mario-campos Aug 14, 2026
b60777a
Delete unnecessary statement from JSDoc comments
mario-campos Aug 14, 2026
1f46830
Fix `VersionInfo` derived type to pass linter
mario-campos Aug 14, 2026
b5d3438
Refactor tests in `output-cache.test.ts` to use named imports from `o…
mario-campos Aug 14, 2026
fcd8d74
Refactor output-caching functions to accept file path dependency
mario-campos Aug 14, 2026
97b7459
Merge remote-tracking branch 'origin/main' into redsun82-linux-arm64-…
redsun82 Aug 21, 2026
a952c07
Merge branch 'main' into redsun82-linux-arm64-support
redsun82 Aug 24, 2026
c05e445
Report tools download durations on both download paths
henrymercer Aug 24, 2026
bee82de
Add tools download durations to the init status report
henrymercer Aug 24, 2026
9d89e2d
Rebuild
henrymercer Aug 24, 2026
b5383aa
Merge remote-tracking branch 'origin/redsun82-linux-arm64-support' in…
redsun82 Aug 25, 2026
0f2e2bd
Update changelog and version after v4.37.9
github-actions[bot] Aug 26, 2026
f375656
Rebuild
github-actions[bot] Aug 26, 2026
42c2ea9
Document merge-commit requirement for release PRs
redsun82 Aug 26, 2026
3e93618
Merge pull request #4105 from github/henrymercer/tools-download-telem…
henrymercer Aug 26, 2026
4d40c93
Merge pull request #4108 from github/mergeback/v4.37.9-to-main-cdf488f5
henrymercer Aug 26, 2026
ec1bd19
Bump actions/setup-java from 5.7.0 to 6.0.0 in /.github/workflows
dependabot[bot] Aug 26, 2026
0006c77
Bump the npm-minor group across 1 directory with 2 updates
dependabot[bot] Aug 26, 2026
d75af13
Rebuild
github-actions[bot] Aug 26, 2026
dc5bc53
Rebuild
github-actions[bot] Aug 26, 2026
426c104
Create `changetool` script for validating change-notes
mario-campos Aug 25, 2026
580da89
Handle file errors as `false`
mario-campos Aug 27, 2026
5aea817
Replace `Array.prototype.every()` with `for` loop
mario-campos Aug 27, 2026
50ec5a5
Use `Object.hasOwn` instead of `in` operator
mario-campos Aug 27, 2026
0447ab2
Enhance changenote validation to support nested bullet lists
mario-campos Aug 27, 2026
be555cf
Extend scripts/changetool as a NPM workspace
mario-campos Aug 27, 2026
e2cd31e
Refactor tsconfig.json to extend base configuration and simplify options
mario-campos Aug 27, 2026
cacb7b3
Delete unused script/changetool NPM scripts
mario-campos Aug 27, 2026
6441b26
Merge remote-tracking branch 'origin/main' into redsun82-linux-arm64-…
redsun82 Aug 27, 2026
76ba03b
Merge branch 'main' into redsun82-release-merge-instructions
redsun82 Aug 27, 2026
7acc225
Merge pull request #4110 from github/redsun82-release-merge-instructions
redsun82 Aug 27, 2026
6d4d5df
Merge pull request #4089 from github/dependabot/npm_and_yarn/octokit/…
henrymercer Aug 27, 2026
4d1d53e
Bump @octokit/plugin-paginate-rest from 14.0.0 to 15.0.0
dependabot[bot] Aug 27, 2026
abc579a
Merge pull request #4112 from github/dependabot/npm_and_yarn/npm-mino…
henrymercer Aug 27, 2026
1a8ddd7
Rebuild
github-actions[bot] Aug 27, 2026
0963041
Merge pull request #4090 from github/dependabot/npm_and_yarn/octokit/…
henrymercer Aug 27, 2026
25694c0
Bump @octokit/plugin-rest-endpoint-methods from 17.0.0 to 18.0.0
dependabot[bot] Aug 27, 2026
f049ecb
Delete unused Node.js flag `--experimental-test-module-mocks`
mario-campos Aug 27, 2026
1bcdd0c
Derive the API client type from `@actions/github`
henrymercer Aug 27, 2026
6f53031
Merge pull request #4113 from github/mario-campos/add-changenote-script
mario-campos Aug 27, 2026
0250090
Address review comments
redsun82 Aug 28, 2026
50e2448
Update dependencies
mbg Sep 1, 2026
a0c7312
Merge pull request #4096 from github/mario-campos/use-json-module
mario-campos Sep 1, 2026
ccd5275
Merge branch 'main' into dependabot/github_actions/dot-github/workflo…
mbg Sep 2, 2026
276e2ce
Merge pull request #4117 from github/mbg/deps/1sep
mbg Sep 2, 2026
bb36f80
Bump browserslist from 4.24.2 to 4.28.8
dependabot[bot] Sep 2, 2026
da21771
Bump the npm-minor group across 1 directory with 2 updates
dependabot[bot] Sep 2, 2026
2a03009
Bump eslint-plugin-jsdoc from 62.9.0 to 64.2.1
dependabot[bot] Sep 2, 2026
b724a86
Rebuild
github-actions[bot] Sep 2, 2026
4cccb3a
Merge pull request #4072 from github/redsun82-linux-arm64-support
redsun82 Sep 3, 2026
20ec60c
Merge branch 'main' into dependabot/npm_and_yarn/eslint-plugin-jsdoc-…
mbg Sep 3, 2026
9509fd0
Merge pull request #4120 from github/dependabot/npm_and_yarn/eslint-p…
mbg Sep 3, 2026
25da1b1
Merge branch 'main' into dependabot/npm_and_yarn/npm-minor-21ac56865f
mbg Sep 3, 2026
3ee8a93
Merge branch 'main' into dependabot/npm_and_yarn/browserslist-4.28.8
mbg Sep 3, 2026
9401a33
Merge pull request #4118 from github/dependabot/npm_and_yarn/browsers…
mbg Sep 3, 2026
1024994
Merge pull request #4119 from github/dependabot/npm_and_yarn/npm-mino…
mbg Sep 3, 2026
5914b03
Merge pull request #4111 from github/dependabot/github_actions/dot-gi…
mbg Sep 3, 2026
2f3c1c9
Add an internal `job-status` input to the `init` Action
henrymercer Sep 3, 2026
38dd4a0
Don't record an overlay status when the job was cancelled
henrymercer Sep 3, 2026
36cbf13
Address review comments
redsun82 Sep 3, 2026
9fddc16
Merge pull request #4088 from github/dependabot/npm_and_yarn/octokit/…
henrymercer Sep 4, 2026
ceb85f2
Distinguish GitHub-hosted runners from ones that look hosted
henrymercer Sep 4, 2026
762a5ed
Add a helper to delete the CodeQL tools from the toolcache
henrymercer Sep 4, 2026
4a0b22e
Delete unused CodeQL bundles from the toolcache before downloading
henrymercer Sep 4, 2026
a7a90f3
Enable toolcache cleanup in the multi-language PR check
henrymercer Sep 4, 2026
2681b03
Add a changelog note
henrymercer Sep 4, 2026
1331773
Address Copilot review feedback
henrymercer Sep 4, 2026
e13c3dc
Only clean up a toolcache on the workspace filesystem
henrymercer Sep 4, 2026
16da747
Log found databases in Linux Arm64 check
redsun82 Sep 4, 2026
d2fe508
Don't upload the ESLint SARIF from merge queue refs
henrymercer Sep 4, 2026
657964c
Read the job status from a `ReadOnlyEnv` in `recordOverlayStatus`
henrymercer Sep 4, 2026
a48f2d3
Record an overlay status only for conclusive job statuses
henrymercer Sep 4, 2026
e06b60f
Merge pull request #4125 from github/henrymercer/merge-queue-sarif-up…
henrymercer Sep 4, 2026
46dfb14
Merge pull request #4123 from github/redsun82-address-pr-4072-comments
henrymercer Sep 4, 2026
31da345
Address review comments
henrymercer Sep 4, 2026
313a0b9
Merge pull request #4122 from github/henrymercer/friendly-potato
henrymercer Sep 4, 2026
034db72
Merge remote-tracking branch 'origin/main' into henrymercer/toolcache…
Copilot Sep 7, 2026
deece8f
Apply suggestion from @henrymercer
henrymercer Sep 7, 2026
40a6b38
Address toolcache cleanup review feedback
henrymercer Sep 8, 2026
977e6ce
Merge pull request #4124 from github/henrymercer/toolcache-bundle-cle…
henrymercer Sep 8, 2026
40484b3
Update default bundle to codeql-bundle-v2.27.0
github-actions[bot] Sep 9, 2026
0b7ca40
Add changelog note
github-actions[bot] Sep 9, 2026
8c251e7
Merge pull request #4129 from github/update-bundle/codeql-bundle-v2.27.0
henrymercer Sep 9, 2026
bfcc52b
Run slow macOS checks on larger runners
henrymercer Sep 9, 2026
7e08580
Merge pull request #4130 from github/henrymercer/workflow-runner-sizing
henrymercer Sep 9, 2026
02d5093
Update changelog for v4.38.0
github-actions[bot] Sep 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor OutputCache with json module
  • Loading branch information
mario-campos committed Aug 14, 2026
commit f3deecb42da34b56edc2fe889712eab8c0e2b600
12 changes: 5 additions & 7 deletions lib/entry-points.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions src/cli/output-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ import { VersionInfo, versionInfoBaseSchema } from "./types";
export type CommandCacheKey = string;

/**
* The type of the command cache that is persisted to disk.
* The JSON schema of the command cache that is persisted to disk.
*/
export interface OutputCache {
cmd: string;
entries: Record<CommandCacheKey, unknown>;
}
const outputCacheSchema = {
cmd: json.string,
entries: json.object({}),
} as const satisfies json.Schema;

/**
* The type that describes the command cache that is persisted to disk. This type
* is partially derived from {@link outputCacheSchema}.
*/
export type OutputCache = json.FromSchema<typeof outputCacheSchema> & {
entries: { version: VersionInfo };
};

/**
* The name of the temporary file that backs the on-disk cache of
Expand Down Expand Up @@ -138,13 +146,7 @@ function isVersionInfo(x: unknown): x is VersionInfo {
function isOutputCache(x: unknown): x is OutputCache {
return (
json.isObject(x) &&
json.validateSchema(
{
cmd: json.string,
entries: json.object({}),
} as const satisfies json.Schema,
x,
) &&
json.validateSchema(outputCacheSchema, x) &&
json.isObject<{ version: unknown }>(x.entries) &&
isVersionInfo(x.entries.version)
);
Expand Down
Loading