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

Refactored dartdoc post-processing. #7553

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Mar 12, 2024

  • Maybe consider different timeouts for analysis #7430
  • decreased dartdoc timeout as even large packages can manage to get it done within 30 minutes
  • dart post-processing may be skipped entirely based on the time spent in pana analysis
  • processing of files and archive building is in separate isolates, running in parallel

@isoos isoos requested review from jonasfj and sigurdm March 12, 2024 14:53

_log.info('Finished .tar.gz archive');
await Future.wait([
Copy link
Contributor

Choose a reason for hiding this comment

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

What a shame Isolate.run doesn't support timeouts or some easy way to kill the isolate after a timeout...

Maybe we have to write that abstraction ourselves.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I can add a timer that just kills the isolate from the inside... maybe in a follow-up PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah - that would work!

Copy link
Contributor

Choose a reason for hiding this comment

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

...Unless we have sync tasks blocking inside the isolate...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe we don't need this at all, as worst case the parent process will kill pana_wrapper after the set timeout.

@isoos isoos merged commit e299cf6 into dart-lang:master Mar 12, 2024
31 checks passed
@isoos isoos deleted the post-processing branch March 12, 2024 15:26
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.

2 participants