-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add WordPress & WordPressProcessors & ImageEditor tests to Buildkite #14918
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -26,3 +26,18 @@ steps: | |||
| command: | | ||||
| cp gradle.properties-example gradle.properties | ||||
| ./gradlew lintWordpressVanillaRelease | ||||
| - label: "Test WordPress" | ||||
| <<: *docker-container | ||||
| command: | | ||||
| cp gradle.properties-example gradle.properties | ||||
| ./gradlew testWordpressVanillaRelease | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The call on WordPress-Android/.circleci/config.yml Line 58 in a863317
Why did you decide to drop the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. re: re:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to a quick git pickaxe, this
Maybe they can provide more context as to why this was added at that time? #11833 seems to provide a lot of context about this too, which makes me tend to agree that this was something that might have been needed in the past as a workaround but can now safely be removed.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the extra context @AliSoftware @oguzkocer 🙌
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
👋 friends, Olivier already shared the commits/PRs that are relevant and tried to capture the context there but, let me know if there's a specific question or unclear thing at this stage. |
||||
| - label: "Test WordPressProcessors" | ||||
| <<: *docker-container | ||||
| command: | | ||||
| cp gradle.properties-example gradle.properties | ||||
| ./gradlew :libs:WordPressProcessors:test | ||||
| - label: "Test ImageEditor" | ||||
| <<: *docker-container | ||||
| command: | | ||||
| cp gradle.properties-example gradle.properties | ||||
| ./gradlew :libs:image-editor:ImageEditor:test | ||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason we repeat this
cpcommand on every step is because they all run in parallel and in a dedicated container and there's no explicit checkout because Buildkite does it automatically.I haven't reviewed many Buildkite PRs so far and it's been a while since I worked with it. Can you confirm that my understanding is correct, please? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, checkout is handled by Buildkite and every job currently runs in parallel, meaning separate VMs and Docker containers, so they all need to copy gradle properties. I will propose dropping gradle.properties completely in an internal RFC soon, so hopefully we'll get rid of these steps.
This is the second Buildkite PR, so you haven't missed much :)