Skip to content
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

[ci][postmerge/2] schedule gap builds #44576

Merged
merged 5 commits into from
Apr 16, 2024
Merged

[ci][postmerge/2] schedule gap builds #44576

merged 5 commits into from
Apr 16, 2024

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented Apr 8, 2024

  • Add logic to compute the list of gap commits and schedule one build for each gap
  • Implement the function to trigger a blocked build on postmerge
  • Also cache the _get_builds function which is used repeatedly and quite expensive

Test:

  • CI

@can-anyscale can-anyscale requested a review from a team April 8, 2024 20:59
@can-anyscale can-anyscale force-pushed the can-pm02 branch 2 times, most recently from 6412bd0 to b8dbc1a Compare April 8, 2024 21:02
@can-anyscale can-anyscale requested a review from a team as a code owner April 8, 2024 21:03
@can-anyscale can-anyscale force-pushed the can-pm02 branch 2 times, most recently from 5c18a9b to 054f6f4 Compare April 9, 2024 21:54
@can-anyscale can-anyscale force-pushed the can-pm01 branch 6 times, most recently from 85ffd49 to f9c868a Compare April 11, 2024 02:15
@can-anyscale can-anyscale force-pushed the can-pm02 branch 2 times, most recently from dbda268 to 3745eae Compare April 11, 2024 02:37
Comment on lines 49 to 50
f"git rev-list --reverse ^{passing_revision} {failing_revision}~",
shell=True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't use shell ? but send in the args list?

@mock.patch(
"ci.ray_ci.pipeline.gap_filling_scheduler.GapFillingScheduler.get_gap_commits"
)
def test_run(mock_get_gap_commits, mock_trigger_build):
Copy link
Collaborator

Choose a reason for hiding this comment

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

add test case where no builds are triggered?

Base automatically changed from can-pm01 to master April 12, 2024 17:09
@can-anyscale
Copy link
Collaborator Author

@aslonnie's comments

.split("\n")
)

def _trigger_build(self, commit: str) -> int:
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the return value of this? should this return an integer as a place holder so that it respects the typing annotation?

we should probably turn on typing lints for CI python scripts..

* [ci][postmerge/2] schedule gap filling builds

Signed-off-by: can <[email protected]>

* [ci][postmerge/2] schedule gap filling builds

Signed-off-by: can <[email protected]>

* [ci][postmerge/3] actually trigger build in commit gaps

Signed-off-by: can <[email protected]>

---------

Signed-off-by: can <[email protected]>
@can-anyscale can-anyscale merged commit 7028479 into master Apr 16, 2024
3 of 5 checks passed
@can-anyscale can-anyscale deleted the can-pm02 branch April 16, 2024 19:00
harborn pushed a commit to harborn/ray that referenced this pull request Apr 18, 2024
- Add logic to compute the list of gap commits and schedule one build for each gap
- Implement the function to trigger a blocked build on postmerge
- Also cache the _get_builds function which is used repeatedly and quite expensive

Signed-off-by: can <[email protected]>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 7, 2024
- Add logic to compute the list of gap commits and schedule one build for each gap
- Implement the function to trigger a blocked build on postmerge
- Also cache the _get_builds function which is used repeatedly and quite expensive

Signed-off-by: can <[email protected]>
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.

2 participants