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

Disaggregate consumer linting for full coverage #36

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

dfarrell07
Copy link
Owner

For better coverage, clearer maintenance, and more readable log output.

This also removes the make lint target. Per discussion on submariner-io#739, it
isn't used by devs and causes unclear maintenance that can result in
gaps in test coverage.

I looked at doing this by using per-project linter jobs and a custom
GitHub Action for the logic that can be extracted. Because we can't use
other GHAs in custom GHAs, we can't extract actions/checkout or would
have to create custom git logic to extract the two checkout steps.
Splitting each desired linter/project combo into a job results in lots
of duplicated GHA boilerplate. It also wastes resources re-doing things
like building the Shipyard image. Splitting each project into a parallel
job and clearly separating the linting runs in the output using steps
seems like the best solution overall.

Also reorder markdownlint make target for consistent ABC ordering.

Signed-off-by: Daniel Farrell dfarrell@redhat.com

@dfarrell07 dfarrell07 force-pushed the disagg_cons_lint_test branch 8 times, most recently from e367191 to 0e6def3 Compare March 2, 2022 00:20
For better coverage, clearer maintenance, and more readable log output.

This also removes the `make lint` target. Per discussion on submariner-io#739, it
isn't used by devs and causes unclear maintenance that can result in
gaps in test coverage.

I looked at doing this by using per-project linter jobs and a custom
GitHub Action for the logic that can be extracted. Because we can't use
other GHAs in custom GHAs, we can't extract actions/checkout or would
have to create custom git logic to extract the two checkout steps.
Splitting each desired linter/project combo into a job results in lots
of duplicated GHA boilerplate. It also wastes resources re-doing things
like building the Shipyard image. Splitting each project into a parallel
job and clearly separating the linting runs in the output using steps
seems like the best solution overall.

Also reorder markdownlint make target for consistent ABC ordering.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
@dfarrell07 dfarrell07 force-pushed the disagg_cons_lint_test branch from 0e6def3 to d9ff89d Compare March 2, 2022 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant