Skip to content

Conversation

@matthargett
Copy link
Contributor

@matthargett matthargett commented Jun 3, 2025

This expands test coverage on Windows and Linux CI, validating the node-add on integration test.

Some cross-platform utilities/abstractions were needed to fix platform-specific issues, but consuming code is still clean and readable.

Added a unit-level test to have a cheap way to validate the pathing and shell-specific commands don't break again in the future.

@changeset-bot
Copy link

changeset-bot bot commented Jun 3, 2025

⚠️ No Changeset found

Latest commit: 1f93a0d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@matthargett matthargett requested a review from kraenhansen June 3, 2025 04:46
@kraenhansen
Copy link
Collaborator

I'm certain a lot of effort went into this - which is great.

While I'm 100% sure we want to support and test consuming the packages on MacOS, Windows and Linux, I'm less convinced that we want to support development of the packages across platforms.

I've been burned by this approach in the past. It comes with significant complexity (as witnessed by these effort put into this PR) and I've found it to be brittle in past experiences too. If I'm not developing on Windows, there's little incentive to keep it building when stuff gets tough and eventually breaks.

I'd like to open up the discussion for the other folks at Callstack before committing to this.

process.exit(1);
}

const fullCommand = `${baseCommand} ${platformFlags}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could extend the CLI to have an --all-supported flag which would include all triplets which are supported by the platform. I think that would make this a bit more DRY, solve the immediate issue and provide a feature for users too.

@kraenhansen
Copy link
Collaborator

I believe I'll be addressing this in #119 and #118 🤞

@matthargett matthargett deleted the moar-windows-tests branch June 11, 2025 19:57
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.

3 participants