Skip to content

test: route onboard skills/approvals HOME mutators through shared ENV_LOCK - #254

Merged
sulthannauval merged 1 commit into
mainfrom
advisor/022-home-lock-onboard-sections
Jul 18, 2026
Merged

test: route onboard skills/approvals HOME mutators through shared ENV_LOCK#254
sulthannauval merged 1 commit into
mainfrom
advisor/022-home-lock-onboard-sections

Conversation

@sulthannauval

Copy link
Copy Markdown
Member

Part of the /improve advisor batch (plan plans/022-*.md, 2026-07-18).

The 2 sites the #11 PR left out of scope.

Verification: scoped tests + fmt + clippy-delta clean per-branch; integrated locally (integration/all) — compiles (default + --features legacy-providers where relevant) and full lib + integration tests green except two pre-existing non-hermetic tests unrelated to this change.

Rollback: revert this PR.

…_LOCK

Two per-module private HOME_LOCK mutexes (skills.rs, approvals.rs)
guarded HOME-mutating tests but did not serialize against the
crate-shared crate::test_env::ENV_LOCK, so those tests could still
run concurrently with other HOME-mutating tests (e.g. in
channels/config) under cargo test, reproducing the clobber ENV_LOCK
was introduced to prevent.

Replace both private locks with crate::test_env::ENV_LOCK's
blocking_lock() (both sites are sync #[test] fns, no runtime).
@github-actions github-actions Bot added the onboard Auto scope: src/onboard/** changed. label Jul 18, 2026
@github-actions

Copy link
Copy Markdown

PR intake checks found warnings (non-blocking)

Fast safe checks found advisory issues. CI lint/test/build gates still enforce merge quality.

  • Missing required PR template sections: ## Summary, ## Validation Evidence (required), ## Security Impact (required), ## Privacy and Data Hygiene (required), ## Rollback Plan (required)
  • Incomplete required PR template fields: summary problem, summary why it matters, summary what changed, validation commands, security risk/mitigation, privacy status, rollback plan

Action items:

  1. Complete required PR template sections/fields.
  2. Remove tabs, trailing whitespace, and merge conflict markers from added lines.
  3. Re-run local checks before pushing:
    • ./scripts/ci/rust_quality_gate.sh
    • ./scripts/ci/rust_strict_delta_gate.sh
    • ./scripts/ci/docs_quality_gate.sh

Run logs: https://github.com/RantAI-dev/RantAIClaw/actions/runs/29653898333

Detected blocking line issues (sample):

  • none

Detected advisory line issues (sample):

  • none

@github-actions github-actions Bot added size: XS Auto size: <=80 non-doc changed lines. risk: medium Auto risk: src/** or dependency/config changes. distinguished contributor Contributor with 50+ merged PRs. onboard: section Auto module: onboard/section changed. and removed onboard Auto scope: src/onboard/** changed. labels Jul 18, 2026
@sulthannauval
sulthannauval merged commit 8f3753f into main Jul 18, 2026
17 checks passed
@sulthannauval
sulthannauval deleted the advisor/022-home-lock-onboard-sections branch July 18, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distinguished contributor Contributor with 50+ merged PRs. onboard: section Auto module: onboard/section changed. risk: medium Auto risk: src/** or dependency/config changes. size: XS Auto size: <=80 non-doc changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant