Repository navigation
fix: let CI run when DEPLOY_KEY is unset and match stable rustfmt - #6
OnlineChef (ChefGroep) wants to merge 3 commits into
Conversation
webfactory/ssh-agent aborted Quality, Build & Test, and the Windows cross-check whenever the deploy key secret was empty, so those jobs never compiled. Git dependencies here are public HTTPS, so start the agent only when a key is configured. Reformat the six files current stable rustfmt rejects, and do not require a linked issue on Dependabot lockfile bumps. Co-authored-by: OnlineChef <chefadmin@chefgroep.online>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_a5e9a704-ce3f-47bf-b486-a6b00f61f54b) |
GitHub rejects workflows that reference secrets from an if condition, so the previous guard never started a job. Record whether DEPLOY_KEY is set as a step output, and skip the linked-issue requirement while Issues are disabled on the repository. Co-authored-by: OnlineChef <chefadmin@chefgroep.online>
Stable clippy now rejects needless late initialization and chunks_exact with a constant size. Initialize those bindings in the branch expression and decode bloom words with as_chunks. Co-authored-by: OnlineChef <chefadmin@chefgroep.online>
MisterWanted
left a comment
There was a problem hiding this comment.
CI audit (read-only) — both red checks are inherited from the base commit, not from this diff
Head reviewed: da9a15fb (base 174a5d4d = current main/master tip, so there is no commit drift). 13 checks, 11 green, 0 queued/pending.
What this PR intends to do, verified on run 36181650150:
Detect deploy keyruns andConfigure SSH for cargo git dependenciesis skipped on ubuntu, macos and windows (quality, the 3buildmatrix jobs,windows-cross-target). Before this, every one of those jobs died at step 3.Formatis green (it was red on the base commit).- The guard is complete:
webfactory/ssh-agentappears in exactly 4 jobs inci.ymland 1 inrelease.yml, and all 5 now carryif: steps.deploy_key.outputs.present == 'true'. No other workflow referencessecrets.DEPLOY_KEY, and the release workflow's homebrew step builds its own key fromHOMEBREW_DEPLOY_KEY, so it is unaffected.
Remaining red, with attribution:
-
Quality Guardrails → step 14
Enforce oversized-file ratchet(scripts/check_code_size_budget.py).
crates/jcode-desktop2/src/scene.rsis 1956 LOC at this head whilescripts/code_size_budget.jsontracks 1900 → "oversized file grew". The same file is 1969 LOC on the base commit174a5d4d, so the gate already fails there without this PR; this diff shrinks it by 13 lines and cannot be the cause. Clearing it is a one-command maintenance action on a lane with a checkout:
python3 scripts/check_code_size_budget.py --update(the ratchet's own sanctioned path —scripts/check_guardrails.sh --fixdoes the same). -
Build & Test (ubuntu-latest) → step 14
Run TUI library tests (Linux only), annotationProcess completed with exit code 101, 90 s in.
This step has never executed in this repository's history: every earlier run (32711005749, 32946485237, 32946618967, 33139222060, 33726700910, 36178252572) died at the SSH step, so there is no green baseline for it either. The only change incrates/jcode-tuiin this diff is a formatting-only line break in a match-arm guard (turn_memory.rs), and head is alreadycargo fmt --all -- --check- andclippy -- -D warnings-clean, so this failure is inherited rather than introduced. Logs are not recoverable:actions/jobs/{id}/logsreturns 410 Gone for all 10 jobs of that run, green ones included. Naming the failing test needs one local run:
COLORTERM=truecolor cargo test -p jcode-tui --lib -- --test-threads=1 --skip test_prompt_entry_shimmer_color_moves_across_positions --skip right_fact_stack_uses_neutral_gray_except_for_context_usage
Note the ubuntu job's steps 15-19 (integration binaries, provider matrix, e2e, warning budget, security preflight) are all skipped behind this failure, so the full red surface is not visible yet.
Findings on the diff itself (no repair needed):
- P3 — three of the "rustfmt" files also carry non-format refactors:
session_search_index.rsmoves toas_chunks::<8>()(stable since 1.88; the workspace declares norust-versionand all workflows usetoolchain: stable, so nothing breaks today, but that crate now effectively needs 1.88),markdown_render_full.rs/markdown_render_lazy.rsmove to.then(..)+as_deref(), and fourlet x; if .. { x = .. }blocks become if-expressions. The PR body describes all six as rustfmt-only; worth stating the rest explicitly. - P3 —
require-issue.ymlnow returns early wheneverhas_issuesis false, so in this fork (issues are off —GET /repos/GroepOnline/jcode→has_issues: false) the check is green for every PR and the newly addeddependabot[bot]exemption is unreachable code. That matches the stated intent, but the file header still promises "Ensure every pull request is linked to a REAL GitHub issue in this repo"; the comment should say the check is inert while issues are off. - Nit —
release.ymlalready shows this repo's other idiom for the same problem (job-levelenv.<SECRET>+if: env.<SECRET> != ''), which would have avoided an extra step in each of the 5 jobs.
No commit is included with this audit. The shell is unavailable in this session (This account is currently not available., exit 1 on every command including background ones) and the GitHub integration available here has no file/branch/commit write → BLOCKED_MUTATION: git push origin HEAD:cursor/fix-ci-ssh-and-fmt-ece4. Nothing in the diff needs repairing; the two red checks need the baseline refresh and the TUI test fix above, both of which require a working build.
Why
The last push to the default branch (
174a5d4) failed CI in about 30 seconds. Quality Guardrails, Build & Test (Linux/macOS/Windows), and Windows Cross-Target Check all died inwebfactory/ssh-agentbecausesecrets.DEPLOY_KEYis empty. Format failed separately: current stable rustfmt (1.98) disagrees with six files.Git dependencies in this repo are public HTTPS (
agentgrep,mermaid-rs-renderer). There are no submodules. The deploy key is still used when it is configured. GitHub does not allowsecretsin anifcondition, so a step records whether the key is set and the agent runs only then.Issues are disabled on this repository, and this token cannot turn them on (
has_issuesPATCH returns 403). Require Linked Issue then fails every pull request with no way to open the issue it demands. The check now enforces a real issue link only while issues are enabled. Dependabot stays exempt for when issues are turned back on, because it cannot file a tracking issue for a lockfile bump.release.ymlhad the same unconditional SSH step, so a tag build would have failed the same way. That workflow is not dispatched here.Also
mainwas created at the previous default-branch tip so it can be the single base.gh repo edit --default-branch mainreturned HTTP 403 (token cannot change the repo default). After this merges,masterwill be fast-forwarded to the same commit. Flipping the GitHub default branch tomainstill needs an admin.Test
CI on this PR: the SSH step is skipped, Format passes, and Build & Test proceeds into compile.