Repository navigation
fix(ci): trust dependency approvers before graph compare - #123456
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 14, 2026
steipete
added a commit
that referenced
this pull request
Aug 26, 2026
Each theme's --bg is copied by hand into two places outside base.css, because both have to paint before the app stylesheet is parsed: index.html's pre-paint block, which fills the page during first paint, and the Appearance preview chips, which are deliberately theme-invariant and so cannot read the live token. Nothing tied those copies to the palette. Darkening Absolutely moved --bg and left both behind; only a pre-paint assertion that happened to hardcode the old value caught one of them. It is the same shape as the two defects review found in the theme work — a hand-maintained list extended for new themes but not exhaustively — and the third time is enough. Derives the expected values from base.css and asserts both mirrors for every palette (12 themed pre-paint rules plus the default), so a palette edit cannot leave either copy stale. Verified by mutating each mirror: tide: pre-paint #123456 != --bg #10151b beacon: chip #abcdef != --bg #000000 Test-only; no production change.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
…#130444) Each theme's --bg is copied by hand into two places outside base.css, because both have to paint before the app stylesheet is parsed: index.html's pre-paint block, which fills the page during first paint, and the Appearance preview chips, which are deliberately theme-invariant and so cannot read the live token. Nothing tied those copies to the palette. Darkening Absolutely moved --bg and left both behind; only a pre-paint assertion that happened to hardcode the old value caught one of them. It is the same shape as the two defects review found in the theme work — a hand-maintained list extended for new themes but not exhaustively — and the third time is enough. Derives the expected values from base.css and asserts both mirrors for every palette (12 themed pre-paint rules plus the default), so a palette edit cannot leave either copy stale. Verified by mutating each mirror: tide: pre-paint openclaw#123456 != --bg #10151b beacon: chip #abcdef != --bg #000000 Test-only; no production change.
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.
What Problem This Solves
Dependency-heavy PRs from trusted maintainers can fail before the guard reaches its existing trusted-actor decision. The detector currently calls GitHub's dependency-graph compare endpoint first; large release version updates repeatedly exceeded the bounded 30-second API request timeout.
This blocked the immutable
2026.8.1-beta.2source-signing candidate twice on the same 152 expected package/version files.Why This Change Was Made
The existing exact-head trusted-state and trusted PR-author checks already make dependency graph changes informational for repository admins and configured security approvers. This change moves the unchanged dependency-graph comparison block after those trusted returns.
Untrusted PRs still perform the graph comparison. Their removal-only path, autoscrub behavior, exact-SHA manual authorization, and blocking behavior remain unchanged.
User Impact
Trusted maintainer release/version PRs no longer depend on a large dependency-graph compare request that cannot affect their authorization outcome. Contributor and untrusted dependency changes retain the same security checks and approval requirements.
Evidence
31767562911, attempts 1 and 2: both detected 152 dependency-related files, then timed out on the dependency-graph compare endpoint after 30 seconds.+21/-21.node scripts/run-vitest.mjs test/scripts/dependency-guard-workflow.test.ts test/scripts/dependency-guard-script.test.ts: 45 tests passed.node --check scripts/github/dependency-guard.mjs: passed.git diff --check: passed.