-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Desktop: Add test target to CircleCI config #13325
Conversation
The HAPPYCHAT_RECEIVE_MESSAGE event needed to filter out the meta.forOperator messages so they don't show to user
2d66fab
to
937ae21
Compare
62ece26
to
7da57ac
Compare
7da57ac
to
33dd9e0
Compare
desktop/Makefile
Outdated
@@ -158,13 +158,11 @@ node_modules/%: | |||
node_modules: package.json | |||
@$(NPM) prune | |||
@$(NPM) install | |||
@touch node_modules |
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.
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 touch
ing 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?
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.
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: |
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.
I removed the extra arguments but this could be a problem - will we miss some reports by not including them?
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.
It takes almost 9 minutes to finish desktop test:
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/.
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.
It takes almost 9 minutes to finish desktop test:
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.
a38ca9a
to
2b5586d
Compare
@spen This PR needs a rebase |
2b5586d
to
248c843
Compare
Closing as this PR is stale - please reopen if necessary |
As part of the
wp-desktop
> Calypso ( #12430 ) I'm looking to foldwp-desktop
s 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 😃
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.