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

Cirrus-CI: test_building_snap and upload_snap produce podman 0.11.1.1 #4134

Closed
cevich opened this issue Sep 27, 2019 · 21 comments
Closed

Cirrus-CI: test_building_snap and upload_snap produce podman 0.11.1.1 #4134

cevich opened this issue Sep 27, 2019 · 21 comments
Assignees
Labels
do-not-close kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue

Comments

@cevich
Copy link
Member

cevich commented Sep 27, 2019

/kind bug

Description

In .cirrus.yml these two tasks build, then build + upload podman to snapcraft. For some reason both believe the podman version is 0.11.1.1

Steps to reproduce the issue:

  1. Open PR

  2. Merge PR

Describe the results you received:

(from cirrus output)

...cut...
'grade' property not specified: defaulting to 'stable'
Snapping 'podman' ...
Snapped podman_0.11.1.1_amd64.snap
Downloading 'v0.11.1.1.tar.gz'                                                 
Downloading 'v0.11.1.1.tar.gz'                                                 
Preparing to push 'podman_0.11.1.1_amd64.snap'.
After pushing, an attempt will be made to release to 'edge'
...cut...

Describe the results you expected:

The proper version should be built and uploaded

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 27, 2019
@cevich
Copy link
Member Author

cevich commented Sep 27, 2019

@abitrolly would you mind looking into this?

@cevich
Copy link
Member Author

cevich commented Sep 27, 2019

if it helps, this script will spit out the proper version number on stdout:

./hack/get_release_info.sh VERSION

@abitrolly
Copy link
Contributor

Oh, right.. The version is hardcoded here https://github.com/containers/libpod/blob/e87012de126a701a5afce73bea3811a540059f65/contrib/snapcraft/snap/snapcraft.yaml#L2

I am checking how people maintain it properly for CI.

@abitrolly
Copy link
Contributor

This line also doesn't seem right. It was ok when snapcraft.yml was in a separate repository.

https://github.com/containers/libpod/blob/e87012de126a701a5afce73bea3811a540059f65/contrib/snapcraft/snap/snapcraft.yaml#L17

@abitrolly
Copy link
Contributor

It should be possible to build latest master by using https://github.com/containers/libpod/archive/master.tar.gz The snap build will still fail because of drifted dependencies from https://github.com/containers/libpod/blob/master/install.md#build-and-run-dependencies

The proper solution is still to use code from current checkout.

@cevich
Copy link
Member Author

cevich commented Sep 30, 2019

Interesting, so we already have a mechanism that builds a zip file for the current checkout (on master and PRs). Could that be re-used?

ref: contrib/cirrus/build_release.sh

Inside the zip is a release.txt containing the build/platform information. We upload this file for both podman and podman-remote, for PRs and master, to a public google storage bucket.

ref: contrib/cirrus/upload_release_archive.sh

If that's not enough, there is a caching mechanism provided by Cirrus-CI, we could use that to provide files from one task to another.

@cevich
Copy link
Member Author

cevich commented Sep 30, 2019

@github-actions
Copy link

This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days.

@abitrolly
Copy link
Contributor

/label do-no-close

@openshift-ci-robot
Copy link
Collaborator

@abitrolly: The label(s) /label do-no-close cannot be applied. These labels are supported: platform/aws, platform/azure, platform/baremetal, platform/google, platform/libvirt, platform/openstack, ga

In response to this:

/label do-no-close

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.

@abitrolly
Copy link
Contributor

@github-actions

this is not fixed yet, because podman build is not a simple go build

@rhatdan
Copy link
Member

rhatdan commented Feb 17, 2020

@abitrolly @cevich @afbjorklund Any movement on this one?

@afbjorklund
Copy link
Contributor

@rhatdan : have no idea about snap, I wondered about a regular Linux binary (for podman-remote)

@rhatdan
Copy link
Member

rhatdan commented Feb 18, 2020

@afbjorklund You just want podman to execute podman-remote when it connects to a remote IP correct? Or to embed the code within itself.

@abitrolly
Copy link
Contributor

The easiest way to tackle this is to compile podman binary and all assets in a separate step and pass them as .tar.gz to snap and make use of "dump" plugin to deliver it.

I run out of for money and I need to unsubscribe from all activities to deal with this particular problem. Sorry.

@afbjorklund
Copy link
Contributor

@rhatdan : I think there was a request from the user, to not have to use different commands depending on if the containers were running locally or remotely - it was described more in #4390 (comment)

For minikube, we want the user (who could be on linux) to be able to run podman-remote to the VM. So it would be nice to have podman-remote available on all platforms, including linux (without snapd).

@rhatdan
Copy link
Member

rhatdan commented Feb 23, 2020

@baude @jwhonce, @mheon and I have been discussing this for the rewrite of podman-remote to support APIV2.

@afbjorklund
Copy link
Contributor

I made my own binaries meanwhile, basically just ran make - before the CI process is up again...

make podman-remote-linux podman-remote-windows podman-remote-darwin

https://github.com/boot2podman/libpod/releases/tag/v1.6.5

Apparently nobody is using tarballs or checksums anymore.

abitrolly added a commit to abitrolly/podman that referenced this issue May 4, 2020
Should fix containers#4134.

Signed-off-by: Anatoli Babenia <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Jun 9, 2020

@cevich Is this still needed or can we close it?

@mheon
Copy link
Member

mheon commented Sep 8, 2020

@cevich Poke - anything going on here?

@cevich
Copy link
Member Author

cevich commented Sep 8, 2020

Not a single thing, safe to close.

@cevich cevich closed this as completed Sep 8, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
do-not-close kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants