Skip to content
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

build: allow node latest build to fail #808

Conversation

MatanBobi
Copy link
Member

This is due to a braking change in npx adding a -y flag

What: Allow node latest build to fail because of a change in npx requiring us to add a -y flag to our CI.

Why: At the moment, our build is failing for Node 15.

How: Add the node latest version to the allow_failures section.

Checklist:

  • Documentation added to the
    docs site - N/A
  • Tests - N/A
  • Typescript definitions updated - N/A
  • Ready to be merged

This was raised in this comment by @kentcdodds.

This is due to a braking change in npx adding a -y flag
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f9379a5:

Sandbox Source
React Configuration
kentcdodds/react-testing-library-examples Configuration

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But now any failure in node would be displayed as green.

Does travis not allow conditional scripts based on variables? We should rather adjust the jobs accordingly i.e. run npx -y codecov@3 in node 15

Edit: just found

npm_config_yes=true npx mocha

-- npm/cli#1935 (comment)

@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #808 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #808   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          117       117           
  Branches        16        16           
=========================================
  Hits           117       117           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50f54b5...f9379a5. Read the comment docs.

@MatanBobi
Copy link
Member Author

But now any failure in node would be displayed as green.

Does travis not allow conditional scripts based on variables? We should rather adjust the jobs accordingly i.e. run npx -y codecov@3 in node 15

Edit: just found

npm_config_yes=true npx mocha

-- npm/cli#1935 (comment)

The allow_failures is only for node and not for the specific versions if I understood correctly as you can see here..

But I do agree that it would be better to fix it specifically for node 15. I'll have a look as I'm not 100% familiar with travis.

@eps1lon
Copy link
Member

eps1lon commented Oct 27, 2020

I'll have a look as I'm not 100% familiar with travis.

I would start with npm_config_yes=true npx mocha first. Seems like the easier choice.

@kentcdodds
Copy link
Member

We could definitely go with that approach, but I'm not a big fan of experimental software (odd versions of node) blocking our ability to release 😬 If something else comes up that would be pretty annoying.

@eps1lon
Copy link
Member

eps1lon commented Oct 27, 2020

We could definitely go with that approach, but I'm not a big fan of experimental software (odd versions of node) blocking our ability to release If something else comes up that would be pretty annoying.

I'm hesitant as well but npm_config_yes=true npx -y codecov@3 looks not that invasive to me.

@kentcdodds
Copy link
Member

I agree it's not a big deal. What I mean is considering Node 15 is experimental software, our build could break for confusing reasons and if that stops us from shipping that would be annoying since we technically don't support experimental versions of node.

@kentcdodds
Copy link
Member

I guess I'm saying we can add that to get around this issue, but I also want to make it so the node 15 build doesn't fail CI.

@eps1lon
Copy link
Member

eps1lon commented Oct 27, 2020

Why do we have the node target in travis to begin with? We already list 14 and 16 is 6mo out. Would it make more sense to replace node with lts/*? Otherwise I don't understand what the point is to test on node 15. Do we support it or not?

Also want to be clear that node 15 is not experimental. It's as stable as any released software. It just is not considered LTS.

@kentcdodds
Copy link
Member

Yeah, I think it would make sense to remove node from the list so we don't have unexpected surprises in the future. Technically we do support node 15 thanks to our >=10 listing in the package.json.

@MatanBobi
Copy link
Member Author

I'm closing this one since @eps1lon opened #809

Thanks everyone :)

@MatanBobi MatanBobi closed this Oct 27, 2020
@MatanBobi MatanBobi mentioned this pull request Oct 27, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants