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

Add Checkton workflow #1183

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Add Checkton workflow #1183

merged 2 commits into from
Jul 24, 2024

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Jul 23, 2024

Checkton is a GitHub action that runs ShellCheck on scripts embedded in YAML files (https://github.com/chmeliik/checkton)

@chmeliik
Copy link
Contributor Author

chmeliik commented Jul 23, 2024

FYI, I've opened a proposal for Checkton to move to the tektoncd org: tektoncd/community#1156

But even before that's resolved, let's start using it already?

@chmeliik
Copy link
Contributor Author

The output looks like this:

image

We could also upload the generated SARIF file to make GitHub show the warnings inline. But currently, there is an annoying bug (or feature?) where the warnings never go away even if you fix them - https://github.com/orgs/community/discussions/132787.

@chmeliik chmeliik enabled auto-merge July 23, 2024 08:33
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

Tests timed out while waiting for the enterprise-contract pipeline to pass

Tekton was very lazy today, just refusing to schedule any steps. Even the Tekton built-in ones

[verify-enterprise-contract : prepare] 2024/07/23 11:36:28 Entrypoint initialization

[verify-enterprise-contract : place-scripts] 2024/07/23 12:04:28 Decoded script /tekton/scripts/script-1-dfsnc

[verify-enterprise-contract : validate] time="2024-07-23T12:16:24Z"

@chmeliik
Copy link
Contributor Author

/retest

@tkdchen
Copy link
Contributor

tkdchen commented Jul 24, 2024

It doesn't need to run the Konflux pipeline when changes are made to .github/ and hack/.

chmeliik added 2 commits July 24, 2024 09:50
Checkton is a GitHub action that runs ShellCheck on scripts embedded in
YAML files (https://github.com/chmeliik/checkton)

Signed-off-by: Adam Cmiel <[email protected]>
If you don't want to push to a PR just to re-run the linter, you can use
this script.

Won't work on ARM Macs, sorry!

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik
Copy link
Contributor Author

Rebased on main

It doesn't need to run the Konflux pipeline when changes are made to .github/ and hack/.

True, but we can't merge without it. I'll see if we can make it not run when those are the only two dirs that changed. There was an attempt to do this by enumerating all the directories for which we do want to run the pipeline (#524), but that seemed very fragile.

@chmeliik
Copy link
Contributor Author

It doesn't need to run the Konflux pipeline when changes are made to .github/ and hack/.

True, but we can't merge without it. I'll see if we can make it not run when those are the only two dirs that changed. There was an attempt to do this by enumerating all the directories for which we do want to run the pipeline (#524), but that seemed very fragile.

And IMO we do need to run the pipeline on changes to hack/*, because the pipeline uses some hack/ scripts

@tkdchen
Copy link
Contributor

tkdchen commented Jul 24, 2024

And IMO we do need to run the pipeline on changes to hack/*, because the pipeline uses some hack/ scripts

Yes. 👍

@chmeliik chmeliik added this pull request to the merge queue Jul 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 24, 2024
@MartinBasti MartinBasti added this pull request to the merge queue Jul 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 24, 2024
@chmeliik chmeliik added this pull request to the merge queue Jul 24, 2024
Merged via the queue into konflux-ci:main with commit 573b36a Jul 24, 2024
8 checks passed
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.

4 participants