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

Add rudimentary .taskcluster.yml #17580

Merged
merged 1 commit into from Dec 14, 2017
Merged

Add rudimentary .taskcluster.yml #17580

merged 1 commit into from Dec 14, 2017

Conversation

@edunham
Copy link
Contributor

edunham commented Jun 30, 2017

Template mostly from https://tools.taskcluster.net/quickstart/. Steps from the
linux-dev builder in etc/ci/buildbot_steps.yml, but with the real parts
commented out for speed during the testing process.

r? @aneeshusa

I got the first-draft image built and pushed to docker hub at https://hub.docker.com/r/servobrowser/servo-linux-dev which is what this is set to pull from.

cc @gregarndt @imbstack


This change is Reviewable

@edunham edunham force-pushed the edunham:taskcluster branch from 5f1830c to fb9f2ac Jun 30, 2017
Copy link
Member

aneeshusa left a comment

A few style nits; please also fix the test-tidy issues, and make taskcluster-test.sh executable so it can be executed directly.

@@ -0,0 +1,15 @@
#! /bin/bash

./mach clean-nightlies --keep 3 --force

This comment has been minimized.

@aneeshusa

aneeshusa Jun 30, 2017

Member

I don't think we need this on TC (since the caching is different there).

events: []
payload:
maxRunTime: 3600
image: servobrowser/servo-linux-dev

This comment has been minimized.

@aneeshusa

aneeshusa Jun 30, 2017

Member

Can this be pinned to a specific image digest?

This comment has been minimized.

@edunham

edunham Jul 6, 2017

Author Contributor

I'd prefer to not pin this quite yet, as we may need to iterate on the image due to TaskCluster failures and using the latest will save us a lot of spurious commits to the Servo repo. However, we should pin it before we consider gating on TaskCluster results.

This comment has been minimized.

@gregarndt

gregarndt Jul 7, 2017

So one of the cool things here is if you're trying to get the task just right and iterating on the image and task definition, you could do so using the task creator on our tools site. we can give you permissions to create tasks for the worker type that can be used for servo and you can just iterate there rather than having to edit things in this repo.

- >-
git clone {{event.head.repo.url}} servo && cd servo && git config
advice.detachedHead false && git checkout {{event.head.sha}} &&
etc/ci/taskcluster-test.sh

This comment has been minimized.

@aneeshusa

aneeshusa Jun 30, 2017

Member

Would be nice if each command was on a separate line, or at the least no command was split across multiple lines.

etc/ci/taskcluster-test.sh
metadata:
name: linux-tests
description: run linux tests similarly to BuildBot

This comment has been minimized.

@aneeshusa

aneeshusa Jun 30, 2017

Member

nit: capitalize, IMO no need to reference BuildBot, maybe mention linux-dev?

@@ -0,0 +1,15 @@
#! /bin/bash

This comment has been minimized.

@aneeshusa

aneeshusa Jun 30, 2017

Member

I'm not sure if taskcluster already does folding or something like Travis, but it would be nice to add set -x or something so that it's easier to figure out which step fails in the case of an error.

@edunham
Copy link
Contributor Author

edunham commented Jul 6, 2017

Thanks! Those are now fixed.

@aneeshusa
Copy link
Member

aneeshusa commented Jul 6, 2017

LGTM, although I still think it might be helpful to add set -x for debugging; we can always add it later if necessary. r=me with or without that.

Once this is merged, will TC automatically start running builds?

@aneeshusa
Copy link
Member

aneeshusa commented Jul 7, 2017

Oh, also don't forget to make the etc/ci/taskcluster-test.sh script executable.

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

The latest upstream changes (presumably #17822) made this pull request unmergeable. Please resolve the merge conflicts.

@gregarndt
Copy link

gregarndt commented Aug 17, 2017

Just checking in, how's this going? anything we can help out with?

@edunham
Copy link
Contributor Author

edunham commented Dec 13, 2017

@bors-servo r=aneeshusa

@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2017

📌 Commit d15607f has been approved by aneeshusa

@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2017

Testing commit d15607f with merge 4f1f4fd...

bors-servo added a commit that referenced this pull request Dec 13, 2017
Add rudimentary .taskcluster.yml

Template mostly from https://tools.taskcluster.net/quickstart/. Steps from the
linux-dev builder in etc/ci/buildbot_steps.yml, but with the real parts
commented out for speed during the testing process.

r? @aneeshusa

I got the first-draft image built and pushed to docker hub at https://hub.docker.com/r/servobrowser/servo-linux-dev which is what this is set to pull from.

cc @gregarndt @imbstack

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17580)
<!-- Reviewable:end -->
@edunham edunham dismissed aneeshusa’s stale review Dec 13, 2017

Discussed in person & fixed

@bors-servo
Copy link
Contributor

bors-servo commented Dec 13, 2017

💔 Test failed - linux-dev

@aneeshusa
Copy link
Member

aneeshusa commented Dec 14, 2017

Our shell script linter is not so smart and requires the set -o {errexit,nounset,pipefail} as the first non-empty/comment lines in scripts. Since we'll be able to debug TC tasks using the TC web console, let's take out the set -x in the .taskcluster.yml for now.

Also, please squash these commits into one so we have good commit messages/history.

Template mostly from https://tools.taskcluster.net/quickstart/. Steps from the
linux-dev builder in etc/ci/buildbot_steps.yml are in taskcluster-test.sh.
@edunham
Copy link
Contributor Author

edunham commented Dec 14, 2017

Moved & squashed up. r? @aneeshusa

@aneeshusa
Copy link
Member

aneeshusa commented Dec 14, 2017

Thanks for finishing this up! @bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Dec 14, 2017

📌 Commit 5ccca8c has been approved by aneeshusa

@bors-servo
Copy link
Contributor

bors-servo commented Dec 14, 2017

Testing commit 5ccca8c with merge 7897bd1...

bors-servo added a commit that referenced this pull request Dec 14, 2017
Add rudimentary .taskcluster.yml

Template mostly from https://tools.taskcluster.net/quickstart/. Steps from the
linux-dev builder in etc/ci/buildbot_steps.yml, but with the real parts
commented out for speed during the testing process.

r? @aneeshusa

I got the first-draft image built and pushed to docker hub at https://hub.docker.com/r/servobrowser/servo-linux-dev which is what this is set to pull from.

cc @gregarndt @imbstack

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17580)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 14, 2017

@bors-servo bors-servo merged commit 5ccca8c into servo:master Dec 14, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.