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

support ci on forks #14596

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

dkijania
Copy link
Member

Currently our CI build system is not prepared to handle change from fork repo to mina. There are various problems like:

many jobs checkout origin branches as reference to some comparison and they will checkout branch from fork repo rather than mina (for example merges cleanly)
we should not allow to publish dockers to docker hub from forked repositories
we need to tag dockers properly not to override main repo based dockers

This PR addresses above problems. It adds yet another remote (mina) which always point to mina protocol repository. If CI is run against forked repository it uses branches from mina remote for comparison instead of origin which point to forked repositories. It also changes behavior when running export env variables script. It does not allow to publish dockers and debian packages stable channels or to dockerhub.

Closes #14575

@dkijania dkijania self-assigned this Nov 21, 2023
@dkijania dkijania marked this pull request as ready for review November 22, 2023 08:10
@dkijania dkijania requested review from a team as code owners November 22, 2023 08:10
@@ -28,6 +28,7 @@ let jobs : List JobSpec.Type =
let prefixCommands = [
Cmd.run "git config --global http.sslCAInfo /etc/ssl/certs/ca-bundle.crt", -- Tell git where to find certs for https connections
Cmd.run "git fetch origin", -- Freshen the cache
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this fetch be unnecessary when executing pipelines for a fork? If not required I would add a condition here. It would save us the burden to download the ~450MB repo.

@dkijania dkijania merged commit e44ddfe into MinaProtocol:rampup Nov 22, 2023
2 checks passed
@mrmr1993
Copy link
Member

mrmr1993 commented Jan 2, 2024

!ci-build-me

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

3 participants