Skip to content

Remove more obsolete code from RunTracker#11408

Merged
gshuflin merged 5 commits into
pantsbuild:masterfrom
gshuflin:run-tracker-changes
Jan 4, 2021
Merged

Remove more obsolete code from RunTracker#11408
gshuflin merged 5 commits into
pantsbuild:masterfrom
gshuflin:run-tracker-changes

Conversation

@gshuflin
Copy link
Copy Markdown
Contributor

@gshuflin gshuflin commented Jan 4, 2021

Problem

RunTracker still has a lot of code paths many years old that have been obsolete for a long time.

Solution

This commit consolidates several methods on RunTracker that are being called in only one place, adds type annotations to functions that did not previously have them, and removing code that pertains to the old Python-only WorkUnit class (unrelated to Rust-level engine workunits).

Result

Nothing in this change should be user-visible.

_stast() and _json_dump_options()

[ci skip-rust]

[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]
And explicitly settings `is_tool` - it will always be False,
since this is a piece of data that is no longer relevant.

[ci skip-rust]

[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]
@gshuflin gshuflin merged commit 9ebc177 into pantsbuild:master Jan 4, 2021
@gshuflin gshuflin deleted the run-tracker-changes branch January 4, 2021 23:52
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