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

Convert pre-build task to yaml. #2117

Merged
merged 4 commits into from
Sep 30, 2024
Merged

Convert pre-build task to yaml. #2117

merged 4 commits into from
Sep 30, 2024

Conversation

rnc
Copy link
Collaborator

@rnc rnc commented Sep 25, 2024

No description provided.

Copy link
Contributor

openshift-ci bot commented Sep 25, 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

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 98.14815% with 2 lines in your changes missing coverage. Please review.

Project coverage is 39.71%. Comparing base (cf4dd15) to head (5717743).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
.../com/redhat/hacbs/container/deploy/git/GitHub.java 0.00% 1 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

name: jvm-build-git-secrets
key: .git-credentials
script: |
$(params.GIT_SCRIPT)
Copy link
Collaborator Author

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.

Copy link
Member

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)
Copy link
Collaborator Author

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).

Copy link
Member

@vibe13 vibe13 Sep 30, 2024

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",
Copy link
Collaborator Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@rnc rnc marked this pull request as ready for review September 25, 2024 13:19
@openshift-ci openshift-ci bot requested a review from vibe13 September 25, 2024 13:19
Copy link
Contributor

openshift-ci bot commented Sep 25, 2024

@rnc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/jvm-build-service-e2e a7bc4a4 link true /test jvm-build-service-e2e

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)
}
Copy link
Collaborator Author

@rnc rnc Sep 27, 2024

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.

Copy link
Member

@vibe13 vibe13 left a 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.

@openshift-ci openshift-ci bot added the lgtm label Sep 30, 2024
@rnc rnc merged commit 7259949 into redhat-appstudio:main Sep 30, 2024
23 checks passed
@rnc rnc deleted the KJB11 branch October 1, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants