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

Extend ChangesetOutput to include a list of ProposedJobs #16129

Conversation

cgruber
Copy link
Collaborator

@cgruber cgruber commented Jan 29, 2025

Extend ChangesetOutput to include a ProposedJobs slice, which contains the job spec, the node id, and the job id (as returned from the propose API of JD). Also, mark JobSpecs as deprecated. Once we remove all JobSpecs use, we can remove that field.

DPA-1518

@cgruber cgruber force-pushed the DPA-1518-Update-ChangesetOutput-to-support-a-list-of-job-Ids-in-place-of-job-specs branch from 2f32f73 to 15508a8 Compare January 29, 2025 22:17
AnieeG
AnieeG previously approved these changes Jan 29, 2025
// Job Distributor.
type ProposedJob struct {
JobId string
Node string
Copy link
Contributor

Choose a reason for hiding this comment

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

is this the NodeId returned by JD?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's whatever node was going to be used in the existing code - I believe JobSpec right now is indexed by node. That one.

@cgruber cgruber marked this pull request as ready for review January 29, 2025 22:23
@cgruber cgruber requested review from kylesmartin and a team as code owners January 29, 2025 22:23
Copy link
Contributor

github-actions bot commented Jan 29, 2025

AER Report: CI Core

aer_workflow , commit , Clean Go Tidy & Generate , Detect Changes , Scheduled Run Frequency , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_fuzz) , GolangCI Lint (deployment) , Core Tests (go_core_race_tests) , test-scripts , lint , SonarQube Scan

1. Empty block in code: Golang Lint (deployment)

Source of Error:
Golang Lint (deployment)	2025-01-30T18:09:37.8759239Z ##[error]deployment/common/changeset/test_helpers.go:71:22: empty-block: this block is empty, you can remove it (revive)
Golang Lint (deployment)	2025-01-30T18:09:37.8759970Z 		if out.Jobs != nil {
Golang Lint (deployment)	2025-01-30T18:09:37.8760229Z 			// do nothing, as these jobs auto-accept.
Golang Lint (deployment)	2025-01-30T18:09:37.8761051Z 		}

Why: The linter detected an empty block in the code, which is generally considered bad practice as it can lead to confusion and maintenance issues.

Suggested fix: Remove the empty block or add meaningful code inside the block if it is necessary for future logic.

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

krehermann
krehermann previously approved these changes Jan 29, 2025
@cgruber cgruber dismissed stale reviews from krehermann and AnieeG via 9cc7658 January 29, 2025 23:24
@cgruber cgruber force-pushed the DPA-1518-Update-ChangesetOutput-to-support-a-list-of-job-Ids-in-place-of-job-specs branch from 15508a8 to 9cc7658 Compare January 29, 2025 23:24
…s the job spec, the node id, and the job id (as returned from the propose API of JD). Also, mark JobSpecs as deprecated. Once we remove all JobSpecs use, we can remove that field.
@cgruber cgruber force-pushed the DPA-1518-Update-ChangesetOutput-to-support-a-list-of-job-Ids-in-place-of-job-specs branch from 9cc7658 to bbb8677 Compare January 30, 2025 18:04
@cgruber cgruber added this pull request to the merge queue Jan 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 31, 2025
@cgruber cgruber added this pull request to the merge queue Jan 31, 2025
Merged via the queue into develop with commit 94d59c1 Jan 31, 2025
204 of 206 checks passed
@cgruber cgruber deleted the DPA-1518-Update-ChangesetOutput-to-support-a-list-of-job-Ids-in-place-of-job-specs branch January 31, 2025 21:46
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.

3 participants