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

OCPBUGS-19384: Use gomplate templating engine #2351

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

pmtk
Copy link
Member

@pmtk pmtk commented Sep 14, 2023

No description provided.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 14, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 14, 2023

@pmtk: This pull request references USHIFT-1546 which is a valid jira issue.

In response to this:

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/test-infra repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 14, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 14, 2023

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

@pmtk pmtk changed the title USHIFT-1546: Transition to gomplate from envsubst USHIFT-1546: Use gomplate templating engine Sep 14, 2023
@pmtk
Copy link
Member Author

pmtk commented Sep 14, 2023

/test microshift-metal-tests

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2023
@pmtk
Copy link
Member Author

pmtk commented Sep 14, 2023

/cc @dhellmann

@pmtk pmtk marked this pull request as ready for review September 14, 2023 15:07
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 14, 2023
@pmtk
Copy link
Member Author

pmtk commented Sep 14, 2023

Putting on hold because to get this to 4.14, we need OCPBUGS tickets
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 14, 2023
@pmtk
Copy link
Member Author

pmtk commented Sep 15, 2023

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 15, 2023

@pmtk: The following commands are available to trigger required jobs:

  • /test images
  • /test metal-periodic-test
  • /test microshift-metal-tests
  • /test test-srpm
  • /test test-unit
  • /test verify

The following commands are available to trigger optional jobs:

  • /test microshift-metal-tests-arm
  • /test test-rebase

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-microshift-main-images
  • pull-ci-openshift-microshift-main-microshift-metal-tests
  • pull-ci-openshift-microshift-main-test-unit
  • pull-ci-openshift-microshift-main-verify

In response to this:

/test ?

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/test-infra repository.

@pmtk
Copy link
Member Author

pmtk commented Sep 15, 2023

/test metal-periodic-test

@dhellmann
Copy link
Contributor

This looks like a good change. The tool offers some options for passing inputs, so we could consider moving some values out of environment variables into a config file if that would make anything easier. There are some other types of files that use sed for replacing values (the kickstart templates are the main ones that come to mind), and we should convert those, too, but that can happen in another PR.

What does the team think about when to merge this?

@pmtk
Copy link
Member Author

pmtk commented Sep 19, 2023

This looks like a good change. The tool offers some options for passing inputs, so we could consider moving some values out of environment variables into a config file if that would make anything easier. There are some other types of files that use sed for replacing values (the kickstart templates are the main ones that come to mind), and we should convert those, too, but that can happen in another PR.

What does the team think about when to merge this?

I kept envvars so when we backport the change to 4.14, it doesn't change too much.
For 4.15 onwards, I'd definitely would try to ditch the envvars and use some explicit args instead

@pmtk pmtk changed the title USHIFT-1546: Use gomplate templating engine OCPBUGS-19384: Use gomplate templating engine Sep 19, 2023
@openshift-ci-robot
Copy link

@pmtk: This pull request references Jira Issue OCPBUGS-19384, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @jogeo

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

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/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Sep 19, 2023
@pmtk
Copy link
Member Author

pmtk commented Sep 19, 2023

/unhold

@openshift-ci openshift-ci bot requested a review from jogeo September 19, 2023 11:12
@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 19, 2023
Copy link
Contributor

@pacevedom pacevedom left a comment

Choose a reason for hiding this comment

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

a nice addition that allows more complex logic, will hold to allow others to take a look/review.
/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 19, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pacevedom, pmtk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eggfoobar
Copy link
Contributor

/unhold

Looks great, thanks @pmtk !

@pmtk
Copy link
Member Author

pmtk commented Sep 19, 2023

/cherrypick release-4.14

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 19, 2023
@openshift-cherrypick-robot

@pmtk: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you.

In response to this:

/cherrypick release-4.14

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/test-infra repository.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD bcdcf64 and 2 for PR HEAD c4e2526 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 19, 2023

@pmtk: all tests passed!

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 69ca1dd into openshift:main Sep 19, 2023
6 checks passed
@openshift-ci-robot
Copy link

@pmtk: Jira Issue OCPBUGS-19384: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-19384 has been moved to the MODIFIED state.

In response to this:

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/test-infra repository.

@openshift-cherrypick-robot

@pmtk: new pull request created: #2371

In response to this:

/cherrypick release-4.14

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/test-infra repository.

@pmtk pmtk deleted the 1546-gomplate branch November 6, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants