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

chore(deps): update win orb to v2 #2221

Merged
merged 3 commits into from
Jun 7, 2021
Merged

chore(deps): update win orb to v2 #2221

merged 3 commits into from
Jun 7, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 13, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
win orb major 1.1.0 -> 2.4.0

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sorry, something went wrong.

@rpl
Copy link
Member

rpl commented Apr 13, 2021

Based on a quick look to the previous and last version of the circli ci windows orb:

It looks that the vs2019 executor has been renamed to default (which also match the error triggered on the CI job by this PR)

Before merging this PR we will have to update the circle ci config accordingly.

@renovate renovate bot force-pushed the renovate/win-2.x branch from 71315eb to 7d31b98 Compare April 13, 2021 15:04

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
@renovate renovate bot force-pushed the renovate/win-2.x branch from 7d31b98 to b2ad5bc Compare June 1, 2021 18:40
@rpl
Copy link
Member

rpl commented Jun 1, 2021

TODO:

  • investigate test failure on executing test.lib.imports.js on the circle ci windows workers after updating to the new win-2.4.0 circle-ci orb

Update (2021/06/07):

  • I've been able to reproduce the same issue locally on nodejs v12.11.1, but it isn't triggered in a more recent version of the nodejs old lts (e.g. 12.22.1 which is currently the last release for the old lts).
  • my guess is that it wasn't failing on the previous version of the circleci windows orb just because the nodejs version shipped by default didn't also not have that issue
  • the updated version of this PR does update the nodejs version used in the windows circleci worker to the last version of the old nodejs lts version

Initial analysis (2021/06/01):

Unfortunately the changes described in #2221 (comment) are enough to make fix the circleci config, but that is revealing a odd issue with the test.lib.imports.js test, which is currently failing with the following error message:

  1) web-ext imported as a library
       can be imported as an ESM module:
     Error: Command failed: C:\PROGRAM FILES\NODEJS\NODE.EXE --experimental-modules test-import.mjs
(node:4088) ExperimentalWarning: The ESM module loader is experimental.
internal/modules/esm/default_resolve.js:79
  let url = moduleWrapResolve(specifier, parentURL);
            ^

Error: Cannot resolve package exports target 'undefined' matched for '.' in C:\Users\circleci\AppData\Local\Temp\tmp-web-ext--1292-9mSJuTrSz5zf\node_modules\web-ext\package.json, imported from C:\Users\circleci\AppData\Local\Temp\tmp-web-ext--1292-9mSJuTrSz5zf\test-import.mjs
    at Loader.resolve [as _resolve] (internal/modules/esm/default_resolve.js:79:13)
    at Loader.resolve (internal/modules/esm/loader.js:73:33)
    at Loader.getModuleJob (internal/modules/esm/loader.js:152:40)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:43:40)
    at link (internal/modules/esm/module_job.js:42:36) {
  code: 'ERR_MODULE_NOT_FOUND'

(link to the entire logs)

Sorry, something went wrong.

@rpl rpl force-pushed the renovate/win-2.x branch from b0742d9 to 96ebe68 Compare June 7, 2021 18:17
@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

Merging #2221 (044bb4f) into master (82e94d1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2221   +/-   ##
=======================================
  Coverage   99.88%   99.88%           
=======================================
  Files          32       32           
  Lines        1699     1699           
=======================================
  Hits         1697     1697           
  Misses          2        2           

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 82e94d1...044bb4f. Read the comment docs.

@rpl
Copy link
Member

rpl commented Jun 7, 2021

@Rob--W I was investigating this issue right before going on PTO last week, but after fixing the original issue I did trigger another one. I took a more deeper look today and updated this PR with a fix (the issue and fix are described in #2221 (comment)).

I plan to merge this soon, do you want to take a quick look first? (mainly in terms of getting a second opinion about the readability and maintainability of the fix applied to the circleci config file, there isn't much to review in this PR besides that).

## NOTE: the nodejs version shipped with circleci/windows@2.4.0 orb
## does fail on the test-functional test related to importing
## web-ext as a library, the issue seems to have been fixed on more
## recent nodejs versions.
Copy link
Member

Choose a reason for hiding this comment

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

Can you be more explicit about the broken/fixed versions? And add the explicit sentence "Install a recent version without this issue." (Change "recent" to something more accurate if needed)

And if you think that it helps, also include a link to this PR/comment.

Copy link
Member

Choose a reason for hiding this comment

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

I've been a bit lazy, and so I didn't run a bisect, but in the end it would be nice to write down what was the broken range while I'm still around this issue.

Based on a quick bisect, the range between 12.11.1 and 12.15.0 (included) is broken, the first version to work as expected is v12.16.0.

I updated the comment accordingly, but I didn't looked for the first version broken, I don't think we care too much about that in the end.

@rpl rpl force-pushed the renovate/win-2.x branch from 96ebe68 to 044bb4f Compare June 7, 2021 19:09
@rpl rpl merged commit aff7bf8 into master Jun 7, 2021
@rpl rpl deleted the renovate/win-2.x branch June 7, 2021 20:52
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