Skip to content

Conversation

@esezen
Copy link
Contributor

@esezen esezen commented Aug 7, 2025

No description provided.

@esezen esezen requested a review from jjl014 as a code owner August 7, 2025 11:04
@esezen esezen changed the title [CDX-150] Add volta config to repo [CDX-180] Add volta config to repo Aug 8, 2025
Copy link
Contributor

@jjl014 jjl014 left a comment

Choose a reason for hiding this comment

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

Apologies for the delay here. The changes look good to me, but I'm not sure if the changes to the package-lock.json should be here though. 🤔

It also looks like the version of node we're pinning to is causing some issues with the tests.

package.json Outdated
"directory": "src/types/tests"
},
"volta": {
"node": "22.18.0",
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 be pinning the node version to 18.13.0 here? It looks like a lot of the tests are failing when using 22.18.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for not including the context here. I messaged Evan on Slack but would have been better to add the details here.

This PR is a copy of Evan's PR here. I merged it then realized the test issue you mentioned. I reverted it and reopened this one. @evanyan13 is going to investigate why tests are failing and if we can figure it out, we are going to keep 22. If not, we can pin to 18. The strange things is, if you run tests module by module, they all pass. Only when you run them all together they fail 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, and that is very odd.. 🤔 Thank you guys for looking into it!

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @jjl014 @esezen
Apologies for the late reply on this.
Took me a while to investigate the issue but I can't seem to figure out why this is happening as the test cases that fail every time is pretty random. But all of them seems to be timeout error:

Error: Timeout of 5000ms exceeded.

I have a suspicion this might be due to how different version of Node handles the Timer module but I would need more time to test and validate this.

Considering that this story has been left hanging for quite a while now, can we just pin 18 for now and backlog this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That works!

Copy link
Contributor

Choose a reason for hiding this comment

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

@evanyan13 Should the volta config in package.json be pinned to v18 so tests pass locally as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @jjl014 @esezen
Yes I have not yet updated the PR.
Looking to do it after seeking confirmation from yall ✅
Will update it now and request for review again

Evan Yan and others added 2 commits September 16, 2025 10:11
@esezen
Copy link
Contributor Author

esezen commented Sep 16, 2025

I approve but can't approve because I am the owner of the PR

Copy link
Contributor

@jjl014 jjl014 left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@esezen esezen merged commit d899c43 into master Sep 16, 2025
7 of 8 checks passed
@esezen esezen deleted the cdx-180-draft-add-volta-configuration-to-repos branch September 16, 2025 17:55
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.

4 participants