Skip to content

Conversation

@dmjb
Copy link
Member

@dmjb dmjb commented Feb 4, 2026

The code previously relied on API calls to clean up local test state. However, since the APIs are async, and the servers get spun up and down during the tests, a lot of workloads would end up in a partially deleted state. This change uses the CLI for final cleanup, ensuring that the cleanup is complete. In tests where delete endpoints are tested, it introduces some logic to wait for the deletion to finish.

This mostly affects local runs of the E2E tests.

@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Feb 4, 2026
rdimitrov
rdimitrov previously approved these changes Feb 4, 2026
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.57%. Comparing base (ac82979) to head (1c159c3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3588      +/-   ##
==========================================
+ Coverage   65.51%   65.57%   +0.06%     
==========================================
  Files         406      406              
  Lines       39996    39996              
==========================================
+ Hits        26202    26227      +25     
+ Misses      11762    11737      -25     
  Partials     2032     2032              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dmjb dmjb requested a review from blkt as a code owner February 4, 2026 10:22
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 4, 2026
dmjb added 4 commits February 4, 2026 10:52
The code previously relied on API calls to clean up local test state.
However, since the APIs are async, and the servers get spun up and down
during the tests, a lot of workloads would end up in a partially deleted
state. This change uses the CLI for final cleanup, ensuring that the
cleanup is complete.

This mostly affects local runs of the E2E tests.
Recently, a PR was created which called the PID file logic. The PID file
logic is deprecated, and only used to handle workloads created by old
versions of ToolHive.

As a precaution, move the PID file logic into the statuses package, and
make it private, so that the PID file handling occurs inside the status
file logic.
@dmjb dmjb force-pushed the api-e2e-state-cleanup branch from 15002a3 to 9808e1a Compare February 4, 2026 10:52
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 4, 2026
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 4, 2026
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 4, 2026
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants