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

Fixes to fetch latest crc version in github workflow #154

Merged

Conversation

PuneetPunamiya
Copy link
Contributor

No description provided.

@PuneetPunamiya PuneetPunamiya force-pushed the fetch-latest-crc-version branch from 93e5560 to 9266417 Compare November 28, 2024 13:23
@PuneetPunamiya PuneetPunamiya changed the title Fetch new crc version Fixes to fetch latest crc version in github workflow Nov 28, 2024
Comment on lines +38 to +43
latest_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/crc-org/crc \
| tail -n1 \
| sed 's/.*\///; s/\^{}//; s/^v//')

# Use the extracted version in the tar command
tar -xf crc-linux-amd64.tar.xz --directory /usr/local/bin --strip-components=1 "crc-linux-${latest_version}-amd64/crc"
Copy link
Member

Choose a reason for hiding this comment

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

We are doing that because even though it is latest, the binary has the version number in the tarball ?

Copy link
Contributor

Choose a reason for hiding this comment

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

As we are building tekton-caches from konflux, should we invest on GH workflows ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are doing that because even though it is latest, the binary has the version number in the tarball ?

@vdemeester Yes, the binary has the version inside the tarball

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As we are building tekton-caches from konflux, should we invest on GH workflows ?

@pramodbindal I'm sorry I did not get the context completely

Copy link
Contributor

Choose a reason for hiding this comment

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

@PuneetPunamiya / @vdemeester
We are building all compoennts from konflux including tekton-caches.

so any kind of build/test/release related enhancements should be done there only.

Copy link
Member

Choose a reason for hiding this comment

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

@pramodbindal not necessarily no. We use whatever works and depending on the constraints.
For example, we use konflux to be able to easily release it as part of the Red Hat OpenShift Pipelines operator — if we didn't integrate it with, we wouldn't probably use konflux here and only rely on GitHub workflows.

What we need to make sure is that it is relatively easily to switch from one CI to the other. For example, running e2e tests on crc or on another openshift instance should be a matter of a set of different arguments we pass to a script.

But in general, there is no reason to stick to only on CI system and do everything in it. Let's use what works best for what me need, and we can mix and match.

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

@PuneetPunamiya can be done in a follow-up, but we might want to rename the workflow, to something like "e2e tests on CRC" or something 👼🏼

@vdemeester vdemeester merged commit d0ef2d4 into openshift-pipelines:main Nov 29, 2024
6 checks passed
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.

3 participants