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

Desktop: Add test target to CircleCI config #13325

Conversation

spen
Copy link
Contributor

@spen spen commented Apr 23, 2017

As part of the wp-desktop > Calypso ( #12430 ) I'm looking to fold wp-desktops CircleCI configuration in to that of Calypso.
I'm quite new to CircleCI, particularly with configuration so this might not be the best approach - I'll be interested to hear if this approach is on the right track 😃

One problem with going full 8 is that the desktop app shares our container set

In PR #3793 there's mention of an issue with wp-desktop builds preventing us from using all 8 containers. I'm not sure how relevant this information is now as this PR is over a year old but this could hopefully be another small win resulting from the merge 🎉

For now, I'm opening this PR to see how CircleCI builds run with the new config so I've add a WIP label.

@spen spen added Build [Feature] WordPress Desktop App Features and improvements related to the WordPress Desktop App. [Status] In Progress labels Apr 23, 2017
@matticbot matticbot added OSS Citizen [Size] S Small sized issue labels Apr 23, 2017
@spen spen force-pushed the try/merge-wp-desktop-project--circle-ci branch from 2d66fab to 937ae21 Compare April 23, 2017 00:19
@spen spen force-pushed the try/merge-wp-desktop-project--circle-ci branch 3 times, most recently from 62ece26 to 7da57ac Compare April 24, 2017 09:05
@spen spen force-pushed the try/merge-wp-desktop-project--circle-ci branch from 7da57ac to 33dd9e0 Compare April 24, 2017 09:31
desktop/Makefile Outdated
@@ -158,13 +158,11 @@ node_modules/%:
node_modules: package.json
@$(NPM) prune
@$(NPM) install
@touch node_modules
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'm not so sure that this is the right solution - it avoids an error in the CircleCI build which I believe stems from an issue with node-touch. My worry here is that there is good reason for touching node_modules at the end of these make targets. @johngodley, it looks like these were added in the initial commit - are they safe to remove like this?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry I can't remember what the reason is. If it seems to work and nothing else has a problem then removing it is probably ok, and it's easy to add back if something does happen.

circle.yml Outdated
@@ -25,7 +25,7 @@ test:
- server/**/*.jsx
- MOCHA_FILE=./test-results-client.xml npm run test-client -- -R mocha-junit-reporter -t $CIRCLE_NODE_TOTAL -i $CIRCLE_NODE_INDEX:
parallel: true
- MOCHA_FILE=./test-results-client.xml npm run test-desktop -- -R mocha-junit-reporter -t $CIRCLE_NODE_TOTAL -i $CIRCLE_NODE_INDEX:
- npm run test-desktop:
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 removed the extra arguments but this could be a problem - will we miss some reports by not including them?

Copy link
Member

@gziolo gziolo May 2, 2017

Choose a reason for hiding this comment

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

It takes almost 9 minutes to finish desktop test:

screen shot 2017-05-02 at 14 52 04

It is also executed on all 4 containers with the same tests, because parallel flag is enabled. More info about parallel can be found here: https://circleci.com/docs/1.0/parallel-manual-setup/.

@spen spen added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Apr 28, 2017
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

It takes almost 9 minutes to finish desktop test:

screen shot 2017-05-02 at 14 52 04

It is also executed on all 4 containers with the same tests, because parallel flag is enabled. More info about parallel can be found here: https://circleci.com/docs/1.0/parallel-manual-setup/.

I don't think it is a good idea to increase build time by 9 minutes just to run one test. We should rather make sure that this check is part of desktop app deploy process.

@matticbot
Copy link
Contributor

@spen This PR needs a rebase

@spen spen force-pushed the try/merge-wp-desktop-project branch from 2b5586d to 248c843 Compare May 3, 2017 07:51
@alisterscott
Copy link
Contributor

Closing as this PR is stale - please reopen if necessary

@alisterscott alisterscott deleted the try/merge-wp-desktop-project--circle-ci branch October 24, 2017 05:06
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build [Feature] WordPress Desktop App Features and improvements related to the WordPress Desktop App. OSS Citizen [Size] S Small sized issue [Status] Needs Rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants