-
Notifications
You must be signed in to change notification settings - Fork 32
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
Convert pre-build task to yaml. #2117
Conversation
Skipping CI for Draft Pull Request. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2117 +/- ##
============================================
+ Coverage 39.55% 39.71% +0.15%
Complexity 812 812
============================================
Files 301 301
Lines 13994 14034 +40
Branches 1468 1468
============================================
+ Hits 5536 5573 +37
- Misses 7821 7823 +2
- Partials 637 638 +1 ☔ View full report in Codecov by Sentry. |
name: jvm-build-git-secrets | ||
key: .git-credentials | ||
script: | | ||
$(params.GIT_SCRIPT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently not using Konflux git clone task but the original simple git clone from JBS and passing it through as a script from the operator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more we use Konflux's tasks the better I think, but not a problem for now to use our own. Can be a subsequent PR.
cpu: 10m | ||
memory: 512Mi | ||
script: | | ||
$(params.BUILD_SCRIPT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To embed the Containerfile / build-script into the repository currently passing them through from the operator (which is generating them). Eventually I think the preprocessor should generate them (for the following steps (create-pre-build-source
and create-pre-build-image
) to use).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I believe it would be cleaner that the preprocessor generates the build script and propagates it as a result to following steps. Can be a subsequent PR.
Name: "url", | ||
Value: tektonpipeline.ParamValue{ | ||
Type: tektonpipeline.ParamTypeString, | ||
StringVal: "https://raw.githubusercontent.com/rnc/jvm-build-service/KJB11/deploy/tasks/pre-build.yaml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per prior PRs will need a follow-up PR to correct the branch/repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@rnc: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
||
func (ta *testArgs) Logf(msg string) { | ||
ta.t.Logf("time: %s: %s", time.Now().String(), msg) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The golang testing logging formatter does stack frame depth calculation to print out where the logging is from. If its redirected that breaks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!! Agree on the suggestions to use konflux's tasks and to propagate the build-script from the preprocessor task, can be other PRs.
No description provided.