Skip to content

Conversation

@getlarge
Copy link
Contributor

@getlarge getlarge commented Aug 30, 2024

Fixes #886

@getlarge getlarge closed this Aug 30, 2024
@getlarge getlarge reopened this Aug 30, 2024
@nx-cloud
Copy link

nx-cloud bot commented Aug 30, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ba803fc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 5 targets

Sent with 💌 from NxCloud.

@getlarge getlarge changed the title Perf parellelize create dependencies processing Perf parallelize create dependencies processing Aug 30, 2024
@getlarge getlarge changed the title Perf parallelize create dependencies processing perf: parallelize create dependencies processing Aug 30, 2024
@getlarge
Copy link
Contributor Author

@AgentEnder, Thanks for reviewing.
I noticed that the e2e tests have been failing for a while, and they are also blocking other PRs.
Would you like some help fixing those tests? I admit we would like to see this PR merged :)

@AgentEnder
Copy link
Member

@AgentEnder, Thanks for reviewing.
I noticed that the e2e tests have been failing for a while, and they are also blocking other PRs.
Would you like some help fixing those tests? I admit we would like to see this PR merged :)

If you have time to look at them, absolutely. Things are a bit hectic on my side so I've not had time to check out what happened.

The failures on main are not all true failures, there's something weird with Nx cloud that I've also not had time to investigate. The pr failures are true failures though, so we should figure out why.

@AgentEnder
Copy link
Member

Those failures look legit now, so that's good 👍

Thanks for getting em fixed up

@getlarge
Copy link
Contributor Author

getlarge commented Sep 1, 2024

It looks like the CI failure on merge was due to nx format:check failing, so I ran nx format --all.

Screenshot 2024-09-01 at 17 35 28

See https://cloud.nx.app/runs/PZ0uH8iPew

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 1, 2024

Comment on lines +392 to +410
const { stdout } = await promisify(execFile)(
this.cliCommand.command,
params,
{
cwd: this.cwd ?? process.cwd(),
},
).catch((e) => {
if ('code' in e && 'stderr' in e) {
throw new Error(
`dotnet execution returned status code ${e.code} \n ${e.message}`,
);
}
throw e;
});
if (stdout.includes('There are no Project to Project')) {
return '';
}
return stdout;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using execFile instead of spawn made the code slightly more readable and hopefully, easier to maintain.

) {
const depGraphFile = join('tmp', 'dep-graph.json');
execSync(`npx nx dep-graph --file ${depGraphFile}`, {
execSync(`npx nx graph --file ${depGraphFile}`, {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

graph is probably more known than dep-graph by Nx newcomers (dep-graph is not documented anymore)

@AgentEnder AgentEnder merged commit 677a644 into nx-dotnet:master Sep 1, 2024
AgentEnder pushed a commit that referenced this pull request Sep 5, 2024
…#892)

* feat(dotnet): create getProjectReferencesAsync method

* feat(core): run createDependencies' internal tasks asynchronously and concurrently

* fix(dotnet): improve DotnetClient output handling in `spawnAsyncAndGetOutput`

* refactor(dotnet): fix and simplify `spawnAsyncAndGetOutput`

* chore: run prettier on whole code base
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2024

🎉 This PR has been released in 2.4.4 🎉

The release is available on:

Please test and let us know if there are any issues 🎉

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2024

🎉 This PR has been released in 2.4.4 🎉

The release is available on:

Please test and let us know if there are any issues 🎉

@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] slow project graph creation when using inferred tasks plugin

2 participants