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

Run after-restart hooks before eval commands and test suites #256

Conversation

9999years
Copy link
Member

Fixes an inconsistency between after-startup and after-restart hooks

Copy link

linear bot commented May 20, 2024

@github-actions github-actions bot added the patch Bug fixes or non-functional changes label May 20, 2024
@9999years 9999years marked this pull request as ready for review May 21, 2024 21:38
self.run_hooks(event, log).await?;
}

let event = events[N - 1];
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to enforce that N is greater than 0?

Alternatively, another way to guarantee the same thing is to split the events argument into two arguments: events: [LifecycleEvent] (for all but the last event) and event: LifecycleEvent (for the very last event). This is essentially a poor person's encoding of a non-empty list.

I don't feel strongly about this, though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not possible yet apparently :(

@9999years 9999years merged commit 764a87a into main May 21, 2024
30 checks passed
@9999years 9999years deleted the rebeccat/dux-2307-run-after-restart-hooks-before-eval-commands-and-test-suites branch May 21, 2024 21:58
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Bug fixes or non-functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants