Skip to content

fix(ci): name a test collection in the rspec abort smoke test - #1323

Merged
trunk-sudo[bot] merged 1 commit into
mainfrom
tylerbeebe/fix-rspec-abort-smoke-collection
Nov 12, 2026
Merged

trunk-sudo[bot] merged 1 commit into
mainfrom
tylerbeebe/fix-rspec-abort-smoke-collection

Conversation

@acatxnamedvirtue

Copy link
Copy Markdown
Contributor

Smoke Test Main has failed since #1298 (run).

Cause: #1298 made the rspec gem turn itself off, with a warning, when TRUNK_TEST_COLLECTION_ID is unset. The "quarantine lookup failure abort test" step in test_ruby_gem_uploads was the only step without a collection ID.

  • So the gem logged "Trunk Flaky Tests is disabled: this run names no test collection" and never ran the quarantine lookup.
  • Nothing aborted the run, so slow_test ran in full, the step hit its 25-second timeout, and it reported "slow_test was not skipped (abort regression)".

Fix: set a fake TRUNK_TEST_COLLECTION_ID on that step. The gem turns on, the lookup fails on the fake org and token (retries 0, cache TTL 0), and TRUNK_QUARANTINE_QUERY_FAILURE_EXIT stops the run before slow_test, as the step intends.

Verify: the Ruby workflow on this PR runs the same action; the abort step should print "SUCCESS: Quarantine lookup failure aborted run before slow_test".

🤖 Generated with Claude Code

Since #1298 the rspec gem turns itself off when TRUNK_TEST_COLLECTION_ID
is unset. The quarantine-lookup abort step set no collection, so the gem
never ran the lookup, slow_test ran in full and the step hit its 25s
timeout. A fake collection turns the gem on, and the lookup fails on the
fake credentials as the step intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trunk-io

trunk-io Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

😎 Merged successfully via direct-to-queue (branch protection was bypassed for this merge) - details.

@acatxnamedvirtue

Copy link
Copy Markdown
Contributor Author

Dynamic CI skipped the Ruby jobs on this PR, so I dispatched the Ruby workflow on the branch: run 43280764600. Every job passed, and the abort step printed "SUCCESS: Quarantine lookup failure aborted run before slow_test (exit 1)" in all four upload targets (ruby-gem and smoke-tests, staging and prod), each in about a second.

@trunk-sudo
trunk-sudo Bot merged commit 4aefa5a into main Nov 12, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant