Skip to content

Commit f8fd39d

Browse files
panyamkeerthanaowtaylor
authored andcommitted
supervisor: timing based test state logic
distinguish between "tests-pending" and "tests-not-running" based on a 6-hour timeout from when tests were triggered. - updated prompt: LLM interprets test_trigger_method from QE database and applies 6 hour rule using last_status_transition_timestamp.
1 parent 60b7c53 commit f8fd39d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

supervisor/testing_analyst.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ def render_prompt(input: InputSchema) -> str:
5151
NEWA will post a comment to the erratum when it has started tests and when they finish.
5252
Read the JIRA issue in those comments to find test results.
5353
54+
Tests can trigger at various points in an issue's lifecycle depending on component
55+
configuration, but always by the time the erratum moves to QE status. If the erratum
56+
is in QE status, and its last_status_transition_timestamp is more than 6 hours ago,
57+
and there's no evidence from erratum comments of tests running or completed, then assume
58+
tests will not run automatically and return tests-not-running.
59+
5460
Call the final_answer tool passing in the state and a comment as follows.
5561
The comment should use JIRA comment syntax.
5662
63+
5764
If the tests need to be started manually:
5865
state: tests-not-running
5966
comment: [explain what needs to be done to start tests]
@@ -73,6 +80,10 @@ def render_prompt(input: InputSchema) -> str:
7380
If the tests are currently running:
7481
state: tests-running
7582
comment: [Provide a brief description of what tests are running and where the results will be]
83+
84+
If tests have not started or completed when they should have (as described above):
85+
state: tests-not-running
86+
comment: [Explain the situation and that manual intervention is needed]
7687
"""
7788
return PromptTemplate(
7889
PromptTemplateInput(schema=InputSchema, template=template)

0 commit comments

Comments
 (0)