Skip to content

Conversation

@calvinp0
Copy link
Member

@calvinp0 calvinp0 commented Jan 7, 2026

Replaces the import-time check for the AutoTST module with a runtime check for the configured AutoTST Python executable, providing a clearer error message if it is missing. Original code was attempting to import AutoTST scripts when in reality we use AutoTST as a subprocess, so it did not make sense to be importing the actual scripts.

Replaces the import-time check for the AutoTST module with a runtime check for the configured AutoTST Python executable, providing a clearer error message if it is missing. Original code was attempting to import AutoTST scripts when in reality we use AutoTST as a subprocess, so it did not make sense to be importing the actual scripts.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves AutoTST dependency handling by replacing an import-time module check with a runtime check for the AutoTST Python executable path. This is more appropriate since AutoTST is invoked as a subprocess rather than imported directly as a Python module.

Key Changes:

  • Removed the HAS_AUTOTST import-time flag and the attempt to import autotst.reaction.Reaction
  • Added a runtime check in execute_incore() that validates the AUTOTST_PYTHON executable path before running AutoTST as a subprocess
  • Updated error handling to provide clearer guidance about configuring the tst_env environment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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