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

static-checks: Direct Makefile to use new static checks #8635

Merged
merged 4 commits into from Dec 14, 2023

Conversation

cmaf
Copy link
Contributor

@cmaf cmaf commented Dec 12, 2023

Direct the Makefile to use the static checks script in the tests directory of the main Kata Containers repo so that when GHA runs make static-checks the new migrated script is used.

Remove the old static checks script and the function in lib.sh that uses the test repo.

Fixes #8595

Signed-off-by: Chelsea Mafrica chelsea.e.mafrica@intel.com

@cmaf cmaf added the wip Work in Progress (PR incomplete - needs more work or rework) label Dec 12, 2023
@cmaf
Copy link
Contributor Author

cmaf commented Dec 12, 2023

Please hold off on merging before I run some local tests tomorrow.

Fix paths for yqdir (where the install_yq.sh script currently is) so
that static checks can run without error.

Fixes kata-containers#8595

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
@katacontainersbot katacontainersbot added size/small Small and simple task size/medium Average sized task and removed size/small Small and simple task labels Dec 12, 2023
@cmaf cmaf added safe-to-test Add to PR after manually reviewing to allow certain extra checks to run ok-to-test and removed wip Work in Progress (PR incomplete - needs more work or rework) labels Dec 12, 2023
@katacontainersbot katacontainersbot added size/small Small and simple task and removed size/medium Average sized task labels Dec 12, 2023
Change directory for running make due to local errors when building with
make -C.

Fixes kata-containers#8595

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
Some copyright dates were not updated with the most recent changes to
code; update them.

Fixes kata-containers#8595

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
Direct the Makefile to use the static checks script in the tests
directory of the main Kata Containers repo so it is run in GHA.

Fixes kata-containers#8595

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
@cmaf
Copy link
Contributor Author

cmaf commented Dec 13, 2023

Will remove the function in lib.sh and the ci/static-checks.sh script in a follow-up PR since some other scripts unrelated to GHA still point to them.

This is a follow up to #8288

@cmaf
Copy link
Contributor Author

cmaf commented Dec 13, 2023

/test

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @cmaf.

lgtm

@cmaf cmaf merged commit 6c2e2a9 into kata-containers:main Dec 14, 2023
169 of 179 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test safe-to-test Add to PR after manually reviewing to allow certain extra checks to run size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hook up migrated static checks to GHA
4 participants