Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

gitlab-ci.yml refactoring v1 #7988

Closed
wants to merge 2 commits into from
Closed

gitlab-ci.yml refactoring v1 #7988

wants to merge 2 commits into from

Conversation

General-Beck
Copy link
Contributor

add i386,arm64,armv7 snap packages & snap release
added a protect variable for protected branches and tags
rustfmt&clippy tests (they are necessary to us?)
changes in a caching
retry job for centos #if version `GLIBC_2.18' not found
anchors in gitlab-ci.yml

add i386,arm64,armv7 snap packages & snap release
added a protect variable for protected branches and tags
rustfmt&clippy tests (they are necessary to us?)
changes in a caching
retry job for centos #if version `GLIBC_2.18' not found
anchors in gitlab-ci.yml
@General-Beck General-Beck self-assigned this Feb 23, 2018
@General-Beck General-Beck added A0-pleasereview 🤓 Pull request needs code review. M1-ci 🙉 Continuous integration. B0-patch labels Feb 23, 2018
@@ -1,197 +1,152 @@
stages:
- test
- push-release
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should stay. It notifies upater about new version (not specific build)

.gitlab-ci.yml Outdated
- beta
- gitlab
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a testing branch, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

.gitlab-ci.yml Outdated
.artifacts_rules: &artifacts_rules
artifacts:
when: on_success
expire_in: 1 mos
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually might be better to just keep fixed number of artifacts (i.e. might be good to download old stable binaries even after a month).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have them in S3 and vanity

.gitlab-ci.yml Outdated
script:
- scripts/gitlab-build.sh armv7-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf armhf arm-linux-gnueabihf-gcc arm-linux-gnueabihf-g++ ubuntu
tags:
- rust-arm
artifacts:
paths:
- parity.zip
- artifacts/
expire_in: 1 mos
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, I think would be better to keep fixed number of artifacts instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

set -e # fail on any error
set -u # treat unset variables as error
Copy link
Collaborator

Choose a reason for hiding this comment

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

Imho was pretty useful. Maybe set $protected to some default value in an if statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

temporary solution

Copy link
Contributor

Choose a reason for hiding this comment

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

to what? can you elaborate?

make_archive
push_binaries
echo "__________Use libssl1.1 (>=1.1.0) for Debian builds__________"
build_and_push
Copy link
Collaborator

Choose a reason for hiding this comment

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

This changes the behaviour since we are pushing to auto-updater as well. Right now auto-updater is smart enough to reject such request (if the PLATFORM is set correctly). Although I think it would be good to avoid pushing to auto-updater if we know it's gonna be rejected (i.e. we only care about darwin, linux and windows packages).

push_binaries
updater_push_release
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same, we don't care about centos for auto-updating.

make_snap
;;
i686-unknown-snap-gnu)
set_env
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do we need set_env here but not for other snaps? Do we actually care about that at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this case it is necessary

Copy link
Contributor

Choose a reason for hiding this comment

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

why? can you elaborate?

@@ -44,4 +44,12 @@ case $TEST_SWITCH in
test-coverage)
coverage_test
;;
rustfmt)
cargo install rustfmt-nightly
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't really have a good config for rustfmt yet, don't think it's needed.

;;
clippy)
cargo install clippy
cargo clippy -- -D warnings
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here, right now it will fail with millions of errors, since we don't use it. I think it would be better to first fix the codebase and then introduce this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is necessary to add in TODO

@General-Beck General-Beck changed the title gitlab-ci.yml refactoring gitlab-ci.yml refactoring v1 Feb 23, 2018
@5chdn 5chdn modified the milestones: 1.10, 1.11, 1.12 Feb 23, 2018
@kirushik kirushik mentioned this pull request Mar 1, 2018
@5chdn 5chdn added the P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible. label Mar 1, 2018
* Regular names of tasks; better includes

* Split gitlab test scripts into separate files

* [WIP] Reuse artifacts for docker builds

* Refactored snapcraft building significantely

* [WIP] Separate build scripts

* Regularize architectures

* Builds on Windows
@debris
Copy link
Collaborator

debris commented Mar 19, 2018

@General-Beck please address unanswered questions

@General-Beck
Copy link
Contributor Author

@debris all work now here. It is a lot of changes, but I will finish soon. https://gitlab.parity.io/parity/parity/tree/gitlab

@5chdn 5chdn added A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. and removed A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. labels Apr 9, 2018
@debris
Copy link
Collaborator

debris commented Apr 9, 2018

please reopen when it's updated

@debris debris closed this Apr 9, 2018
@General-Beck General-Beck deleted the gitlab-master branch June 2, 2018 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. M1-ci 🙉 Continuous integration. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants