-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[content-service] Remove git no-single-branch flag #13053
Conversation
started the job as gitpod-build-aledbf-git-nsb.0 because the annotations in the pull request description changed |
ebd17b7
to
d2ba552
Compare
If it's not the default branch, manually trigger prebuild failed.
|
dd21a39
to
1cdd874
Compare
/werft run 👍 started the job as gitpod-build-aledbf-git-nsb.5 |
0ea6af4
to
a8ebb28
Compare
@jenting please check again |
/hold |
started the job as gitpod-build-aledbf-git-nsb.12 because the annotations in the pull request description changed |
started the job as gitpod-build-aledbf-git-nsb.13 because the annotations in the pull request description changed |
started the job as gitpod-build-aledbf-git-nsb.14 because the annotations in the pull request description changed |
FYI, for integration tests to run, you may need to rebase with main. I am guessing you need c524a00 The error is:
|
a8ebb28
to
3671d94
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work like a charm
started the job as gitpod-build-aledbf-git-nsb.16 because the annotations in the pull request description changed |
@@ -186,7 +194,7 @@ func (ws *GitInitializer) realizeCloneTarget(ctx context.Context) (err error) { | |||
} | |||
|
|||
// checkout specific commit | |||
if err := ws.Git(ctx, "checkout", ws.CloneTarget); err != nil { | |||
if err := ws.Git(ctx, "switch", "-C", ws.CloneTarget); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @aledbf 👋 ,
question (non-blocking): how come some case statements ☝️ are logging errors and others do not? I ask because I'm not sure why there is variance.
It seems like we may want to log the errors in each case (especially because we're changing from checkout
to switch
), but I could also be being naive. I haven't opened this to see if the calling function logs the related error.
I changed the description for this PR, so that we just run workspace tests, being run in: https://werft.gitpod-dev.com/job/gitpod-build-aledbf-git-nsb.16 @utam0k are the |
also once all conversations are resolved, feel free to remove the hold. (not removing it myself as it will auto merge) |
@utam0k can you help analyze this failure? It failed with this message, but I'm not sure where to look (expand does not have more info):
|
@kylos101 Sure. |
I think this PR brought the broken integration tests.
The test to launch gitpod from the git tag pointed to HEAD until now. This seems to have changed and now points to a hash value.
I honestly don't think this change will cause any problems for users, so I think we should just fix the test. However, you should write to Changelog. gitpod/test/tests/workspace/contexts_test.go Lines 51 to 54 in f61eacf
|
TIPS: Please search |
done |
Hmm, I am seeing a different test failures, but, am skeptical it is related to this PR. @jenting are you aware of the below test being flakey?
|
Ya, I am working on fixing this flaky test in this PR #13170 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised, I tested prebuilds by making a team, project, and pushing commits, rather than use #prebuild
, which is going away in the not too distant future.
/unhold 🚂 choo, choo! |
started the job as gitpod-build-aledbf-git-nsb.18 because the annotations in the pull request description changed |
started the job as gitpod-build-aledbf-git-nsb.19 because the annotations in the pull request description changed |
Description
The flag
--no-single-branch
was introduced in #6464 in an attempt to use--filter=blob:none
(which didn't make it). By checking all the existing branches, even if we use--depth=1
xref: #12682
How to test
Release Notes
Werft options:
Valid options are
all
,workspace
,webapp
,ide
/hold