Skip to content

fix(desktop): non-gating qual cleanup after green T2+fault - #10782

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/qual-final-cleanup-nongate
Jul 28, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/qual-final-cleanup-nongate

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Summary

v0.12.142 ordinary M1 qualification failed after Tier-2 and fault suite both passed, solely on final-cleanup lease-lineage (Refusing to signal a qualification listener whose lease lineage is unproven). That permanently fenced the tag.

This change keeps behavioral gates mandatory and loosens runner-hygiene cleanup so the next candidate can qualify when user-visible suites are green.

Changes

  • qualify-desktop-beta.sh: final-cleanup is non-gating after behavioral pass; EXIT trap does not rewrite a green exit solely for residual lease cleanup.
  • qualification.release: authenticated release retires the lease pointer even when residual listeners fail lineage proof; never kills unproven PIDs.
  • desktop_qualify_beta.yml finalize step: continue-on-error + records cleanup status (non-gating).
  • Contract + lease tests updated for the new release semantics.
  • Preflight fault cleanup remains fail-closed (still blocks before expensive build on unproven listeners).

Failure-Class

Failure-Class: none

Verification

  • bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh ✅
  • bash desktop/macos/tests/test-qualification-lease-command.sh ✅
  • python3 -m pytest scripts/dev-harness/tests/test_qualification_lease.py -q → 15 passed, 2 skipped ✅

Related

Review in cubic

Failed v0.12.142 qualification solely on final-cleanup lease lineage
after Tier-2 and fault suite passed (BasedHardware#10779). Authenticated lease
release now retires the admission pointer without killing unproven
listeners; qualify-desktop-beta and the workflow finalize step no
longer fence behavioral success on runner-hygiene cleanup failure.

Failure-Class: none

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42e2e2d2e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +693 to +695
if allow_unproven_listener_skip and skipped_unproven:
# Leave residual listeners; release still retires the admission pointer.
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep escalating processes that still prove ownership

In the self-hosted qualification workflow, if one service has an unproven listener while another lease-owned service remains alive after the initial SIGINT, skipped_unproven makes this return exit the entire stop loop before SIGTERM/SIGKILL can be sent to the owned service. release() then removes the active lease pointer and marks the state completed, so subsequent acquisition cannot reclaim that owned process; it can continue consuming ports and runner resources indefinitely. Skip the unproven record, but continue all STOP_PHASES for records whose ownership remains proven.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit eb60a51 into BasedHardware:main Jul 28, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant