-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[server] Do not use branch names for additionalRepositories #13529
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
[server] Do not use branch names for additionalRepositories
started the job as gitpod-build-aledbf-addi.1 because the annotations in the pull request description changed |
Add integration tests for additionalRepositories
/werft run with-integration-tests=workspace 👍 started the job as gitpod-build-aledbf-addi.3 |
It used to be optional, i.e. if the branch exist use it if not use tge default branch. Did anything change in content init wrt? |
Yes, we check the branch name now to avoid issues with non-existing ones. This change was introduced here #11854 |
Oh, it was intentionally logged as debug and not returning an error. Was there a user-facing problem with this, can't tell from #11854 what the actual issue was? |
This was triggered in prebuilds. Please check Jenting comments |
@aledbf looks like the tests failed, but could just be a timeout or flakey test:
Does the test work when you run it by itself? |
I cannot find a reference for that logic. |
@aledbf from https://www.gitpod.io/docs/configure/workspaces/multi-repo#cloning-additional-repositories
This is failing right now for our team as well. Case 1 Case 2
Case 3 |
/hold |
Should also fix #13512 - the actual issue is it needs to work as described in the documentation which is correct for most (all?) use cases. If the additional repos have the same branch, use it. If the additional repos don't have the same branch as the main: use their default. For each separate additional repo. |
Description
When we open a workspace from a branch and the repository contains a .gitpod.yml file with
additionalRepositories
, we should not assume the branch exists in those repositories. Also, when we specify a branch in one of theadditionalRepositories
, we should be able to use that branch.Related Issue(s)
Fixes #13527
How to test
Release Notes
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide