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

migrate to ci 2.0 #4939

Merged
merged 8 commits into from
Aug 17, 2017
Merged

migrate to ci 2.0 #4939

merged 8 commits into from
Aug 17, 2017

Conversation

mollymerp
Copy link
Contributor

close #4905

there are a couple failing render tests but the diff is very small (looks like tile boundary is 1 px off), so I may increase the allowable diff for those tests unless someone else has another idea.

I also still need to test the deploy script with a test tag

cc @jfirebaugh @kkaefer

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

@mollymerp mollymerp force-pushed the circle2 branch 6 times, most recently from 2d4da4d to 8dd7b25 Compare July 5, 2017 21:54
@mollymerp
Copy link
Contributor Author

Looks like the build is down to about 8 minutes for v2 from 11-12 minutes in v1

Copy link
Contributor

@jfirebaugh jfirebaugh left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for working on this.

jobs:
build:
docker:
- image: mbgl/ci:r4-linux-clang-3.9
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this image have awscli pre-installed? We should use one that does, so we can remove that from dependencies.sh.

- run:
name: install dependencies
command: |
bash ./.circleci/dependencies.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move the yarn install part of this to its own run step, to measure the time independently.

name: deploy if tagged
when: on_success
command: |
if [[ $CIRCLE_TAG =~ v[0-9]+\.[0-9]+\.[0-9]+(\-dev)? ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like something is off about this conditional; https://circleci.com/gh/mapbox/mapbox-gl-js/8468 ran deploy.sh but it wasn't a tagged build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was a tagged build unless I'm missing something 🤔 I made (and subsequently deleted) a v0.0.0-dev tag to test out the conditional.

screen shot 2017-07-06 at 8 55 14 am

Copy link
Contributor

Choose a reason for hiding this comment

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

Oooh, ok, good idea!

@mollymerp mollymerp force-pushed the circle2 branch 2 times, most recently from 6912d12 to 75f5ce4 Compare July 6, 2017 23:18
@mollymerp
Copy link
Contributor Author

Switched to a gl-js specific image – PR here mapbox/mbgl-ci-images#8

@mollymerp
Copy link
Contributor Author

blerg I do not know why this test is failing – its passing when I run the render tests inside the docker image locally 💭

@mollymerp mollymerp force-pushed the circle2 branch 7 times, most recently from b582932 to 35cc3f3 Compare July 11, 2017 21:33
@mollymerp mollymerp force-pushed the circle2 branch 10 times, most recently from 5889954 to 07ec287 Compare July 20, 2017 21:06
@mollymerp mollymerp force-pushed the circle2 branch 9 times, most recently from 0440355 to aec582c Compare August 14, 2017 18:11
try running with npm instead of yarn

uncomment nyc

try new circle2 tag support

please run
@mollymerp mollymerp force-pushed the circle2 branch 2 times, most recently from 539b794 to 3a39337 Compare August 14, 2017 19:42
@mollymerp mollymerp force-pushed the circle2 branch 3 times, most recently from 97e98ef to fc2db79 Compare August 15, 2017 01:09
@mollymerp
Copy link
Contributor Author

😂 moving to workflows with the newly added 2.0 tag filter support fixed the failing test 🤷‍♀️ and increasing our resource_class to 6GB ram got the builds to pass without failing out. I'm not sure why we need to up the RAM because I got the build to run locally on a 4GB RAM container just fine.

@mollymerp
Copy link
Contributor Author

I ran a test build tagged as v0.0.2-dev here and the regular non-tagged build here

@mollymerp
Copy link
Contributor Author

we'll have to un-require the old ci/circleci build in the settings in order to merge this.

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.

Switch to Circle CI 2.0
3 participants