Skip to content

[core] ignore jobs deleted by the platform in the long_running_many_jobs.py test - #61690

Open
rueian wants to merge 1 commit into
ray-project:masterfrom
rueian:ignore-deleted-jobs-in-tests
Open

rueian wants to merge 1 commit into
ray-project:masterfrom
rueian:ignore-deleted-jobs-in-tests

Conversation

@rueian

@rueian rueian commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

One of the reasons that long_running_many_jobs test is flaky is that there is an external process (Go-http-client/1.1) on the platform, which we have no control over, that will kill jobs:

image

and let the test script fail with:

image

This PR fixes it by ignoring the HTTP 404 error.

Related issues

Fixes anyscale#700

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request modifies a long-running test to be more resilient against jobs being deleted by the platform, which could cause 'not found' errors and test failures. The changes introduce helper functions to gracefully handle these errors by treating a deleted job as a success or by ignoring the error when fetching logs/info. The overall approach is sound and directly addresses the problem described. I have one suggestion to reduce code duplication.

@rueian
rueian force-pushed the ignore-deleted-jobs-in-tests branch from 64e4e64 to f0b3d3f Compare March 12, 2026 21:32
@rueian
rueian marked this pull request as ready for review March 12, 2026 23:39
@rueian rueian added core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests labels Mar 12, 2026

@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: f0b3d3f42b

ℹ️ 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".

@MengjinYan MengjinYan 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.

From what I see here: https://github.com/anyscale/product/blob/master/go/infra/activityprobe/ray/job_utils.go#L55-L65, the job will be deleted no matter if it succeeds or failed. If that's the case, I think the test might miss some failure cases.

I think the better idea if possible is to configure the test environment to not clean up jobs or only cleanup successful jobs instead of changing to ignore the delete jobs.

What do you think?

@rueian

rueian commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

From what I see here: https://github.com/anyscale/product/blob/master/go/infra/activityprobe/ray/job_utils.go#L55-L65, the job will be deleted no matter if it succeeds or failed. If that's the case, I think the test might miss some failure cases.

I think the better idea if possible is to configure the test environment to not clean up jobs or only cleanup successful jobs instead of changing to ignore the delete jobs.

What do you think?

Sounds good. Let me ask the team if that is possible internally.

@rueian

rueian commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

Yep, they said they have raised the cleanup threshold to 100k.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Apr 8, 2026
@rueian rueian added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Apr 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release test long_running_many_jobs.aws failed

2 participants