GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Unskip more macOS tests in CI by fanninpm · Pull Request #2584 · RustPython/RustPython

Conversation

@fanninpm

@fanninpm fanninpm commented Apr 22, 2021

Copy link
Copy Markdown
Contributor

This PR will incrementally determine exactly which tests must be skipped on the macOS CI run. Submitting as draft until everything is narrowed down.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
fanninpm added 14 commits April 21, 2021 22:15
@fanninpm
Format one CI test per line
e1eb7ef
@fanninpm
Unskip test_argparse in macOS CI
ece0567
@fanninpm
Unskip test_json in macOS CI
8581ce7
@fanninpm
Unskip test_bytes in macOS CI
7a84da1
@fanninpm
Unskip test_bytearray in macOS CI
bbce731
@fanninpm
Unskip test_long in macOS CI
f1d5bb9
@fanninpm
Unskip test_unicode in macOS CI
89cd719
@fanninpm
Unskip test_array in macOS CI
5b8575c
@fanninpm
Unskip test_asyncgen in macOS CI
e115c64
@fanninpm
Unskip test_list in macOS CI
5c28dc7
@fanninpm
Unskip test_complex in macOS CI
2b382e5
@fanninpm
Unskip test_set in macOS CI
86fb1d9
@fanninpm
Unskip test_dis in macOS CI
4c5192e
@fanninpm
Unskip test_calendar in macOS CI
59c7dea
@fanninpm
fanninpm marked this pull request as ready for review April 23, 2021 22:26
@coolreader18

coolreader18 commented Apr 24, 2021

Copy link
Copy Markdown
Member

Shoot... I probably should've mentioned this earlier but I wasn't entirely sure then, but I think the reason those were skipped is just because the macos runner is a lot slower -- ubuntu/windows take about 20 minutes, while the macos run for the latest commit took 40 minutes. It wasn't actually because they were failing on macos.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fanninpm

fanninpm commented Apr 24, 2021

Copy link
Copy Markdown
Contributor Author

the macos runner is a lot slower -- ubuntu/windows take about 20 minutes, while the macos run for the latest commit took 40 minutes

If you want, you could defer this PR. To that end, I have noticed that the build times on the macOS runner are about 3-4x slower than those on the Ubuntu or Windows runners. However, I have also noticed that the addition of the extra texts added little to the overall run time.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coolreader18

coolreader18 commented Apr 24, 2021

Copy link
Copy Markdown
Member

Huh, I guess that's true, other PRs have macos taking like 35m. This is ~probably~ fine then

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coolreader18

coolreader18 commented Apr 24, 2021

Copy link
Copy Markdown
Member

Ohhh right, I turned off caching for macos cause it was erroring. Do you want to see if it works now? I think you can just the if: runner.os != 'macOS' from the actions/cache step.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fanninpm
Re-enable cache on macOS
a0ef31d
This will probably not work due to some currently unresolved issues:
 - rust-lang/cargo#8603
 - actions/cache#403
@fanninpm

fanninpm commented Apr 24, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I just found this action, which claims to work around currently unresolved issues that corrupt the cache on macOS builds. I don't think it would be too hard to implement.

EDIT: I'll have to pick this back up tomorrow.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fanninpm added 2 commits April 23, 2021 22:32
@fanninpm
Trigger build from cache
6950c65
@fanninpm
Trigger another build from cache
8c43413
@fanninpm

fanninpm commented May 1, 2021

Copy link
Copy Markdown
Contributor Author

@coolreader18 should I put that GitHub action in, or should I leave this as it is?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coolreader18

coolreader18 commented May 1, 2021

Copy link
Copy Markdown
Member

@fanninpm I think that'd be good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fanninpm
Use Swatinem's rust-cache action
4905840
coolreader18
coolreader18 approved these changes May 2, 2021
View reviewed changes

@coolreader18 coolreader18 left a comment

Copy link
Copy Markdown
Member

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.

LGTM, thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coolreader18
coolreader18 merged commit 3b14ee8 into RustPython:master May 2, 2021
@fanninpm
fanninpm deleted the more-mac-ci-tests branch May 2, 2021 14:27
@fanninpm fanninpm mentioned this pull request May 2, 2021
Unskip more Windows tests in CI #2619
Closed
@youknowone youknowone mentioned this pull request Oct 15, 2021
CI runs platform-independent and platform-dependent tests separately #3312
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coolreader18 coolreader18 coolreader18 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fanninpm @coolreader18
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.