-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WIP: Move a Travis job to GitHub Actions #8489
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
Conversation
|
My bad, I just checked and actually the top job uses python 3.8, it's in |
|
The great majority of the tests succeed except:
|
|
I guess I could decrease the tolerance to Is it because # Init xdawn with bad parameters
pytest.raises(ValueError, Xdawn, correct_overlap=42)in ...
self.correct_overlap = _check_option('correct_overlap',
correct_overlap,
['auto', True, False])Any idea @agramfort, @larsoner ? |
|
I tracked the new Travis failure to #8486: I lack context to find the optimal fix for this one and I will continue to investigate but maybe you know an obvious fix @agramfort, @hoechenberger ? |
Don't waste time on this, I will fix this momentarily, sorry about this |
|
Thanks for the swift answer! |
|
@GuillaumeFavelier This should be fixed in #8491, sorry for delaying you here. We somehow overlooked a failing CI before merging yesterday |
Sometimes these depend on little numerical differences caused by different linear algebra libraries. I would just make the necessary small adjustments, see for example https://github.com/mne-tools/mne-python/pull/8046/files#diff-713b7a9b5d7636d6c89e985d8fb1bd4c88ca14290509f426f4dffd2fa99305cfR196 and https://github.com/mne-tools/mne-python/pull/8046/files#diff-998593fc4edeccd3a930c2dd734d4a0042cac66a24527f9d069d46afd4f7c338R690 in the conda-forge PR |
|
#8491 has been merged, you can rebase on |
|
If this is set up correctly (meaning: does a build of the a merged version of the PR, and not just the branch itself) then just restarting the action should be enough. I've done that to see if it succeeds |
|
(I couldn't find a way just to restart the failed job, which is not great, so I restarted both) |
Maybe I should split the linux job in a different file? (I mean creating another workflow) |
I just noticed that things are almost entirely duplicated in the current file. I'd go the opposite route and try to unify the two approaches and make things more DRY. Then we can figure out how to properly make it so you can restart one job versus another. I'm guessing that it's just another entry in the given file or something. Worth investigating how to get the the GitHub actions interface to support it. |
Let's do this then |
|
Looks like it's a requested feature https://github.bokerqi.topmunity/t/ability-to-rerun-just-a-single-job-in-a-workflow/17234/4 Another option would be to split into two files, but try to reuse code where possible by using |
|
I'll try to find the right balance |
|
Only one script to:
will generate a huge log. |
|
You can split it into four separate scripts, that's still pretty DRY |
.github/workflows/linux.yml
Outdated
|
|
||
| jobs: | ||
| Conda: | ||
| if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')" |
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.
This might be a good time to follow scipy/scipy#12921 and add:
| if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')" | |
| if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')" |
.github/workflows/linux.yml
Outdated
| - uses: actions/cache@v1 | ||
| env: | ||
| # Increase this value to reset cache if environment.yml has not changed | ||
| CACHE_NUMBER: 0 | ||
| with: | ||
| path: ~/conda_pkgs_dir | ||
| key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} |
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 don't think we want to do this. I know it speeds things up, but it stops us from continuously checking to make sure that our conda instructions work, which has shown important bugs in the past.
.github/workflows/linux.yml
Outdated
| source tools/get_minimal_commands.sh | ||
| mne_surf2bem --version |
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.
These should live in get_minimal_commands.sh
.github/workflows/linux.yml
Outdated
| mne_surf2bem --version | ||
| name: 'Install dependencies' | ||
| - shell: bash -el {0} | ||
| run: | |
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.
These should all be one-liners so get rid of | to make more compact?
|
Restarting did not help: https://github.com/mne-tools/mne-python/pull/8489/checks?check_run_id=1374022972 This suggests that a merged version of the PR is not being built, but rather the plain branch itself. Can you look into it? |
|
Yes, I'm on it |
|
I will still wait for another commit on |
|
Looks like it worked! Ready for merge from your end @GuillaumeFavelier ? |
|
I am not 100% sure yet. Because I pushed another commit. I would like to wait for another commit after e702478 to test |
|
Okay I pushed 29ced0f and then restarted the macOS GitHub action |
|
Many thanks :) |
|
So on the restarted job: It's not the updated |
Okay so maybe we have to just live with GitHub's limitation here. Can you push an empty commit here to see if that one gets the latest |
|
A commit seems necessary indeed: It is up to date now. |
|
Good enough, thanks @GuillaumeFavelier |
This PR moves the top Travis job (python3.7, conda, ...) to GitHub Actions.
Closes #8488