Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

static-checks: only check files in Git index#1868

Merged
chavafg merged 1 commit intokata-containers:masterfrom
marcov:static-checks-git-ls-files
Jul 29, 2019
Merged

static-checks: only check files in Git index#1868
chavafg merged 1 commit intokata-containers:masterfrom
marcov:static-checks-git-ls-files

Conversation

@marcov
Copy link
Copy Markdown
Contributor

@marcov marcov commented Jul 29, 2019

Only run static checks on the files in the Git index, to avoid any side
effects of checks failing because of untracked files, such as build
artifacts.

Fixes: #1867

Signed-off-by: Marco Vedovati mvedovati@suse.com

Only run static checks on the files in the Git index, to avoid any side
effects of checks failing because of untracked files, such as build
artifacts.

Fixes: kata-containers#1867

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
Copy link
Copy Markdown
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown

@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.

Nice.

lgtm

@jodh-intel
Copy link
Copy Markdown

/test

@marcov
Copy link
Copy Markdown
Contributor Author

marcov commented Jul 29, 2019

@grahamwhaley can we ignore metrics and cri-containerd failures given I just changed static-checks?

@chavafg
Copy link
Copy Markdown
Contributor

chavafg commented Jul 29, 2019

I think we can merge this one also as it is only related to static checks

@chavafg chavafg merged commit 927f701 into kata-containers:master Jul 29, 2019
@grahamwhaley
Copy link
Copy Markdown
Contributor

yeah, my suspicion is that maybe the merge of the kernel fragments (we did merge that, right @devimc ?), has changed the metrics, but the baseline measures have not been updated in a PR yet.

jodh-intel pushed a commit to jodh-intel/tests-1 that referenced this pull request Aug 2, 2019
We recently switched from using `find(1)` to `git-ls-files(1)` to
determine which files run static checks for [1]. Unfortunately, the formats
of these commands are slightly different so update the code to ignore
vendor files as previously, vendor files were being checked.

[1] - kata-containers#1868

Fixes: kata-containers#1892.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run static-checks on Git index files only.

4 participants