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 WordPress & WordPressProcessors & ImageEditor tests to Buildkite #14918

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

oguzkocer
Copy link
Contributor

Here is the CircleCI counterpart which will be removed once this PR is merged.

Regression Notes

  1. Potential unintended areas of impact
    N/A

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    N/A

  3. What automated tests I added (or what prevented me from doing so)
    N/A

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@oguzkocer oguzkocer enabled auto-merge June 24, 2021 05:22
@peril-wordpress-mobile
Copy link

You can test the changes on this Pull Request by downloading the APK here.

Copy link
Contributor

@mokagio mokagio left a comment

Choose a reason for hiding this comment

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

All green in CI 👍 :shipit:

Comment on lines +29 to +32
- label: "Test WordPress"
<<: *docker-container
command: |
cp gradle.properties-example gradle.properties
Copy link
Contributor

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 cp command 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? 😄

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, 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.

I haven't reviewed many Buildkite PRs so far and it's been a while since I worked with it.

This is the second Buildkite PR, so you haven't missed much :)

<<: *docker-container
command: |
cp gradle.properties-example gradle.properties
./gradlew testWordpressVanillaRelease
Copy link
Contributor

Choose a reason for hiding this comment

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

The call on develop is different

command: ./gradlew testWordpressVanillaRelease --stacktrace --no-daemon

Why did you decide to drop the --stacktrace flag in all the steps and the --no-daemon here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

re: --stacktrace; I find stacktrace to be useful in very rare cases and it just adds noise otherwise. I am willing to bet that is the case for most people and would prefer to add it if it was requested/necessary.

re: --no-daemon; Gradle officially recommends all builds to use the daemon, and that includes CI. I am guessing this flag was passed to address an issue in the past, or it used to be recommended not to use the daemon in CI so maybe that advice was being followed, either way I don't think it's correct to use it right now. If daemon is failing, it's more likely that there is a problem on our end that should be fixed, but thankfully that's not the case right now.

Copy link
Contributor

@AliSoftware AliSoftware Jun 24, 2021

Choose a reason for hiding this comment

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

According to a quick git pickaxe, this --no-daemon was:

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the extra context @AliSoftware @oguzkocer 🙌

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe they can provide more context as to why this was added at that time?

👋 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.

@oguzkocer oguzkocer merged commit 3873493 into develop Jun 24, 2021
@oguzkocer oguzkocer deleted the buildkite/test-task branch June 24, 2021 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants