Skip to content

[copybara] allwpilib to mostrobotpy - #309

Open
pjreiniger wants to merge 3 commits into
robotpy:mainfrom
pjreiniger:copybara_allwpilib_to_mostrobotpy
Open

[copybara] allwpilib to mostrobotpy#309
pjreiniger wants to merge 3 commits into
robotpy:mainfrom
pjreiniger:copybara_allwpilib_to_mostrobotpy

Conversation

@pjreiniger

Copy link
Copy Markdown
Contributor

GitOrigin-RevId: ae765842dd8cc0dd3359ebdd735106f42d13c80d

robotpy-bot and others added 3 commits August 21, 2026 13:58
@virtuald

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c909b667f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 119 to 121
# Cleanup WPILib globals
# -> preferences, SmartDashboard, MotorSafety
# -> preferences and MotorSafety
wpilib.simulation._simulation._reset_wpilib_simulation_data()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reset telemetry and tunable registries between robot tests

When a robot fixture publishes a Selectable, command, or getter-backed tunable, the new global tunable registry retains that object (and often its subsystems and HAL resources) after del robot; this teardown no longer clears dashboard state and does not reset either new registry before gc.collect() and the NetworkTables reset. A subsequent test can therefore encounter unreleased HAL handles, duplicate paths that keep the previous robot's value, or backends tied to the reset NT instance. Reset TunableRegistry and TelemetryRegistry before garbage collection and NetworkTables shutdown.

Useful? React with 👍 / 👎.

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