SAT: display git commit hash after running SAT #4534
Labels
area/connectors
Connector related issues
area/live-tests
autoteam
lang/python
team/extensibility
type/enhancement
New feature or request
Tell us about the problem you're trying to solve
Sometimes we want to accept a contributor's PR before necessarily being able to run CI ourselves (e.g: if we are still standing up the sandbox environment). To do this, we ask them to provide evidence of SAT succeeding locally.
Describe the solution you’d like
I want to display the hash of the HEAD commit after running SAT successfully. This should not break if there is no currently available Git commit/running outside of a git repository.
Implementation advice
It seems we can use
def pytest_sessionstart()
placed inconftest.py
in SAT's root directory to display the Git Hash. We can probably also use something else like a contextmanageryield
style statement (see SO link at beginning of sentence). IDK if that's the recommended way now in Python.The text was updated successfully, but these errors were encountered: