You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a similar issue to #325 and #426, but with a different behavior.
For context, the project is a test runner created using TypeScript and the tests are run without compile the .ts files.
The Issue
Locally, everything works well and the results really make sense.
In GitHub's ubuntu-latest CI, it shows 100% for absolutely everything.
Debugging
1. Remove my Test Runner
To check if this behavior was being caused by my test runner, I removed it and tried to do the same using popular testing tools, including the native from Node.js 21.
Locally, they all worked and gave the same result, as it should be.
Yes, by compiling it to .js now it works for both the environments.
But... This is a problem for this specific project.
Since this test runner allows testing without compile TypeScript using zero configs, it's expected that the test runner will be tested in the same way.
4. Using a Docker Container
I tried to test it using a node:lts-alpine for both local and remote environments.
Also worked, now without compile TypeScript for both, but...
Even ensuring that all coverage files exist by mounting a root volume to write the coverage results and upload them to Codecov, the Codecov finds the coverage data, but doesn't upload them and emit: unknown status.
By not using a Docker container to generate the coverage, all data are uploaded normally.
Unfortunately, I don't know how to reproduce this behavior, since everything works locally.
ubuntu-latest
)For context, the project is a test runner created using TypeScript and the tests are run without compile the
.ts
files.The Issue
ubuntu-latest
CI, it shows100%
for absolutely everything.Debugging
1. Remove my Test Runner
To check if this behavior was being caused by my test runner, I removed it and tried to do the same using popular testing tools, including the native from Node.js 21.
2. Change from tsx to ts-node
Just the same.
3. Compile TypeScript
Yes, by compiling it to
.js
now it works for both the environments.4. Using a Docker Container
I tried to test it using a
node:lts-alpine
for both local and remote environments.Also worked, now without compile TypeScript for both, but...
Even ensuring that all coverage files exist by mounting a root volume to write the coverage results and upload them to Codecov, the Codecov finds the coverage data, but doesn't upload them and emit:
unknown status
.Unfortunately, I don't know how to reproduce this behavior, since everything works locally.
A CI result to illustrate:
The text was updated successfully, but these errors were encountered: