Skip to content

Bug 1707928: hack/build-go.sh: use just git hashes for building#728

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
runcom:build-hash
May 9, 2019
Merged

Bug 1707928: hack/build-go.sh: use just git hashes for building#728
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
runcom:build-hash

Conversation

@runcom
Copy link
Copy Markdown
Member

@runcom runcom commented May 9, 2019

- What I did

Do not rely on tags (as they may contain timestamps which can cause us to drift)

- How to verify it

- Description for the changelog

@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 9, 2019
Copy link
Copy Markdown

@squat squat 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 May 9, 2019
Comment thread hack/build-go.sh Outdated
@runcom
Copy link
Copy Markdown
Member Author

runcom commented May 9, 2019

/retest

@runcom
Copy link
Copy Markdown
Member Author

runcom commented May 9, 2019

damn this is failing cause we want a valid semver version

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 9, 2019
@runcom
Copy link
Copy Markdown
Member Author

runcom commented May 9, 2019

alright, changed to just have a new field in the version pkg that points to the git hash and use that whenever we need to compare MCC versions. @cgwalters ptal

@cgwalters
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 9, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, runcom, squat

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

The pull request process is described here

Details 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

@runcom
Copy link
Copy Markdown
Member Author

runcom commented May 9, 2019

gosh, this is going through another round of testing cause #701 has been merged meanwhile

@openshift-merge-robot openshift-merge-robot merged commit 47c4afc into openshift:master May 9, 2019
@runcom runcom deleted the build-hash branch May 9, 2019 19:21
@runcom
Copy link
Copy Markdown
Member Author

runcom commented May 9, 2019

annotations: {
machineconfiguration.openshift.io/generated-by-controller-version: "087bb5c36cdba30edeb2f52c69f9b2a953b800bf"
},

That's what we get now, and we easily point to a given MCO git commit when asked.

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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants