Repository navigation
fix(monitor): queue sweep admissions and stamp holder start on wall time - #18
Merged
Merged
Conversation
A start derived from process.uptime() stops during sleep. Every live permit holder then read as a reused pid and each arriving sweep broke the slot. Stamp performance.timeOrigin, act on a start mismatch only past a grace longer than the refresh interval, admit waiters in arrival order, coalesce same-scope arrivals, and await the lane child to keep the permit refreshing.
| // The permits beside the queue, read the way the next acquirer will read them. | ||
| export function readSlots(reportsRoot, { prefix = 'sweep', kill, liveStart } = {}) { | ||
| let names; | ||
| try { names = readdirSync(reportsRoot).filter((n) => new RegExp(`^\\.${prefix}-slot-\\d+\\.lock$`).test(n)).sort(); } |
Portll
added a commit
that referenced
this pull request
Nov 27, 2026
Run CodeQL's `actions` extractor as a tenth lane, sast-codeql-actions, over .github/workflows and action.yml in groups all and deep. The nine language lanes never read a workflow file: a `run:` step that interpolates an untrusted event field was reachable only through zizmor. The lane uses build-mode none, needs no container and took 22s on a three-finding canary. Its results carry no `level`; the rule default supplies it. Coverage is recorded as unmeasurable because the extractor publishes no file list. Add the matching `actions` job to this repository's own CodeQL workflow as a separate job, keeping the JavaScript job's name unchanged. Refs: #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A start derived from process.uptime() stops during sleep.
Consequences:
Fix:
Stamp performance.timeOrigin, act on a start mismatch only past a grace longer than the refresh interval, admit waiters in arrival order, coalesce same-scope arrivals, and await the lane child to keep the permit refreshing.