Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Use Buildkite for CI #2788

Merged
merged 11 commits into from
Mar 15, 2019
Merged

Use Buildkite for CI #2788

merged 11 commits into from
Mar 15, 2019

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Mar 13, 2019

@turt2live turt2live requested a review from a team March 14, 2019 19:09
@jryans jryans self-requested a review March 15, 2019 10:33
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looking reasonable. Again I have some general questions to get things moving.

Nit: Buildkite seems to spell their name with lowercase "K".

.buildkite/pipeline.yaml Show resolved Hide resolved
.buildkite/pipeline.yaml Outdated Show resolved Hide resolved
# TODO: Remove hacky chmod for BuildKite
- "chmod +x ./scripts/ci/*.sh"
- "chmod +x ./scripts/*"
- "./scripts/ci/install-deps.sh"
Copy link
Collaborator

@jryans jryans Mar 15, 2019

Choose a reason for hiding this comment

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

Still feels wasteful to duplicate so much of the installation... I can't tell from the BK log how long each step takes right now, since the log get truncated...

Speaking of that, the biggest factor in our log length seems to be Webpack's --progress output. Can we change Webpack options used in CI so that the log shows up start to finish in BK?

Copy link
Member Author

Choose a reason for hiding this comment

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

The log gets truncated for the web view only - as mentioned in the error, there's a download button for when your build explodes and you want to see the whole log. Historically, our stuff breaks before it would reach the point of truncation.

@@ -135,9 +135,10 @@ module.exports = function (config) {
],

customLaunchers: {
'ChromeHeadless': {
'VectorChromeHeadless': {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still use the Vector prefix that much, now that it's called Riot? Also, what's the purpose of the custom name here in any case?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm using Vector in the company sense here, not in the product sense. ChromeHeadless is an actual browser version and seems to confuse Buildkite (but not Travis CI for some reason), so I've essentially named it New Vector's ChromeHeadless Browser v10: Spectacular feature release for CI environments without using so many words.

@turt2live turt2live changed the title Use BuildKite for CI Use Buildkite for CI Mar 15, 2019
@turt2live turt2live requested a review from jryans March 15, 2019 16:46
@@ -7,4 +7,3 @@
set -ev

scripts/ci/build.sh
CHROME_BIN='/usr/bin/google-chrome-stable' yarn test
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wait, I think you only wanted to delete the CHROME_BIN env var here... 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

naaaaaaaaaahhhhhh....

(oops)

clone $TRAVIS_BRANCH
clone $BUILDKITE_BRANCH
# Try the PR author's branch in case it exists on the deps as well.
clone $BUILDKITE_PULL_REQUEST_BASE_BRANCH
Copy link
Collaborator

@jryans jryans Mar 15, 2019

Choose a reason for hiding this comment

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

Thanks for bringing these back. The clone lines seem correct and are in the correct order, but the comments are mismatched ($BUILDKITE_BRANCH is the PR author's branch), so we should swap the comments. I believe Riot Web's fetch-develop.deps.sh has the right ordering for both code and comments.

@turt2live turt2live requested a review from jryans March 15, 2019 17:21
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Great, this looks good to me! 😁 Thanks again for working on this!

@turt2live turt2live merged commit cd48ba6 into develop Mar 15, 2019
@turt2live turt2live deleted the travis/buildkite branch March 15, 2019 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants