Skip to content

feat(repo): replace explicit matrix with dynamic parsed from json #30120

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

Merged
merged 10 commits into from
Mar 24, 2025

Conversation

meeroslav
Copy link
Contributor

@meeroslav meeroslav commented Feb 20, 2025

This PR replaces the cumbersome explicit matrix in e2e-matrix.yml with a dynamic matrix built from the input JSON data.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@meeroslav meeroslav self-assigned this Feb 20, 2025
Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Mar 13, 2025 10:22am

Copy link
Contributor

nx-cloud bot commented Feb 20, 2025

View your CI Pipeline Execution ↗ for commit 32a68a2.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded <1s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=4e617... ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-13 10:17:54 UTC

@meeroslav meeroslav marked this pull request as ready for review February 20, 2025 11:48
@meeroslav meeroslav requested a review from a team as a code owner February 20, 2025 11:48
@meeroslav meeroslav requested a review from Cammisuli February 20, 2025 11:48
@meeroslav meeroslav marked this pull request as draft February 20, 2025 11:51
@meeroslav meeroslav changed the title feat(repo): combine two nightly templates and add rspack feat(repo): replace explicit matrix with dynamic parsed from json Feb 20, 2025
@meeroslav meeroslav force-pushed the feat/automate-matrix branch from 0c508cc to 13bf1a9 Compare February 20, 2025 12:05
@meeroslav meeroslav marked this pull request as ready for review February 20, 2025 13:26
@@ -0,0 +1,41 @@
{
"coreProjects": [
Copy link
Collaborator

@FrozenPandaz FrozenPandaz Feb 20, 2025

Choose a reason for hiding this comment

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

Does jq allow for comments in JSON? Can we annotate what these things mean?

Actually, can we skip jq and just parse it out in JS instead? And can we also have that as a ts file that we run via like tsx prepare-matrix.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The jq does not support jsonc format.
We can load and parse it within script, yes.

We can wrap entire logic within prepare-matrix.ts and execute it to retrieve matrix JSON. I wanted to avoid ts files to make things "closer to the metal" but I guess there is benefit on wrapping the entire logic away.

@meeroslav meeroslav force-pushed the feat/automate-matrix branch 8 times, most recently from 42cd7fc to ae66fef Compare March 7, 2025 12:58
@meeroslav meeroslav force-pushed the feat/automate-matrix branch from ae66fef to 3b48f29 Compare March 7, 2025 13:04
@meeroslav meeroslav force-pushed the feat/automate-matrix branch from 3b48f29 to c773fb7 Compare March 7, 2025 13:09
@meeroslav meeroslav requested a review from FrozenPandaz March 7, 2025 13:09
@meeroslav meeroslav dismissed FrozenPandaz’s stale review March 24, 2025 15:48

Change has been implemented and has been blocked for almost a month

@meeroslav meeroslav removed the request for review from FrozenPandaz March 24, 2025 15:49
@meeroslav meeroslav merged commit 30781f7 into master Mar 24, 2025
11 checks passed
@meeroslav meeroslav deleted the feat/automate-matrix branch March 24, 2025 15:56
FrozenPandaz pushed a commit that referenced this pull request Mar 25, 2025
…0120)

This PR replaces the cumbersome explicit matrix in `e2e-matrix.yml` with
a dynamic matrix built from the input JSON data.

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 30781f7)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants