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

Clear missing DSL timeout to allow danger runner to exit when done #1411

Merged
merged 2 commits into from Dec 7, 2023
Merged

Clear missing DSL timeout to allow danger runner to exit when done #1411

merged 2 commits into from Dec 7, 2023

Conversation

normano64
Copy link
Contributor

I noticed that the danger step in CI was always taking more than 10 seconds, the root cause was that nodeCleanup was waiting for the missing DSL timeout before continuing even when the DSL was found

The setTimeout for missing DSL will cause nodeCleanup to wait for it to timeout before exiting even if the DSL was found
@normano64 normano64 changed the title Patch 1 Clear missing DSL timeout to allow danger runner to exit when done Nov 2, 2023
@orta
Copy link
Member

orta commented Dec 7, 2023

This makes sense to me 👍🏻 - great find

@orta orta merged commit ef8d604 into danger:main Dec 7, 2023
2 checks passed
@normano64 normano64 deleted the patch-1 branch December 7, 2023 17:29
if (!foundDSL) {
console.error(chalk.red("Timeout: Failed to get the Danger DSL after 1 second"))
console.error(chalk.red("Timeout: Failed to get the Danger DSL after 10 second"))
Copy link
Contributor

Choose a reason for hiding this comment

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

spelling: "seconds" now

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.

None yet

3 participants