-
Notifications
You must be signed in to change notification settings - Fork 777
Fix git-env version for PRs #4641
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
Conversation
1028 tests run: 976 passed, 0 failed, 52 skipped (full report)The comment gets automatically updated with the latest test results
c1f06c2 at 2023-07-10T15:57:53.118Z :recycle: |
Logs in the test report have
7b39653c4ad27b8b705e8bc0369dee8bdb8001ec is the phantom merge? |
While building Neon, getting sha from git itself takes precedence over |
True, but that would give us a chance of merge skew. Hmm... I think we could just let the PR branches commit info be the phantom commits; at least that would be always real and not fake. Allure reports will have a path designating the PR so I didn't really see clearly yesterday what would be the benefit. I don't really understand the docker changes either, do we really need them? As long as deployed versions (and docker versions pushed to hub) have proper git commits it is very much a good situation. |
Do you mean some cases when we don't set it (forget to set it)?
The original problem described in #3619 doesn't exist anymore because we build and deploy staging and prod from branches only. |
We had a call, discussed if this phantom merge is really needed. I want to keep the phantom merge commit, because I think it will give some protection against merge skew, assuming our engineers are not trying to game the system by merging very old unconflicting but successful in the past PRs. However I agree it's helpful to have the real commits in logs, because logs could be looked at much later. We landed on "win-win" solution where we'll use
|
Drafting while test failures, and I reverted one too many commit. |
8fea5ad
to
6b4a11f
Compare
Okay, latest logs have:
Initially copied some previous run via flaky tests, commit d1738d0896b1a138a1fe0da6a7a04a2eb1626ae1 is as expected but now delivered via GIT_VERSION env var. Noted that compute_ctl does not have this kind of logging, no version at all. I think it should be added. Well, it has some build_tag, unsure what that is, leaving this from this PR. |
After latest:
Which is 4dc3643eeeff493ab978604c43367e5343154907 as in the last pushed commit. Great. |
use git_version! only for local development.
c7ef2d3
to
e98c0bd
Compare
Removed the automatically added reviewes because I worked away from all those changes. |
Co-authored-by: Alexander Bayandin <[email protected]>
release builds complete faster than debug builds.
Fixes #3619
Problem
github.sha
for PRs it's a commit that doesn't belong to the repo.Here's an example:
Summary of changes
${{ github.event.pull_request.head.sha || github.sha }}
instead of${{ github.sha }}
forGIT_VERSION
in workflowsSo the builds will still happen from this phantom commit, but we will report the PR commit.