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: update tap@19 #5471

Merged
merged 4 commits into from
Jun 5, 2024
Merged

chore: update tap@19 #5471

merged 4 commits into from
Jun 5, 2024

Conversation

climba03003
Copy link
Member

Checklist

@jsumners
Copy link
Member

Unless things have changed, it's a little bit more involved https://github.com/fastify/fastify/pull/4978/files

@climba03003
Copy link
Member Author

climba03003 commented May 17, 2024

Unless things have changed

Tested locally, it only requires minimal changes.
Is it hard requirement to remove c8?

@jsumners
Copy link
Member

tap@18 is using c8 itself.

@climba03003
Copy link
Member Author

climba03003 commented May 17, 2024

After testing on removing the external c8 and using the internal one.
It forced to includes the files that should be ignored in the coverage report.
For example, error-serializer.js.

@gurgunday
Copy link
Member

Are macos tests flaky?

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

Seems like only macOS fails with a heap limit error

@gurgunday
Copy link
Member

gurgunday commented May 26, 2024

Do you know why macOS unit test CI could be failing? @climba03003

@Cangit Cangit mentioned this pull request Jun 3, 2024
4 tasks
Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

Can you update to tap@19 as well?

@climba03003 climba03003 changed the title chore: update tap@18 chore: update tap@19 Jun 4, 2024
@github-actions github-actions bot added the github actions Github actions related label Jun 4, 2024
@@ -11,24 +11,24 @@
"benchmark:parser": "concurrently -k -s first \"node ./examples/benchmark/parser.js\" \"autocannon -c 100 -d 30 -p 10 -i ./examples/benchmark/body.json -H \"content-type:application/jsoff\" -m POST localhost:3000/\"",
"build:validation": "node build/build-error-serializer.js && node build/build-validation.js",
"coverage": "npm run unit -- --coverage-report=html",
"coverage:ci": "c8 --reporter=lcov tap --coverage-report=html --no-browser --no-check-coverage",
"coverage:ci-check-coverage": "c8 check-coverage --branches 100 --functions 100 --lines 100 --statements 100",
"coverage:ci": "tap --coverage-report=html --coverage-report=lcov --allow-incomplete-coverage",
Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, we no-longer able to stop opening browser.
tapjs/tapjs#978

"coverage:ci": "c8 --reporter=lcov tap --coverage-report=html --no-browser --no-check-coverage",
"coverage:ci-check-coverage": "c8 check-coverage --branches 100 --functions 100 --lines 100 --statements 100",
"coverage:ci": "tap --coverage-report=html --coverage-report=lcov --allow-incomplete-coverage",
"coverage:ci-check-coverage": "tap replay",
Copy link
Member Author

Choose a reason for hiding this comment

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

Replay command will fail if threshold is not meet
See https://github.com/fastify/fastify/actions/runs/9362073855 for demostration

lib/configValidator.js Outdated Show resolved Hide resolved
build/build-validation.js Outdated Show resolved Hide resolved
lib/error-serializer.js Outdated Show resolved Hide resolved
Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

istanbul-ignores don't do anything anymore no?

Please make sure to remove them

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@gurgunday gurgunday merged commit 4be6468 into main Jun 5, 2024
28 checks passed
@gurgunday gurgunday deleted the node-tap-18 branch June 5, 2024 08:41
@climba03003 climba03003 mentioned this pull request Jun 5, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github actions Github actions related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants