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

windows-artifacts: run yq --inplace to windows-artifacts.yml #4175

Merged
merged 2 commits into from
May 23, 2024

Conversation

praveenkumar
Copy link
Member

Looks like when yq is run on any yaml file it strip the blank like from
the output so as part of parse mikefarah/yq#515

we use to parse this file to update the go version using the script in
next commit so this commit just to make sure the formatting is right
when it parsed with yq

It is generated using yq --inplace .github/workflows/windows-artifacts.yml

Looks like when yq is run on any yaml file it strip the blank like from
the output so as part of parse mikefarah/yq#515

we use to parse this file to update the go version using the script in
next commit so this commit just to make sure the formatting is right
when it parsed with `yq`

It is generated using `yq --inplace
.github/workflows/windows-artifacts.yml`
in windows-artifacts.yml go version is mention under `build-installer`
instead of `build` so this is missed during the go version update. This
PR add it also so in future we don't miss.
@openshift-ci openshift-ci bot requested review from anjannath and cfergeau May 23, 2024 12:11
Copy link

openshift-ci bot commented May 23, 2024

@praveenkumar: 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/security 5224bab link false /test security

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.

Copy link

openshift-ci bot commented May 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianriobo

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

@praveenkumar praveenkumar merged commit 860f026 into crc-org:main May 23, 2024
21 of 29 checks passed
@@ -18,4 +18,7 @@ for f in .github/workflows/*.yml; do
if [ $(yq eval '.jobs.build.strategy.matrix | has("go")' "$f") == "true" ]; then
yq eval --inplace ".jobs.build.strategy.matrix.go[0] = ${golang_base_version} | .jobs.build.strategy.matrix.go[0] style=\"single\"" "$f";
fi
if [ $(yq eval '.jobs.build-installer.strategy.matrix | has("go")' "$f") == "true" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we'd be able to use something like .jobs.*.strategy.matrix instead of hardcoding the name of the jobs.

Copy link
Contributor

Choose a reason for hiding this comment

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

If we are going to create a following for this I just realized the name for the images images/*/Dockerfile will not work for build-e2e and build-integration as I use the Containerfile as name for the file.

Copy link
Contributor

Choose a reason for hiding this comment

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

An additional question how does dependabot fit in this upgrade process?

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.

3 participants