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 — Travis CI: macOS does not include Python anymore by imatlopez · Pull Request #1979 · nodejs/node-gyp

Conversation

@imatlopez

@imatlopez imatlopez commented Nov 28, 2019

Copy link
Copy Markdown
Contributor
Checklist
  • commit message follows commit guidelines
Description of change

macOS stopped bundling python, this attempts to bring back travis tests on macOS

Sorry, something went wrong.

Uh oh!

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

All reactions
@cclauss

cclauss commented Nov 28, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Thanks for doing this but please use pyenv install Python on Travis CI. It is way faster than brew and supports all Python versions including Python 3.8 which brew is still struggling to support.

Try pyenv install --list to see all the versions available.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cclauss cclauss changed the title build: macOS does not include python anymore build: macOS does not include Python anymore Nov 28, 2019
@cclauss

cclauss commented Nov 28, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Travis is dropping matrix: for jobs: so let's lose the matrix around line 4...

addons:
  homebrew:
    update: true
    packages:
      - npm
      - pyenv
jobs:

matrix:

This will ensure that all macOS jobs have access to the latest npm and pyenv.

imatlopez reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

cclauss
cclauss reviewed Nov 28, 2019
View reviewed changes
Comment thread .travis.yml Resolved

Uh oh!

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

@imatlopez

imatlopez commented Nov 28, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@cclauss got it working, cleaning up. For pyenv to work the PATH needs to be changed and for python modules to work they need the python -m prefix

(there is no better way to test this is there?)

All reactions

Sorry, something went wrong.

Uh oh!

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

@imatlopez imatlopez changed the title build: macOS does not include Python anymore Travis CI: macOS does not include Python anymore Nov 28, 2019
@imatlopez

imatlopez commented Nov 28, 2019

Copy link
Copy Markdown
Contributor Author

@cclauss ready for review :)

All reactions

Sorry, something went wrong.

Uh oh!

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

rvagg
rvagg approved these changes Nov 29, 2019
View reviewed changes
@rvagg
rvagg force-pushed the master branch from c392a17 to 6b8f265 Compare November 29, 2019 01:19
@rvagg

rvagg commented Nov 29, 2019

Copy link
Copy Markdown
Member

I've force pushed out the HEAD commit on master, c392a17, so it's in the list of commits here too to be reviewed, edited (needs test: as the prefix) and have metadata attached.

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg rvagg mentioned this pull request Nov 29, 2019
test: fix macOS Travis builds #1980
Closed
1 of 4 tasks
cclauss and others added 3 commits November 28, 2019 20:23
@cclauss @imatlopez
test: Fix the macOS tests on Python 2.7 & 3.7
1149f21
Uses `pyenv` to manage MacOS python versions since its not included
in the environment.
@imatlopez
test: Isolated macos build
98c63a6
Isolates the `MacOS` builds to test changes faster. Reorders Travis
builds by OS. Replaces `pyenv global` calls with properly set `PATH`
and `PYENV_VERSION` env vars. Does not assume python modules are in
the `PATH` so all python modules are prefixed with `python -m`.
@imatlopez
test: Use simpler pyenv command
6244cec
Undoes the test isolation and removes `pyenv init` because it is
not needed.
@imatlopez

imatlopez commented Nov 29, 2019

Copy link
Copy Markdown
Contributor Author

I've force pushed out the HEAD commit on master, c392a17, so it's in the list of commits here too to be reviewed, edited (needs test: as the prefix) and have metadata attached.

reworded commit names, is this what you meant?

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg

rvagg commented Nov 29, 2019

Copy link
Copy Markdown
Member

reworded commit names, is this what you meant?

No, sorry, it's not your commit, we'll deal with it when merged but if you rebase onto master then you'll be without it. I think it comes from work @cclauss was doing for #1980 but got pushed to master prematurely?

imatlopez reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@imatlopez

imatlopez commented Nov 29, 2019

Copy link
Copy Markdown
Contributor Author

Do you know why the python 3.5 test is failing? Can it be removed?

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg

rvagg commented Nov 29, 2019

Copy link
Copy Markdown
Member

nope, will wait for @cclauss' input on that

All reactions

Sorry, something went wrong.

Uh oh!

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

cclauss
cclauss approved these changes Nov 29, 2019
View reviewed changes

@cclauss cclauss left a comment

Copy link
Copy Markdown
Contributor

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.

Thanks for doing this! Well done.

Sorry, something went wrong.

Uh oh!

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

imatlopez reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@rvagg

rvagg commented Nov 29, 2019

Copy link
Copy Markdown
Member

@cclauss got any suggestions on the 3.5 failure here?

All reactions

Sorry, something went wrong.

Uh oh!

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

@cclauss

cclauss commented Nov 29, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

On the 3.5 tests, those seem to be diff tests and my sense is that all the same data is there but not necessarily in the right order. Perhaps those tests need to look at smaller chunks or sort things before looking at them.

I will study that output in the next few hours...

Update: The diff contains:

E -                'AdditionalOptions': '/more /J',
E ?                                           ---
E +                'AdditionalOptions': '/more',

So the /J switch has been removed in both tests.

All reactions

Sorry, something went wrong.

Uh oh!

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

@imatlopez

imatlopez commented Nov 30, 2019

Copy link
Copy Markdown
Contributor Author

What is that flag for? Is it related to using python -m pytest vs pytest? I know one difference is that the first one sets the current working directory as the PYTHONPATH while the second one does not.

All reactions

Sorry, something went wrong.

Uh oh!

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

@joaocgreis

joaocgreis commented Dec 2, 2019

Copy link
Copy Markdown
Member

The 3.5 failure is not related to this PR, so I think this should land when ready.

I saw the 3.5 failure when working on #1961, but it went away on a second run. That points to something like a difference in Travis runners or a broken cache.

@targos (since I saw you enabled Travis here, but other org owners can also do this) can you clear the Travis cache? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@targos

targos commented Dec 2, 2019

Copy link
Copy Markdown
Member

@joaocgreis sure, what should I remove (I don't know anything about Travis caches):

image

All reactions

Sorry, something went wrong.

Uh oh!

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

@joaocgreis

joaocgreis commented Dec 2, 2019

Copy link
Copy Markdown
Member

@targos please delete all repository caches (top right corner). Thanks!

I believe nodejs/node uses the cache to actually make the build possible because of timing issues, but here it should be ok to just delete everything.

All reactions

Sorry, something went wrong.

Uh oh!

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

@targos

targos commented Dec 2, 2019

Copy link
Copy Markdown
Member

@joaocgreis it's done

joaocgreis reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@richardlau

richardlau commented Dec 2, 2019

Copy link
Copy Markdown
Member

I restarted https://travis-ci.com/nodejs/node-gyp/jobs/261487549 after the cache was cleared but it still failed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@imatlopez

imatlopez commented Dec 3, 2019

Copy link
Copy Markdown
Contributor Author

@rvagg anything pending for merging? I saw #1982 and it looks promising but I don't understand the distinction between travis and gh actions.

All reactions

Sorry, something went wrong.

Uh oh!

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

rvagg pushed a commit that referenced this pull request Dec 15, 2019
@cclauss @rvagg
test: fix macOS Travis on Python 2.7 & 3.7
d6a7e0e
Uses `pyenv` to manage MacOS python versions since its not included
in the environment.

rvagg: landing this from #1979 even though it wasn't from the original
author. Treating approval there as approval of this commit too.

PR-URL: #1979
Reviewed-By: Rod Vagg <[email protected]>
rvagg pushed a commit that referenced this pull request Dec 15, 2019
@imatlopez @rvagg
test: direct python invocation & simpler pyenv
345c70e
Reorder Travis builds by OS. Replace `pyenv global` calls with
properly set `PATH` and `PYENV_VERSION` env vars. Does not
assume python modules are in the `PATH` so all python
modules are prefixed with `python -m`.

PR-URL: #1979
Reviewed-By: Christian Clauss <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
@rvagg

rvagg commented Dec 15, 2019

Copy link
Copy Markdown
Member

d6a7e0e - @cclauss' commit
345c70e - the rest, I had a bit of trouble coming up with a summary but I think I got the gist if ot in there

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg rvagg closed this Dec 15, 2019
@rvagg

rvagg commented Dec 15, 2019

Copy link
Copy Markdown
Member

still dealing with linux 3.5 failures https://travis-ci.com/nodejs/node-gyp/builds/141142728, fwiw

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg rvagg mentioned this pull request Dec 16, 2019
Release proposal: [email protected] #1972
Closed
@cclauss

cclauss commented Dec 16, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

See #1995 for more on Python 3.5 on Linux failures...

All reactions

Sorry, something went wrong.

Uh oh!

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

rvagg pushed a commit that referenced this pull request Jan 3, 2020
@cclauss @rvagg
test: fix macOS Travis on Python 2.7 & 3.7
32c8744
Uses `pyenv` to manage MacOS python versions since its not included
in the environment.

rvagg: landing this from #1979 even though it wasn't from the original
author. Treating approval there as approval of this commit too.

PR-URL: #1979
Reviewed-By: Rod Vagg <[email protected]>
rvagg pushed a commit that referenced this pull request Jan 3, 2020
@imatlopez @rvagg
test: direct python invocation & simpler pyenv
0923f34
Reorder Travis builds by OS. Replace `pyenv global` calls with
properly set `PATH` and `PYENV_VERSION` env vars. Does not
assume python modules are in the `PATH` so all python
modules are prefixed with `python -m`.

PR-URL: #1979
Reviewed-By: Christian Clauss <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
This was referenced Jan 3, 2020
[email protected] Release Proposal #2012
Closed
[email protected] Release Proposal #2013
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rvagg rvagg rvagg approved these changes
@cclauss cclauss cclauss 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.

6 participants

@imatlopez @cclauss @rvagg @joaocgreis @targos @richardlau
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.