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

Speedup static build by utilizing CI cache on /nix folder #7076

Merged

Conversation

@rhatdan
Copy link
Member

rhatdan commented Jul 26, 2020

LGTM
@saschagrunert PTAL

@hswong3i
Copy link
Collaborator Author

@rhafer @saschagrunert I am checking why the reuse of cache result as "Cache miss", but reupload of cache result as "Already uploaded", see cirruslabs/cirrus-ci-docs#681

@hswong3i hswong3i force-pushed the master-linux-amd64 branch from 76eefdd to 3a00f56 Compare July 27, 2020 04:59
@saschagrunert
Copy link
Member

@rhafer @saschagrunert I am checking why the reuse of cache result as "Cache miss", but reupload of cache result as "Already uploaded", see cirruslabs/cirrus-ci-docs#681

Hm yeah it seems not working at all 🤔

@hswong3i hswong3i force-pushed the master-linux-amd64 branch 6 times, most recently from 48253fa to 7ddd608 Compare July 30, 2020 00:06
@hswong3i
Copy link
Collaborator Author

@rhatdan @saschagrunert as cirruslabs/cirrus-ci-docs#681 get fixed now static binary build phase reduce from ~40mins to ~4mins (https://cirrus-ci.com/task/5522320095707136), by caching and reuse previous dependency build result ;-)

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

LGTM

bors bot added a commit to containers/buildah that referenced this pull request Jul 30, 2020
2428: Build static binary with `buildGoModule` r=rhatdan a=hswong3i

<!--
Thanks for sending a pull request!

Please make sure you've read and understood our contributing guidelines
(https://github.com/containers/buildah/blob/master/CONTRIBUTING.md) as well as ensuring
that all your commits are signed with `git commit -s`.
-->

#### What type of PR is this?

<!--
Please label this pull request according to what type of issue you are
addressing, especially if this is a release targeted pull request.

Uncomment only one `/kind <>` line, hit enter to put that in a new line, and
remove leading whitespace from that line:
-->

> /kind cleanup

#### What this PR does / why we need it:

[nix] Build Static Binary with `buildGoModule`

Switch from nix `channel:nixpkgs-unstable` to `channel:nixos-20.03` for better stability.

Also see:
- containers/crun#428
- containers/conmon#189
- containers/skopeo#973
- #2428
- containers/podman#7076
- cri-o/cri-o#4012

#### How to verify it

#### Which issue(s) this PR fixes:

<!--
Automatically closes linked issue when PR is merged.
Uncomment the following comment block and include the issue
number or None on one line.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`, or `None`.
-->

<!--
Fixes #
or
None
-->

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

<!--
If no, just write `None` in the release-note block below. If yes, a release note
is required: Enter your extended release note in the block below. If the PR
requires additional action from users switching to the new release, include the
string "action required".

For more information on release notes please follow the kubernetes model:
https://git.k8s.io/community/contributors/guide/release-notes.md
-->

```release-note
Build static binary with `buildGoModule`
```



Co-authored-by: Wong Hoi Sing Edison <[email protected]>
bors bot added a commit to containers/buildah that referenced this pull request Jul 30, 2020
2428: Build static binary with `buildGoModule` r=rhatdan a=hswong3i

<!--
Thanks for sending a pull request!

Please make sure you've read and understood our contributing guidelines
(https://github.com/containers/buildah/blob/master/CONTRIBUTING.md) as well as ensuring
that all your commits are signed with `git commit -s`.
-->

#### What type of PR is this?

<!--
Please label this pull request according to what type of issue you are
addressing, especially if this is a release targeted pull request.

Uncomment only one `/kind <>` line, hit enter to put that in a new line, and
remove leading whitespace from that line:
-->

> /kind cleanup

#### What this PR does / why we need it:

[nix] Build Static Binary with `buildGoModule`

Switch from nix `channel:nixpkgs-unstable` to `channel:nixos-20.03` for better stability.

Also see:
- containers/crun#428
- containers/conmon#189
- containers/skopeo#973
- #2428
- containers/podman#7076
- cri-o/cri-o#4012

#### How to verify it

#### Which issue(s) this PR fixes:

<!--
Automatically closes linked issue when PR is merged.
Uncomment the following comment block and include the issue
number or None on one line.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`, or `None`.
-->

<!--
Fixes #
or
None
-->

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

<!--
If no, just write `None` in the release-note block below. If yes, a release note
is required: Enter your extended release note in the block below. If the PR
requires additional action from users switching to the new release, include the
string "action required".

For more information on release notes please follow the kubernetes model:
https://git.k8s.io/community/contributors/guide/release-notes.md
-->

```release-note
Build static binary with `buildGoModule`
```



Co-authored-by: Wong Hoi Sing Edison <[email protected]>
@hswong3i hswong3i force-pushed the master-linux-amd64 branch from 7ddd608 to ada0605 Compare August 1, 2020 13:02
@hswong3i hswong3i force-pushed the master-linux-amd64 branch from ada0605 to daaccf8 Compare August 3, 2020 03:52
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 3, 2020
@mheon
Copy link
Member

mheon commented Aug 3, 2020

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hswong3i, mheon, saschagrunert

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2020
@openshift-merge-robot openshift-merge-robot merged commit 52580b9 into containers:master Aug 3, 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 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants