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

deps: replace "nyc" with "c8" #4228

Merged
merged 1 commit into from
Jan 5, 2024
Merged

deps: replace "nyc" with "c8" #4228

merged 1 commit into from
Jan 5, 2024

Conversation

justinmk3
Copy link
Contributor

@justinmk3 justinmk3 commented Jan 4, 2024

Problem

nyc is no longer maintained: istanbuljs/nyc#1514

and it depends on various outdated packages, .e.g uuid@3.4.0 (check with npm ls uuid).

Solution

  • Remove nyc.
  • Migrate to c8.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@justinmk3 justinmk3 requested a review from a team as a code owner January 4, 2024 20:58
@justinmk3
Copy link
Contributor Author

Looks like it worked: https://app.codecov.io/github/aws/aws-toolkit-vscode/commit/bc308d44c8cca822ed4a982195175c8adc6b70fa

/Users/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.1.4 -f ./coverage/lcov.info -F macos-unittests -C bc308d44c8cca822ed4a982195175c8adc6b70fa -v
[2024-01-04T21:09:34.038Z] ['verbose'] Start of uploader: 1704402574038...
[2024-01-04T21:09:34.040Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/
  Codecov report uploader 0.7.1
[2024-01-04T21:09:34.065Z] ['info'] => Project root located at: /Users/runner/work/aws-toolkit-vscode/aws-toolkit-vscode
[2024-01-04T21:09:34.076Z] ['info'] -> No token specified or token is empty
[2024-01-04T21:09:34.076Z] ['verbose'] Start of network processing...
[2024-01-04T21:09:34.076Z] ['verbose'] Searching for files in /Users/runner/work/aws-toolkit-vscode/aws-toolkit-vscode
[2024-01-04T21:09:34.1[57](https://github.com/aws/aws-toolkit-vscode/actions/runs/7414756522/job/20176622921?pr=4228#step:7:58)Z] ['verbose'] coveragepy is not installed
[2024-01-04T21:09:34.157Z] ['info'] Searching for coverage files...
[2024-01-04T21:09:35.034Z] ['verbose'] Preparing to clean the following coverage paths: ./coverage/lcov.info
[2024-01-04T21:09:35.034Z] ['info'] => Found 1 possible coverage files:
  ./coverage/lcov.info
[2024-01-04T21:09:35.034Z] ['verbose'] End of network processing
[2024-01-04T21:09:35.034Z] ['info'] Processing ./coverage/lcov.info...

"report-dir": "./coverage",
"reporter": ["lcov"],
"all": true,
"include": ["src/**", "dist/src/**"],
Copy link
Contributor

Choose a reason for hiding this comment

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

should we check the lint rules in plugins/ as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, let's add that later.

Problem:
`nyc` is no longer maintained: istanbuljs/nyc#1514
and it depends on various outdated packages, .e.g `uuid@3.4.0` (check with `npm ls uuid`).

Solution:
- Remove `nyc`.
- Migrate to `c8`.
"all": true,
"include": ["src/**", "dist/src/**"],
"exclude": [
"dist/src/ssmDocument/ssm/ssmServer.js",
Copy link
Contributor Author

@justinmk3 justinmk3 Jan 5, 2024

Choose a reason for hiding this comment

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

Avoid this weird failure from somewhere in ssmDocument/** :

Error: ENOENT: no such file or directory, open 'D:\a\aws-toolkit-vscode\aws-toolkit-vscode\coverage\lcov-report\dist\src\ssmDocument\external "buffer".html'
    at Object.openSync (node:fs:590:3)
    at FileWriter.writeFile (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\node_modules\istanbul-lib-report\lib\file-writer.js:185:41)

@justinmk3 justinmk3 merged commit 82158f2 into master Jan 5, 2024
14 of 15 checks passed
@justinmk3 justinmk3 deleted the nyc branch January 5, 2024 14:30
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.

2 participants