Chuan-kai Lin
e47147711b
build: refresh js files
2025-08-08 10:36:17 -07:00
Henry Mercer
cfb8d07200
Remove unnecessary String initializations
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-05 11:18:46 +01:00
Henry Mercer
c481481d7d
Merge branch 'main' into henrymercer/language-extensibility
2025-08-05 11:07:39 +01:00
Koen Vlaswinkel
e30db30685
Ignore pre-release parts when comparing GHES versions
2025-07-16 11:51:53 +02:00
Koen Vlaswinkel
c6a6c1490f
Move comment to JSDoc
2025-07-14 13:18:38 +02:00
Koen Vlaswinkel
59d67fc4bf
Fix parsing of GHES pre-release versions
2025-07-14 11:25:20 +02:00
Henry Mercer
3b57965c44
Remove per-language hardcoded traced/scanned info
2025-05-30 17:58:19 +01:00
Henry Mercer
f681ad69a7
Add utility function to get testing environment
2025-05-14 14:10:19 +01:00
Ian Lynagh
146dd5cfb0
npm run build
2025-02-26 15:12:53 +00:00
Angela P Wen
8d2753b250
Add public changelog blog post link
2025-01-10 08:52:16 -08:00
Angela P Wen
04b5afaa72
Convert deprecation warning to error
2025-01-07 13:59:42 -08:00
Henry Mercer
b58f4471c8
Use @actions/io to locate binaries
2024-12-19 14:21:06 +00:00
github-actions[bot]
44e03577b2
Rebuild
2024-12-03 18:39:38 +00:00
Angela P Wen
b500b62cea
Throw configuration error when tar is not available
2024-11-18 11:21:11 -08:00
Michael B. Gale
7bc6222c12
Allow warnings in tryGetFolderBytes to be suppressed
...
To avoid confusing run annotations when dependency caching is enabled
2024-11-12 15:16:18 +00:00
Dave Bartolomeo
7e9defdf1b
Support YAML in CODEQL_ACTION_EXTRA_OPTIONS
2024-10-18 17:23:16 -04:00
Henry Mercer
28db28fc03
Improve clean up if extraction fails
2024-10-02 15:45:55 +01:00
Henry Mercer
dd7307d603
Refactoring: Simplify retrieving error message
2024-09-16 22:38:35 +02:00
Angela P Wen
7e27807413
Only run check SIP enablement once in init step ( #2441 )
...
Co-authored-by: Henry Mercer <henrymercer@github.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-23 09:17:22 -07:00
Angela P Wen
202b3b97bf
Stop checking disk usage for MacOS ARM with SIP disabled ( #2434 )
...
* Stop checking disk usage for MacOS ARM with SIP disabled
On MacOS ARM machines where SIP is disabled, after the build tracer is initialized in the `init` Action, we receive warnings when we run send status reports due to the `df` binary. This change will make it so that we no longer run `df` for those machines.
2024-08-20 16:04:03 -07:00
Remco Vermeulen
7c2bec0cc3
Merge remote-tracking branch 'upstream/main' into rvermeulen/extend-init-complete-status-report
2024-08-06 09:11:17 -07:00
Henry Mercer
ecb9ccfcb1
Fix new linter errors
2024-08-05 19:22:26 +01:00
Remco Vermeulen
7be3a64c02
Move cloneObject into utilities and export it.
2024-07-31 17:56:06 -07:00
github-actions[bot]
9cf3243b0b
Rebuild
2024-06-25 09:21:42 +00:00
Angela P Wen
ac2f82a1ff
Log warning if SIP is disabled and CLI version is < 2.15.1 ( #2261 )
...
* PR Checks: use `macos-12` runners for CLI v. < 2.15.1
Prior to CLI v2.15.1, MacOS ARM runners were not supported by the build tracer. "macos-latest" is now an ARM runner, so we run these tests on the old CLIs on Intel runners instead.
* Log a warning if SIP is disabled and CLI is < 2.15.1
* Add changenote for SIP-disabled support on old CLI versions
* Set up Python 3.11 for all MacOS checks
2024-04-25 22:20:13 +00:00
Henry Mercer
5b74166227
Move BuildMode to util.ts
2024-04-12 16:37:13 +01:00
Henry Mercer
1a60a91726
Remove support for CodeQL v2.12.5 and earlier
2024-04-09 12:29:14 +01:00
dependabot[bot]
5e882999f1
Bump the npm group with 2 updates ( #2190 )
...
* Bump the npm group with 2 updates
Bumps the npm group with 2 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) and [typescript](https://github.com/Microsoft/TypeScript ).
Updates `@typescript-eslint/eslint-plugin` from 7.1.0 to 7.1.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.1/packages/eslint-plugin )
Updates `typescript` from 5.3.3 to 5.4.2
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.3...v5.4.2 )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
...
Signed-off-by: dependabot[bot] <support@github.com >
* Rebuild sources
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2024-03-12 07:27:21 -07:00
Angela P Wen
8cb81db135
Add unit tests for getCgroupCpuCountFromCpus
2024-02-16 12:48:04 +00:00
Angela P Wen
ef0a773901
Account for existing but empty cpus file
...
If a CPU file exists but is empty, previously we reported this file with a CPU count of 1, which resulted in a single-threaded run.
2024-02-15 16:18:04 +00:00
Angela P Wen
1515e2bb20
Refactor configuration errors ( #2105 )
...
Refactor the existing classes of configuration errors into their own file; consolidate the place we check for configuration errors into `codeql.ts`, where the actual command invocations happen.
Also, rename the `UserError` type to `ConfigurationError` to standardize on a single term.
2024-02-08 17:20:03 +00:00
Henry Mercer
f9dea84e29
Status report: Handle failures determining disk usage
2024-02-02 16:31:04 +00:00
Angela P Wen
65c74964a9
Respect Linux cgroup CPU number for --threads value ( #2083 )
...
We want to respect cgroup constraints so that when we run in a container, we respect the limits set for the container rather than use the host OS's number of cores.
We check both `/sys/fs/cgroup/cpuset.cpus.effective` (`cgroup v2`) and `/sys/fs/cgroup/cpuset.cpus` (`cgroup v1`) to find the number of cores available. We also check `sys/fs/cgroup/cpu.max` (v1, v2) to calculate the number of cores from the limits set in this file.
The max threads value is set to the minimum of these values, and if no values were found in these files, we default to the original value of the host OS.
2024-01-23 14:50:06 +00:00
nickfyson
e86ee7f7b4
fix typo in comment
2024-01-19 15:03:13 +00:00
nickfyson
4f9fb97304
update wording of deprecation warning
2024-01-19 15:01:15 +00:00
nickfyson
a854253aca
ensure deprecation warning is only shown once per job
2024-01-19 14:55:54 +00:00
nickfyson
f72cffc780
add v2 deprecation warning
2024-01-18 20:51:16 +00:00
Henry Mercer
415881f4cf
Remove code specific to GitHub AE
2024-01-08 13:28:39 +00:00
Henry Mercer
1d367b0bec
Improve error categorizations
2023-12-01 17:54:38 +00:00
Andrew Eisenberg
4e80a80354
Use delay instead of wait
...
Need to also change the signature of delay to allow this to happen.
2023-11-15 13:14:19 -08:00
Andrew Eisenberg
df9b50ee5f
Address comments from review
...
- Change error messages.
- Use logger instead of core
- throw Error instead of write error message
2023-11-15 12:54:26 -08:00
Michael B. Gale
74b46628c3
Support features key in version JSON output
2023-10-04 11:28:28 +01:00
Henry Mercer
ebbadee09e
Remove ML-powered queries
2023-10-02 17:20:50 +01:00
Henry Mercer
378bbcd274
Don't log invalid cgroup memory limits
2023-09-27 13:56:20 +01:00
Henry Mercer
6846be007d
Address review comments
2023-09-18 16:00:59 +01:00
Henry Mercer
0e74cd1660
Handle cgroup file containing MAX_INT on ubuntu-20.04
2023-09-18 13:44:02 +01:00
Henry Mercer
379f89dc53
Log cgroup RAM limits
2023-09-18 13:05:29 +01:00
Henry Mercer
9bfb9ba527
Handle files that exist but whose contents are not integers
2023-09-15 18:23:25 +01:00
Henry Mercer
d4c26876d3
Improve docs
2023-09-15 18:17:13 +01:00
Henry Mercer
d6f9faae0d
Respect RAM constraints imposed by Linux cgroups
2023-09-15 18:09:37 +01:00