Skip to content

ROX-20232: Reduce duplication in Scanner Konflux pipelines #1492

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

Merged
merged 12 commits into from
May 21, 2024

Conversation

msugakov
Copy link
Contributor

@msugakov msugakov commented Apr 30, 2024

Following example in stackrox/stackrox#10866, I factor a common pipeline that's reused for each scanner's component.

Testing: only CI.
EC seems to complain about outdated tasks, it's a known issue not caused by this.

Copy link

openshift-ci bot commented Apr 30, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@msugakov msugakov force-pushed the misha/ROX-20232-sort-scanner-konflux-pipelines branch from 97224dc to fad301b Compare May 2, 2024 08:23
@msugakov msugakov force-pushed the misha/ROX-20232-sort-scanner-konflux-pipelines branch from fad301b to 927b9ef Compare May 10, 2024 16:55
msugakov added 6 commits May 15, 2024 14:07
Just pressed the magic keys combination, no manual changes.
So that factoring a common pipeline can go more easily.
Otherwise, they are used implicitly which does not look good.
@msugakov msugakov force-pushed the misha/ROX-20232-sort-scanner-konflux-pipelines branch 5 times, most recently from 93c0feb to a705ab2 Compare May 15, 2024 15:34
@msugakov msugakov force-pushed the misha/ROX-20232-sort-scanner-konflux-pipelines branch 8 times, most recently from 374ba4a to e24ae65 Compare May 16, 2024 10:44
msugakov added 5 commits May 16, 2024 18:05
This allows not to fail scanner-db-slim build but at the same time
have its pipeline definition identical to others.
and use it everywhere instead of repeating code.
It makes little sense to have `target-dir` anything outside
workspaces, and there's only one workspace. Therefore, one can be
relative.
Also, given we save to repo root, I supplied the default. Not very
sure but let's give it some time and see if it causes more
maintenance.
@msugakov msugakov force-pushed the misha/ROX-20232-sort-scanner-konflux-pipelines branch from 5c2ab8b to 7a9f5d9 Compare May 16, 2024 16:18
@msugakov msugakov marked this pull request as ready for review May 16, 2024 16:19
@msugakov msugakov requested a review from a team as a code owner May 16, 2024 16:19
@msugakov msugakov requested review from kylape and tommartensen May 16, 2024 16:19
@msugakov
Copy link
Contributor Author

/retest

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.

2 participants