-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Migrate CI to GitHub Actions #429
Conversation
d6f6bd4
to
16816e5
Compare
Thanks a lot for starting to work on this.
If we decide to not port it, we could use create-github-actions-setup-for-ember-addon. Missing support for Code Climate and similar customization of CI pipeline is the only reason I haven't migrated this addon yet. Using the script to create (and update) GitHub Actions workflows is also recommended by program guidelines for adopted ember addons. |
326e5cb
to
c1ec916
Compare
be0a2a6
to
14cbd15
Compare
I'm struggling to fix this one issue.
I've tried:
|
Tests, which fail on CI but not locally, are the worst. So challenging to debug... This is the test, which is failing: ember-file-upload/tests/integration/components/mirage-handler-test.js Lines 57 to 103 in 7f8d7c4
The same test code is run for three scenarios: audio, image and video. Only audio is failing. Audio and video are handled very similar in upload handler provided for mirage: ember-file-upload/addon/mirage/utils.js Lines 76 to 126 in 7f8d7c4
<audio> the other a <video> element. The video function reads videoWidth and videoHeight attributes additionally. I would be surprised if that small difference causes one to pass and the other to fail.
I was wondering if the CI is flickering or fails always for the same scenarios. I will restart several times and note which scenarios are passing and which are failing.
It is not consistent. The same scenarios were passing in some runs but failing in other runs. This makes it even harder to debug. 😖
This sounds very much like a timing issue. I guess the timing between the different steps is not predictable. Will try to debug that next. |
ebf5533
to
f125b83
Compare
@jelhan rebased and re-ran Seems like that one spec is still unreliable under GitHub Actions |
I would tend to skip that test for now. It only covers mirage test helpers. And this is eating up too much of our limited time... |
Don't run linters in testem Drop .travis.yml. Update lint and test commands.
7f6d4e2
to
cb38c6a
Compare
@jelhan Ok I've skipped that test and we have fields of green now ✅ Only thing remaining is to migrate the docs deployment. I've configured a basic workflow. Just need a deployment key to be generated and added to GitHub secrets. I didn't know who has the permissions to do this so I've asked for help on Discord. |
522a0a2
to
273c4fb
Compare
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.
Looks good for me. Only a small question if we should maybe skip not all but only one of the tests for upload handler. But I may have missed something.
The deployment of docs failed when triggered by v4.0.0 release: https://github.com/adopted-ember-addons/ember-file-upload/runs/2873915337 @gilest Would be great if you could have a look what is going on. |
Relatively similar to the Travis CI config.
Closes #465
Checklist:
here
Deployed preview site here ✨
It seems to be equivalent to the most recent
master
deploy.