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

[update-engine] a few improvements to event buffers #4164

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Sep 28, 2023

  • For failures, track the parent key that failed (similar to aborts).
  • Track the last root event index that causes data for a step to be
    updated -- we're going to use this in the line-based displayer.
  • Add tests.

Depends on #4163.

Created using spr 1.3.4
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
@sunshowers sunshowers force-pushed the sunshowers/spr/update-engine-a-few-improvements-to-event-buffers branch from e4b53b7 to aaa8c55 Compare October 10, 2023 21:38
@@ -744,47 +784,83 @@ impl<'buf, S: StepSpec> EventBufferSteps<'buf, S> {
pub struct EventBufferStepData<S: StepSpec> {
step_info: StepInfo<NestedSpec>,
sort_key: StepSortKey,
// XXX: nest_level and total_steps are common to each execution, but are
Copy link
Contributor

Choose a reason for hiding this comment

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

I think ideally I would tie them together if they always exist together and get mutated together, but I wouldn't hold the PR for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They always exist together but are immutable properties.

update-engine/src/buffer.rs Outdated Show resolved Hide resolved
sunshowers and others added 3 commits October 12, 2023 15:34
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
@sunshowers sunshowers force-pushed the sunshowers/spr/update-engine-a-few-improvements-to-event-buffers branch from d8312dd to 9ce8012 Compare October 12, 2023 22:36
@sunshowers sunshowers changed the base branch from sunshowers/spr/main.update-engine-a-few-improvements-to-event-buffers to main October 12, 2023 22:36
@sunshowers sunshowers merged commit 078e1f0 into main Oct 13, 2023
@sunshowers sunshowers deleted the sunshowers/spr/update-engine-a-few-improvements-to-event-buffers branch October 13, 2023 03:11
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.

3 participants