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

Clone SOURCES repos outside container #835

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

TimoWilken
Copy link
Contributor

This lets us always use speed-up options like --filter, even when we're building inside a container.

We can also easily start using sapling for this in future by implementing the new SCM methods.

This also helps with some annoying authentication-related issues, if running inside --docker, such as in CI.

Fixes https://its.cern.ch/jira/browse/O2-2439.

When this is merged, we can also get rid of the GIT_* environment variables used in CI, and stop installing an especially-new Git version in our containers (since that was needed to understand the GIT_* variables).

This PR is based on #834; once that is merged, I can rebase to get rid of the common commits.

@TimoWilken TimoWilken requested a review from ktf March 5, 2024 16:46
@TimoWilken TimoWilken force-pushed the git-checkout-outside-container branch 4 times, most recently from 5a110f9 to c726642 Compare March 6, 2024 14:42
@TimoWilken
Copy link
Contributor Author

Rebased on #834. Only the last two commits are actually new!

TimoWilken added a commit to TimoWilken/ali-bot that referenced this pull request Mar 6, 2024
With alisw/alibuild#835, all git repos are created
outside the aliBuild container, so we don't need to pass credentials inside
anymore.
TimoWilken added a commit to TimoWilken/docks that referenced this pull request Mar 6, 2024
This was originally needed because the default git did not support the `GIT_*`
environment variables used by the CI.

With alisw/alibuild#835 and
alisw/ali-bot#1298, this is not needed anymore, so we
can stop installing the extra copy of Git.
This lets us always use speed-up options like --filter, even when we're
building inside a container.

We can also easily start using sapling for this in future by implementing the
new SCM methods.

This also helps with some annoying authentication-related issues, if running
inside --docker, such as in CI.

Fixes <https://its.cern.ch/jira/browse/O2-2439>.

When this is merged, we can also get rid of the `GIT_*` environment variables
used in CI, and stop installing an especially-new Git version in our
containers (since that was needed to understand the `GIT_*` variables).
@TimoWilken TimoWilken force-pushed the git-checkout-outside-container branch from c726642 to f68fcde Compare March 6, 2024 15:25
@TimoWilken
Copy link
Contributor Author

Rebased and all green @ktf!

@ktf ktf merged commit 75a4397 into alisw:master Mar 6, 2024
11 checks passed
@TimoWilken TimoWilken deleted the git-checkout-outside-container branch March 6, 2024 15:32
@ktf
Copy link
Member

ktf commented Mar 6, 2024

As discussed, let's have a prerelease and try it out in one of the non-production CIs.

@TimoWilken
Copy link
Contributor Author

I've released v1.17.0rc1 and set the Ubuntu alidist CI to use it in alisw/ali-bot@56ec67d!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants