Skip to content

fix(RHOAIENG-20531): propagate annotations to ray pods #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

chipspeak
Copy link
Contributor

@chipspeak chipspeak commented Mar 6, 2025

Issue link

RHOAIENG-20531

What changes have been made

Fix to propagate annotations passed in the cluster config to the Ray head and worker pods.

Verification steps

  • Pass an annotation during cluster definition in a notebook.
  • Check the CR on cluster and the annotation should be reflected there.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 6, 2025
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.45%. Comparing base (e46ee4c) to head (11eb02d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #809   +/-   ##
=======================================
  Coverage   92.45%   92.45%           
=======================================
  Files          24       24           
  Lines        1419     1419           
=======================================
  Hits         1312     1312           
  Misses        107      107           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chipspeak chipspeak marked this pull request as ready for review March 18, 2025 12:12
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 18, 2025
Copy link
Contributor

@Bobbins228 Bobbins228 left a comment

Choose a reason for hiding this comment

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

The code looks clean but the annotations config vars are added to tests that are not really necessary/are helper functions.

The create_cluster_all_config_params() test is a fine place to put them for testing purposes but you need to assert that the params are set properly in the test_config_creation_all_parameters Unit Test.

@chipspeak chipspeak force-pushed the RHOAIENG-20531 branch 2 times, most recently from 901de36 to 6529505 Compare March 24, 2025 09:21
@laurafitzgerald
Copy link

/approve
/lgtm

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 12, 2025
@laurafitzgerald
Copy link

/override kubernetes

Copy link
Contributor

openshift-ci bot commented May 12, 2025

@laurafitzgerald: Overrode contexts on behalf of laurafitzgerald: kubernetes

In response to this:

/override kubernetes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@project-codeflare project-codeflare deleted a comment from openshift-ci bot May 12, 2025
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 13, 2025
Copy link
Contributor

@kryanbeane kryanbeane left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/override kubernetes

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2025
Copy link
Contributor

openshift-ci bot commented May 13, 2025

@kryanbeane: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • kubernetes

Only the following failed contexts/checkruns were expected:

  • add-approve-lgtm-label
  • tide

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/lgtm
/approve
/override kubernetes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

@kryanbeane kryanbeane left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/override kubernetes

Copy link
Contributor

openshift-ci bot commented May 13, 2025

@kryanbeane: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • kubernetes

Only the following failed contexts/checkruns were expected:

  • add-approve-lgtm-label
  • tide
  • verify-0_basic_ray
  • verify-1_cluster_job_client
  • verify-2_basic_interactive
  • verify-3_widget_example
  • verify-local_interactive
  • verify-ray_job_client

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/lgtm
/approve
/override kubernetes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

openshift-ci bot commented May 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kryanbeane, laurafitzgerald

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [kryanbeane,laurafitzgerald]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kryanbeane
Copy link
Contributor

/override kubernetes

Copy link
Contributor

openshift-ci bot commented May 13, 2025

@kryanbeane: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • kubernetes

Only the following failed contexts/checkruns were expected:

  • add-approve-lgtm-label
  • tide
  • verify-0_basic_ray
  • verify-1_cluster_job_client
  • verify-2_basic_interactive
  • verify-3_widget_example
  • verify-local_interactive
  • verify-ray_job_client

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override kubernetes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kryanbeane
Copy link
Contributor

/override tide

Copy link
Contributor

openshift-ci bot commented May 13, 2025

@kryanbeane: Overrode contexts on behalf of kryanbeane: tide

In response to this:

/override tide

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@laurafitzgerald
Copy link

/override kubernetes

Copy link
Contributor

openshift-ci bot commented May 13, 2025

@laurafitzgerald: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • kubernetes

Only the following failed contexts/checkruns were expected:

  • add-approve-lgtm-label
  • tide
  • verify-0_basic_ray
  • verify-1_cluster_job_client
  • verify-2_basic_interactive
  • verify-3_widget_example
  • verify-local_interactive
  • verify-ray_job_client

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override kubernetes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@laurafitzgerald laurafitzgerald merged commit 340f973 into project-codeflare:main May 13, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants