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

scheduler: remove status field #10520

Closed
wants to merge 3 commits into from
Closed

Conversation

pmwhite
Copy link
Collaborator

@pmwhite pmwhite commented May 13, 2024

Based off of #10519

Previous changes have moved all the useful information from the status field into other fields, such as cancel and invalidation, so now we can get rid of the field altogether.

The accumulation of the invalidation is orthogonal to what the build
status is. Regardless of how the build progresses, we should always
continually combine new build input change into the current
invalidation, and we should only set the invalidation to empty when we
also call Memo.reset with the current invalidation.

At the same time, it also makes sense to cleanup the handling of the
"build_input_change" ivar. There is no need for it to be an option that
is initialized on-demand, since it is easy and cheap to just create an
initial ivar. In addition, we shouldn't care what the current build
status is when waiting for a file to change. (I suspect that some of the
reason for the complication is due to the "--react-to-insignificant-file changes"
flag that no longer exists.

This patch doesn't claim to fix any bugs; it's just intended as a code
cleanup.

Signed-Off-By: Philip White <code@trailingwhite.space>
@pmwhite pmwhite marked this pull request as draft May 13, 2024 12:17
Philip White added 2 commits May 13, 2024 08:38
It doesn't need to be there because we already have `t.cancel`.

Signed-Off-By: Philip White <code@trailingwhite.space>
Previous changes have moved all the useful information from the status
field into other fields, such as `cancel` and `invalidation`, so now we
can get rid of the field altogether.

Signed-Off-By: Philip White <code@trailingwhite.space>
@pmwhite
Copy link
Collaborator Author

pmwhite commented May 16, 2024

I included the commits in #10519, so closing this PR.

@pmwhite pmwhite closed this May 16, 2024
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

1 participant