Skip to content

Disable the field alignment lint check#4560

Merged
andrewsykim merged 5 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint
Mar 11, 2026
Merged

Disable the field alignment lint check#4560
andrewsykim merged 5 commits intoray-project:masterfrom
jinbum-kim:chore/disable-fieldalignment-lint

Conversation

@jinbum-kim
Copy link
Contributor

Why are these changes needed?

This PR is related to #4557.

This PR disables the govet fieldalignment analyzer in golangci-lint configuration to reduce lint noise and avoid forcing struct field reordering for readability reasons.

As a follow-up to disabling it, the golangci-lint pre-commit hook updated a couple of files by removing now-unnecessary //nolint:govet annotations.

Related issue number

closes #4557

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

// +kubebuilder:resource:categories=all
// +kubebuilder:storageversion
//
//nolint:govet // RayCronJob is the Schema for the raycronjobs API
Copy link
Member

Choose a reason for hiding this comment

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

Keep the original comment // RayCronJob is the Schema for the raycronjobs API

Copy link
Contributor Author

@jinbum-kim jinbum-kim Mar 5, 2026

Choose a reason for hiding this comment

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

restore in here

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

//nolint:govet // RayCronJobSpec defines the desired state of RayCronJob
Copy link
Member

Choose a reason for hiding this comment

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

Keep original comment // RayCronJobSpec defines the desired state of RayCronJob

Copy link
Contributor Author

@jinbum-kim jinbum-kim Mar 5, 2026

Choose a reason for hiding this comment

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

restore in here

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@jinbum-kim jinbum-kim force-pushed the chore/disable-fieldalignment-lint branch from addf402 to a927077 Compare March 5, 2026 01:21
@jinbum-kim
Copy link
Contributor Author

Hi @andrewsykim,
After reviewing the CI failure logs, it seems that restoring the original RayCronJob / RayCronJobSpec comments from //nolint:govet // ... to plain doc comments also affects generated artifacts.

I reproduced this locally and confirmed that running make api-docs and the codegen scripts(/hack/update-codegen.sh / hack/verify-codegen.sh) updates docs/reference/api.md and the applyconfiguration files accordingly.

Would it be okay if I add a follow-up commit with those regenerated files?

@andrewsykim
Copy link
Member

Yes I think it's fine to leave the //nolint:govet comment for now then

@jinbum-kim
Copy link
Contributor Author

Regarding the //nolint:govet comment, because removing fieldalignment makes it an unused directive, the pre-commit hook automatically remove it. So, even if I bypass the local hook to restore it, the CI check will likely fail.

Please let me know how you'd like to proceed, and I'll update accordingly! (regenerated files in this or other issue, etc.)

@andrewsykim
Copy link
Member

Please remove //nolint:govet and regenerate everything. Let's review the changes and decide next steps

@jinbum-kim jinbum-kim force-pushed the chore/disable-fieldalignment-lint branch from a927077 to 0163020 Compare March 10, 2026 01:57
@jinbum-kim
Copy link
Contributor Author

Could someone please trigger the git actions test? thanks!

@andrewsykim
Copy link
Member

triggered

@jinbum-kim
Copy link
Contributor Author

I'm sorry but I missed the previous comment about regenerating everything, so I initially pushed a commit with only the source changes. I’ve now added a follow-up commit with the regenerated artifacts.

Could you please re-run the git actions checks?

@andrewsykim andrewsykim merged commit 6729e75 into ray-project:master Mar 11, 2026
31 checks passed
@jinbum-kim jinbum-kim deleted the chore/disable-fieldalignment-lint branch March 12, 2026 01:24
hango880623 pushed a commit to hango880623/kuberay that referenced this pull request Mar 13, 2026
* chore: disable govet fieldalignment lint

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

* chore: remove redundant //nolint:govet comments

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

* chore: restore RayCronJobSpec/RayCronJob comments

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

* chore: restore RayCronJob comment

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

* chore: regenerate artifacts for RayCronJob comment changes

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

---------

Signed-off-by: jinbum9958 <[email protected]>
rueian added a commit that referenced this pull request Mar 19, 2026
* Disable RayMultiHostIndexing feature for TestReconcile_Multihost_Replicas (#4583)

Signed-off-by: Future-Outlier <[email protected]>

* Disable the field alignment lint check (#4560)

* chore: disable govet fieldalignment lint

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

* chore: remove redundant //nolint:govet comments

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

* chore: restore RayCronJobSpec/RayCronJob comments

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

* chore: restore RayCronJob comment

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

* chore: regenerate artifacts for RayCronJob comment changes

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

---------

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

* Mark RC releases as pre-release in GoReleaser (#4590)

Signed-off-by: Future-Outlier <[email protected]>

* Add example YAML for manually enabling Ray k8s auth (#4582)

Signed-off-by: Andrew Sy Kim <[email protected]>

* [RayService] Rollback Support for Incremental Upgrades (#4109)

* Implement rollback support

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix unit test file

Signed-off-by: Ryan O'Leary <[email protected]>

* Ensure upgrade in progress status is cleared

Signed-off-by: Ryan O'Leary <[email protected]>

* Clarify rollback scenarios and clear pending apps during rollback

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix typo

Signed-off-by: Ryan O'Leary <[email protected]>

* Add guard for rollback to prepare new cluster

Signed-off-by: Ryan O'Leary <[email protected]>

* fix e2e test checking pending cluster name

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix rollback calculation

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix httproute name in test

Signed-off-by: Ryan O'Leary <[email protected]>

* Increase timeout for checking RayCluster deletion

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix rollback check and change httproute equal check so it doesn't always evaluate false

Signed-off-by: Ryan O'Leary <[email protected]>

* Adjust logic to use timestamp of growing cluster

Signed-off-by: Ryan O'Leary <[email protected]>

* Fix naming of vars

Signed-off-by: Ryan O'Leary <[email protected]>

---------

Signed-off-by: Ryan O'Leary <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>

* [RayService] Promote Incremental Upgrade Feature to Beta (#4599)

Signed-off-by: Ryan O'Leary <[email protected]>

* Revert "[RayService] Promote Incremental Upgrade Feature to Beta (#4599)" (#4602)

This reverts commit 0c8aab9.

* [Github Action] Skip krew-index update for pre-release tags (#4587)

* [CI] Skip krew-index update for pre-release tags

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

---------

Signed-off-by: Future-Outlier <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>

* [Helm] update ray-cluster chart to apiVersion: v2 (#4593)

* Update kind configs and docs to v1.29.0 (#4595)

* Remove ingress template support for k8s < 1.19 (#4591)

* [Helm] Update ray-cluster default resource values (#4588)

* update kuberay 1.6.0 helm chart and readme

Signed-off-by: Future-Outlier <[email protected]>

* [Helm] Fix apiserver README chart version and align ray-cluster resource defaults

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* fix ctl test

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

---------

Signed-off-by: Future-Outlier <[email protected]>

* fix lint

Signed-off-by: Future-Outlier <[email protected]>

* chore: Use RayCluster name as SA name for RBAC auth (#4611)

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

* Add Google Artifact Registry image build/push guide (#4618)

* [History Server] Fix API response format to match Ray Dashboard frontend schema (#4615)

* [History Server] Fix API response format to match Ray Dashboard frontend schema

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* fix bug 1

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* add comments to explain frontend fields naming issue

Signed-off-by: Future-Outlier <[email protected]>

* fix tests

Signed-off-by: Future-Outlier <[email protected]>

* Add comments

Signed-off-by: Future-Outlier <[email protected]>

* update

Signed-off-by: Future-Outlier <[email protected]>

* Add frontend reference for this PR

Signed-off-by: Future-Outlier <[email protected]>

* fix codex and cursor bug

Signed-off-by: Future-Outlier <[email protected]>

* upadte

Signed-off-by: Future-Outlier <[email protected]>

* add actor.LabelSelector

Signed-off-by: Future-Outlier <[email protected]>

* better query for additional endpoints, request URI (path + query)

Signed-off-by: Future-Outlier <[email protected]>

* Add comments

Signed-off-by: Future-Outlier <[email protected]>

---------

Signed-off-by: Future-Outlier <[email protected]>

---------

Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: jinbum9958 <[email protected]>
Signed-off-by: Andrew Sy Kim <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
Signed-off-by: JiangJiaWei1103 <[email protected]>
Co-authored-by: Han-Ju Chen (Future-Outlier) <[email protected]>
Co-authored-by: Jinbum Kim <[email protected]>
Co-authored-by: Andrew Sy Kim <[email protected]>
Co-authored-by: Ryan O'Leary <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Matt Boersma <[email protected]>
Co-authored-by: Jia-Wei Jiang <[email protected]>
Co-authored-by: Chia-Yi Liang <[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.

Consider disabling field alignment lint check

2 participants