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

Change shellcheck tests #12848

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

jan-cerny
Copy link
Collaborator

The shellcheck tests take a lot of time, each of them up to 20 seconds. This commit does the following changes:

  1. Disable the data flow analysis. The data flow analysis can find more issues but is slow.
  2. Don't mark the test as quick.

Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@Mab879
Copy link
Member

Mab879 commented Jan 17, 2025

--extended-analysis=false doesn't seem to be universal, please double-check.

@Mab879 Mab879 self-assigned this Jan 17, 2025
@Mab879 Mab879 added this to the 0.1.76 milestone Jan 17, 2025
The shellcheck tests take a lot of time, each of them up to 20 seconds.
This commit does the following changes:
1. Disable the data flow analysis. The data flow analysis can find more
   issues but is slow.
2. Don't mark the test as quick.
@jan-cerny jan-cerny force-pushed the shellcheck_downgrade branch from 7d2a8ff to d478e31 Compare January 17, 2025 16:10
@Mab879
Copy link
Member

Mab879 commented Jan 20, 2025

Still seems there is some sort of issue with the new check.

: : openBinaryFile: does not exist (No such file or directory)

@Mab879 Mab879 added the Infrastructure Our content build system label Jan 20, 2025
@jan-cerny
Copy link
Collaborator Author

I have tried to change my approach so that there is no variable involved and not pass an empty string to shellcheck wrapper.

Copy link

codeclimate bot commented Jan 20, 2025

Code Climate has analyzed commit b7d2d12 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 61.9% (0.0% change).

View more on Code Climate.

@jan-cerny
Copy link
Collaborator Author

/packit build

@Mab879 Mab879 merged commit fa1f32c into ComplianceAsCode:master Jan 21, 2025
109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants