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

fix(node): Run node compat tests listed in the ignore field (and fix the ones that fail) #24631

Merged
merged 11 commits into from
Jul 24, 2024

Conversation

nathanwhit
Copy link
Member

@nathanwhit nathanwhit commented Jul 18, 2024

The intent is that those tests will be executed, but our check that the files are up to date won't overwrite the contents of the tests. This is useful when a test needs some manual edits to work.

It turns out we weren't actually running them.


This ended up turning into a couple of small bug fixes to get the tests passing:

  • We weren't canonicalizing the exec path properly (it sometimes still had .. or . in it)
  • We weren't accepting strings in process.exit

There was one failure I couldn't figure out quickly, so I disabled the test for now, and filed a follow up issue: #24694

@nathanwhit nathanwhit changed the title chore: Run tests listed in the ignore field of tests/node_compat/config.jsonc chore: Run tests listed in the ignore field of node compat tests config Jul 18, 2024
@nathanwhit nathanwhit force-pushed the node-compat-suite-run-ignore branch from b4e6711 to bb7e7fb Compare July 18, 2024 02:03
@nathanwhit nathanwhit changed the title chore: Run tests listed in the ignore field of node compat tests config fix(node): Run node compat tests listed in the ignore field (and fix the ones that fail) Jul 24, 2024
@nathanwhit nathanwhit enabled auto-merge (squash) July 24, 2024 02:45
@nathanwhit nathanwhit merged commit 29934d5 into denoland:main Jul 24, 2024
17 checks passed
@nathanwhit nathanwhit deleted the node-compat-suite-run-ignore branch July 24, 2024 15:08
dsherret pushed a commit that referenced this pull request Jul 26, 2024
…x the ones that fail) (#24631)

The intent is that those tests will be executed, but our check that the
files are up to date won't overwrite the contents of the tests. This is
useful when a test needs some manual edits to work.

It turns out we weren't actually running them.

---

This ended up turning into a couple of small bug fixes to get the tests
passing:

- We weren't canonicalizing the exec path properly (it sometimes still
had `..` or `.` in it)
- We weren't accepting strings in `process.exit`

There was one failure I couldn't figure out quickly, so I disabled the
test for now, and filed a follow up issue: #24694
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