Compare commits

...

16 commits

Author SHA1 Message Date
dependabot[bot]
5e8e2091c7
Merge 7f5cd168b9 into c319d26b5f 2025-03-31 01:52:56 +00:00
Graham Christensen
c319d26b5f
Merge pull request #164 from DeterminateSystems/dependabot/github_actions/crazy-max/ghaction-import-gpg-6.3.0
Some checks are pending
CI / typescript-action (push) Waiting to run
CI / validate (push) Waiting to run
build(deps): bump crazy-max/ghaction-import-gpg from 6.2.0 to 6.3.0
2025-03-30 21:52:52 -04:00
dependabot[bot]
37001efe5b
build(deps): bump crazy-max/ghaction-import-gpg from 6.2.0 to 6.3.0
Bumps [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases)
- [Commits](cb9bde2e25...e89d40939c)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-import-gpg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 01:42:56 +00:00
Graham Christensen
f319391080
Merge pull request #163 from detsys-pr-bot/detsys-ts-update-07c7fc924119a8d9879c1c164ae593049d47f648
Some checks failed
CI / validate (push) Has been cancelled
CI / typescript-action (push) Has been cancelled
Update `detsys-ts`: Ignore hyphen-sep'd diags (#83)
2025-03-28 13:50:47 -04:00
grahamc
7f50ffb42b Update detsys-ts for: Ignore hyphen-sep'd diags (#83) (07c7fc924119a8d9879c1c164ae593049d47f648) 2025-03-28 17:47:57 +00:00
Graham Christensen
c6435de337
Merge pull request #162 from detsys-pr-bot/detsys-ts-update-03533d37dcd46f34d9e99385e665615b221a30d9
Update `detsys-ts`: Merge pull request #82 from DeterminateSystems/even-more-crashes
2025-03-28 10:19:29 -04:00
grahamc
01b415ecee Update detsys-ts for: Merge pull request #82 from DeterminateSystems/even-more-crashes (03533d37dcd46f34d9e99385e665615b221a30d9) 2025-03-28 14:10:22 +00:00
Graham Christensen
42aa906d7f
Merge pull request #161 from detsys-pr-bot/detsys-ts-update-8d9725c4856301321cd2508f5b8725cfb99366e2
Some checks are pending
CI / typescript-action (push) Waiting to run
CI / validate (push) Waiting to run
Update `detsys-ts`: Merge pull request #81 from DeterminateSystems/dont-capture-some-crashes
2025-03-27 12:00:09 -04:00
grahamc
8b0105d445 Update detsys-ts for: Merge pull request #81 from DeterminateSystems/dont-capture-some-crashes (8d9725c4856301321cd2508f5b8725cfb99366e2) 2025-03-27 15:57:16 +00:00
Luc Perkins
9e4b6cbbef
Merge pull request #160 from detsys-pr-bot/detsys-ts-update-38df301720b69972f084538dd44c181269f264b0
Update `detsys-ts`: Merge pull request #80 from DeterminateSystems/fixup-traces
2025-03-27 11:09:14 -03:00
grahamc
43a3cfc807 Update detsys-ts for: Merge pull request #80 from DeterminateSystems/fixup-traces (38df301720b69972f084538dd44c181269f264b0) 2025-03-27 13:47:43 +00:00
Graham Christensen
97b24ed38a
Merge pull request #159 from DeterminateSystems/esbuild
Some checks failed
CI / typescript-action (push) Has been cancelled
CI / validate (push) Has been cancelled
pnpm update, vitest
2025-03-26 11:32:24 -04:00
Graham Christensen
c7af1d9132 pnpm update, vitest 2025-03-26 11:18:26 -04:00
Luc Perkins
ae207e3462
Merge pull request #158 from detsys-pr-bot/detsys-ts-update-cf33e9577ca7571bf9ebbfe298b4e3e457a58813
Update `detsys-ts`: Merge pull request #79 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-14f44f5325
2025-03-26 09:59:58 -03:00
lucperkins
6b57c8dc27 Update detsys-ts for: Merge pull request #79 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-14f44f5325 (cf33e9577ca7571bf9ebbfe298b4e3e457a58813) 2025-03-26 12:31:56 +00:00
dependabot[bot]
7f5cd168b9
build(deps): bump peter-evans/create-pull-request from 6.0.5 to 7.0.8
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.5 to 7.0.8.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](6d6857d369...271a8d0340)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-20 01:11:41 +00:00
4 changed files with 339 additions and 666 deletions

View file

@ -110,7 +110,7 @@ runs:
- name: Import bot's GPG key for signing commits - name: Import bot's GPG key for signing commits
if: ${{ inputs.sign-commits == 'true' }} if: ${{ inputs.sign-commits == 'true' }}
id: import-gpg id: import-gpg
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0 uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
with: with:
gpg_private_key: ${{ inputs.gpg-private-key }} gpg_private_key: ${{ inputs.gpg-private-key }}
fingerprint: ${{ inputs.gpg-fingerprint }} fingerprint: ${{ inputs.gpg-fingerprint }}
@ -202,7 +202,7 @@ runs:
run: rm -f pr_body.txt pr_body.template run: rm -f pr_body.txt pr_body.template
- name: Create PR - name: Create PR
id: create-pr id: create-pr
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5 uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with: with:
base: ${{ inputs.base }} base: ${{ inputs.base }}
branch: ${{ inputs.branch }} branch: ${{ inputs.branch }}

56
dist/index.js vendored
View file

@ -34921,7 +34921,7 @@ Object.defineProperty(exports, "readFieldOptions", ({ enumerable: true, get: fun
Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } })); Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } }));
Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } })); Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } }));
// Message operations via reflection // Message operations via reflection
var reflection_type_check_1 = __nccwpck_require__(2664); var reflection_type_check_1 = __nccwpck_require__(283);
Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } })); Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } }));
var reflection_create_1 = __nccwpck_require__(8877); var reflection_create_1 = __nccwpck_require__(8877);
Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } })); Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } }));
@ -35109,7 +35109,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MessageType = void 0; exports.MessageType = void 0;
const message_type_contract_1 = __nccwpck_require__(5114); const message_type_contract_1 = __nccwpck_require__(5114);
const reflection_info_1 = __nccwpck_require__(7369); const reflection_info_1 = __nccwpck_require__(7369);
const reflection_type_check_1 = __nccwpck_require__(2664); const reflection_type_check_1 = __nccwpck_require__(283);
const reflection_json_reader_1 = __nccwpck_require__(5855); const reflection_json_reader_1 = __nccwpck_require__(5855);
const reflection_json_writer_1 = __nccwpck_require__(9359); const reflection_json_writer_1 = __nccwpck_require__(9359);
const reflection_binary_reader_1 = __nccwpck_require__(3362); const reflection_binary_reader_1 = __nccwpck_require__(3362);
@ -37219,7 +37219,7 @@ exports.reflectionScalarDefault = reflectionScalarDefault;
/***/ }), /***/ }),
/***/ 2664: /***/ 283:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
@ -46977,7 +46977,7 @@ module.exports.mockErrors = mockErrors
const { InvalidArgumentError } = __nccwpck_require__(1581) const { InvalidArgumentError } = __nccwpck_require__(1581)
const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(5773) const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(5773)
const DispatcherBase = __nccwpck_require__(2168) const DispatcherBase = __nccwpck_require__(9787)
const Pool = __nccwpck_require__(6086) const Pool = __nccwpck_require__(6086)
const Client = __nccwpck_require__(439) const Client = __nccwpck_require__(439)
const util = __nccwpck_require__(4606) const util = __nccwpck_require__(4606)
@ -49752,7 +49752,7 @@ const { pipeline } = __nccwpck_require__(2203)
const util = __nccwpck_require__(4606) const util = __nccwpck_require__(4606)
const timers = __nccwpck_require__(2374) const timers = __nccwpck_require__(2374)
const Request = __nccwpck_require__(3505) const Request = __nccwpck_require__(3505)
const DispatcherBase = __nccwpck_require__(2168) const DispatcherBase = __nccwpck_require__(9787)
const { const {
RequestContentLengthMismatchError, RequestContentLengthMismatchError,
ResponseContentLengthMismatchError, ResponseContentLengthMismatchError,
@ -54558,7 +54558,7 @@ module.exports = {
/***/ }), /***/ }),
/***/ 2168: /***/ 9787:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
@ -66269,7 +66269,7 @@ module.exports = class FixedQueue {
const DispatcherBase = __nccwpck_require__(2168) const DispatcherBase = __nccwpck_require__(9787)
const FixedQueue = __nccwpck_require__(119) const FixedQueue = __nccwpck_require__(119)
const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(5773) const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(5773)
const PoolStats = __nccwpck_require__(136) const PoolStats = __nccwpck_require__(136)
@ -66630,7 +66630,7 @@ const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(5773)
const { URL } = __nccwpck_require__(7016) const { URL } = __nccwpck_require__(7016)
const Agent = __nccwpck_require__(8603) const Agent = __nccwpck_require__(8603)
const Pool = __nccwpck_require__(6086) const Pool = __nccwpck_require__(6086)
const DispatcherBase = __nccwpck_require__(2168) const DispatcherBase = __nccwpck_require__(9787)
const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(1581) const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(1581)
const buildConnector = __nccwpck_require__(110) const buildConnector = __nccwpck_require__(110)
@ -87214,7 +87214,7 @@ var cache = __nccwpck_require__(7389);
const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process"); const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");
;// CONCATENATED MODULE: external "node:path" ;// CONCATENATED MODULE: external "node:path"
const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path"); const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path");
;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+9d2b0e4636787_965914aa38ac1ed2d54aabb6d183fadd/node_modules/detsys-ts/dist/index.js ;// CONCATENATED MODULE: ./node_modules/.pnpm/detsys-ts@https+++codeload.github.com+DeterminateSystems+detsys-ts+tar.gz+07c7fc924119a_cf9631eb801687d1d18b88d767b5ca88/node_modules/detsys-ts/dist/index.js
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __export = (target, all) => { var __export = (target, all) => {
for (var name in all) for (var name in all)
@ -87441,16 +87441,25 @@ function stringifyError(e) {
async function collectBacktraces(prefixes, startTimestampMs) { var START_SLOP_SECONDS = 5;
async function collectBacktraces(prefixes, programNameDenyList, startTimestampMs) {
if (isMacOS) { if (isMacOS) {
return await collectBacktracesMacOS(prefixes, startTimestampMs); return await collectBacktracesMacOS(
prefixes,
programNameDenyList,
startTimestampMs
);
} }
if (isLinux) { if (isLinux) {
return await collectBacktracesSystemd(prefixes, startTimestampMs); return await collectBacktracesSystemd(
prefixes,
programNameDenyList,
startTimestampMs
);
} }
return /* @__PURE__ */ new Map(); return /* @__PURE__ */ new Map();
} }
async function collectBacktracesMacOS(prefixes, startTimestampMs) { async function collectBacktracesMacOS(prefixes, programNameDenyList, startTimestampMs) {
const backtraces = /* @__PURE__ */ new Map(); const backtraces = /* @__PURE__ */ new Map();
try { try {
const { stdout: logJson } = await exec.getExecOutput( const { stdout: logJson } = await exec.getExecOutput(
@ -87492,6 +87501,10 @@ async function collectBacktracesMacOS(prefixes, startTimestampMs) {
for (const [source, dir] of dirs) { for (const [source, dir] of dirs) {
const fileNames = (await (0,promises_namespaceObject.readdir)(dir)).filter((fileName) => { const fileNames = (await (0,promises_namespaceObject.readdir)(dir)).filter((fileName) => {
return prefixes.some((prefix) => fileName.startsWith(prefix)); return prefixes.some((prefix) => fileName.startsWith(prefix));
}).filter((fileName) => {
return !programNameDenyList.some(
(programName) => fileName.startsWith(programName)
);
}).filter((fileName) => { }).filter((fileName) => {
return !fileName.endsWith(".diag"); return !fileName.endsWith(".diag");
}); });
@ -87516,8 +87529,8 @@ async function collectBacktracesMacOS(prefixes, startTimestampMs) {
} }
return backtraces; return backtraces;
} }
async function collectBacktracesSystemd(prefixes, startTimestampMs) { async function collectBacktracesSystemd(prefixes, programNameDenyList, startTimestampMs) {
const sinceSeconds = Math.ceil((Date.now() - startTimestampMs) / 1e3); const sinceSeconds = Math.ceil((Date.now() - startTimestampMs) / 1e3) + START_SLOP_SECONDS;
const backtraces = /* @__PURE__ */ new Map(); const backtraces = /* @__PURE__ */ new Map();
const coredumps = []; const coredumps = [];
try { try {
@ -87538,7 +87551,7 @@ async function collectBacktracesSystemd(prefixes, startTimestampMs) {
if (typeof sussyObject.exe == "string" && typeof sussyObject.pid == "number") { if (typeof sussyObject.exe == "string" && typeof sussyObject.pid == "number") {
const execParts = sussyObject.exe.split("/"); const execParts = sussyObject.exe.split("/");
const binaryName = execParts[execParts.length - 1]; const binaryName = execParts[execParts.length - 1];
if (prefixes.some((prefix) => binaryName.startsWith(prefix))) { if (prefixes.some((prefix) => binaryName.startsWith(prefix)) && !programNameDenyList.includes(binaryName)) {
coredumps.push({ coredumps.push({
exe: sussyObject.exe, exe: sussyObject.exe,
pid: sussyObject.pid pid: sussyObject.pid
@ -88106,6 +88119,11 @@ var STATE_KEY_CROSS_PHASE_ID = "detsys_cross_phase_id";
var STATE_BACKTRACE_START_TIMESTAMP = "detsys_backtrace_start_timestamp"; var STATE_BACKTRACE_START_TIMESTAMP = "detsys_backtrace_start_timestamp";
var DIAGNOSTIC_ENDPOINT_TIMEOUT_MS = 1e4; var DIAGNOSTIC_ENDPOINT_TIMEOUT_MS = 1e4;
var CHECK_IN_ENDPOINT_TIMEOUT_MS = 1e3; var CHECK_IN_ENDPOINT_TIMEOUT_MS = 1e3;
var PROGRAM_NAME_CRASH_DENY_LIST = [
"nix-expr-tests",
"nix-store-tests",
"nix-util-tests"
];
var DetSysAction = class { var DetSysAction = class {
determineExecutionPhase() { determineExecutionPhase() {
const currentPhase = core.getState(STATE_KEY_EXECUTION_PHASE); const currentPhase = core.getState(STATE_KEY_EXECUTION_PHASE);
@ -88638,7 +88656,7 @@ var DetSysAction = class {
} }
} }
collectBacktraceSetup() { collectBacktraceSetup() {
if (process.env.DETSYS_BACKTRACE_COLLECTOR === "") { if (!process.env.DETSYS_BACKTRACE_COLLECTOR) {
core.exportVariable( core.exportVariable(
"DETSYS_BACKTRACE_COLLECTOR", "DETSYS_BACKTRACE_COLLECTOR",
this.getCrossPhaseId() this.getCrossPhaseId()
@ -88653,6 +88671,7 @@ var DetSysAction = class {
} }
const backtraces = await collectBacktraces( const backtraces = await collectBacktraces(
this.actionOptions.binaryNamePrefixes, this.actionOptions.binaryNamePrefixes,
this.actionOptions.binaryNamesDenyList,
parseInt(core.getState(STATE_BACKTRACE_START_TIMESTAMP)) parseInt(core.getState(STATE_BACKTRACE_START_TIMESTAMP))
); );
core.debug(`Backtraces identified: ${backtraces.size}`); core.debug(`Backtraces identified: ${backtraces.size}`);
@ -88797,7 +88816,8 @@ function makeOptionsConfident(actionOptions) {
"nix", "nix",
"determinate-nixd", "determinate-nixd",
actionOptions.name actionOptions.name
] ],
binaryNamesDenyList: actionOptions.binaryNamePrefixes ?? PROGRAM_NAME_CRASH_DENY_LIST
}; };
core.debug("idslib options:"); core.debug("idslib options:");
core.debug(JSON.stringify(finalOpts, void 0, 2)); core.debug(JSON.stringify(finalOpts, void 0, 2));

View file

@ -35,13 +35,13 @@
"@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/eslint-plugin": "^7.18.0",
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.3",
"eslint": "^8.57.1", "eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^3.9.1", "eslint-import-resolver-typescript": "^3.10.0",
"eslint-plugin-github": "^4.10.2", "eslint-plugin-github": "^4.10.2",
"eslint-plugin-import": "^2.31.0", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.3", "eslint-plugin-prettier": "^5.2.5",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"tsup": "^8.4.0", "tsup": "^8.4.0",
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vitest": "^1.6.1" "vitest": "^3.0.9"
} }
} }

File diff suppressed because it is too large Load diff