Skip to content

fix(ci): resolve 3 staging test failures - #2207

Merged
henrypark133 merged 3 commits into
stagingfrom
fix/staging-ci-failures
Apr 10, 2026
Merged

henrypark133 merged 3 commits into
stagingfrom
fix/staging-ci-failures

Conversation

@henrypark133

Copy link
Copy Markdown
Collaborator

Summary

Fixes failures from staging CI run https://github.com/nearai/ironclaw/actions/runs/24198673070

Note: The libsql-only e2e_advanced_traces failures (tool_error_recovery, workspace_semantic_search) passed on default/all-features and locally — likely timing-sensitive. Monitor next CI run.

Test plan

  • cargo test -- db::migration_fixup::tests::released_migrations_are_immutable passes
  • cargo test -- extensions::manager::tests::test_telegram_token_colon_preserved_in_validation_url passes
  • cargo clippy clean
  • E2E extensions suite passes in CI

🤖 Generated with Claude Code

- Add V21-V23 checksums to migrations/checksums.lock (missed in #2049)
- Guard telegram token URL test with ENV_MUTEX to prevent env var race
- Call setAuthFlowPending before early return in handleAuthRequired

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 9, 2026 16:49
@github-actions github-actions Bot added size: S 10-49 changed lines scope: channel/web Web gateway channel scope: db/postgres PostgreSQL backend scope: extensions Extension management risk: medium Business logic, config, or moderate-risk modules contributor: core 20+ merged PRs and removed size: S 10-49 changed lines labels Apr 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes three staging CI failures by updating the migration checksum lockfile, hardening a flaky Telegram env-var test against cross-test races, and ensuring the web UI correctly marks auth as pending when a configure overlay is already open.

Changes:

  • Add missing V21–V23 entries to migrations/checksums.lock to satisfy the released-migrations immutability guard.
  • Serialize/clear the Telegram test override env var in test_telegram_token_colon_preserved_in_validation_url() to avoid concurrent test interference.
  • Set authFlowPending before early-returning in handleAuthRequired() when a configure overlay exists (fixing E2E expectations).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/extensions/manager.rs Adds env-mutex guard and clears Telegram test override env var in a regression test.
src/channels/web/static/app.js Ensures auth flow is marked pending when returning early due to an existing configure overlay.
migrations/checksums.lock Pins checksums for new migrations V21–V23 to satisfy the checksum guard test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/extensions/manager.rs Outdated
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting /gemini review.

Replaces bare unsafe remove_var with ScopedEnvVar::set("") which
holds ENV_MUTEX and restores the previous value on drop, avoiding
state leakage into subsequent tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the size: S 10-49 changed lines label Apr 9, 2026
Copilot AI review requested due to automatic review settings April 10, 2026 00:32
@github-actions github-actions Bot added size: XS < 10 changed lines (excluding docs) and removed size: S 10-49 changed lines labels Apr 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ironclaw-ci ironclaw-ci Bot mentioned this pull request Apr 10, 2026
@ironclaw-ci ironclaw-ci Bot mentioned this pull request Apr 18, 2026
theredspoon pushed a commit to theredspoon/ironclaw that referenced this pull request Jun 21, 2026
* fix(ci): resolve 3 staging test failures

- Add V21-V23 checksums to migrations/checksums.lock (missed in nearai#2049)
- Guard telegram token URL test with ENV_MUTEX to prevent env var race
- Call setAuthFlowPending before early return in handleAuthRequired

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(test): use ScopedEnvVar for env cleanup in telegram token test

Replaces bare unsafe remove_var with ScopedEnvVar::set("") which
holds ENV_MUTEX and restores the previous value on drop, avoiding
state leakage into subsequent tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: medium Business logic, config, or moderate-risk modules scope: channel/web Web gateway channel scope: db/postgres PostgreSQL backend scope: extensions Extension management size: XS < 10 changed lines (excluding docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants