Skip to content

test(deploy): flush the fake fleet call log before replying - #219

Merged
ryuzdev merged 1 commit into
mainfrom
fix/adoption-test-flush
Dec 1, 2026
Merged

ryuzdev merged 1 commit into
mainfrom
fix/adoption-test-flush

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Dec 1, 2026

Copy link
Copy Markdown
Member

Flake from #217 seen on #218 CI (run 46609721215): migrate_waits_for_adoption_after_upload saw [deploy, reload, apply] without the trailing reload. The fake fleet appends with tokio::fs::File::write_all, which completes on a blocking thread; it answered before flushing, so the deploy could return and the test read calls.log before the last line landed. Fix: flush() before replying. Test-only.\n\nChecks: fmt, clippy (pre-existing tower-http note only), 30 consecutive runs of deploy::pipeline::tests::migrate_* + reload_* green.

- migrate_waits_for_adoption_after_upload failed on #218's CI: [deploy, reload, apply] without the trailing reload.
- tokio::fs::File::write_all finishes on a blocking thread; without flush() the fake answered before the line reached calls.log, so the test could read the log first.
- 30 consecutive runs of the migrate/reload tests pass.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c2008c7f-163c-45f1-9bc1-06fb140b84fa
Commits

Reviewing files that changed from the base of the PR and between c138665 and 66c183a.

Files selected for processing: 1

  • crates/outer/src/deploy/pipeline.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ryuzdev
ryuzdev merged commit 597247e into main Dec 1, 2026
5 checks passed
@ryuzdev
ryuzdev deleted the fix/adoption-test-flush branch December 1, 2026 08:56
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