Skip to content

Implement test orchestrator#4

Merged
jboddey merged 15 commits into
devfrom
test-orch
Apr 25, 2023
Merged

Implement test orchestrator#4
jboddey merged 15 commits into
devfrom
test-orch

Conversation

@jhughesoti

Copy link
Copy Markdown
Contributor

Add the initial framework for the test orchestrator and a test template.

@jhughesoti jhughesoti requested a review from jboddey April 20, 2023 22:19
jboddey and others added 5 commits April 24, 2023 13:48
Add option to use locally cloned via install or remote via main project network orchestrator
Fix orchestrator exiting only after timeout
Change result format to match closer to design doc
@jboddey jboddey changed the title Test orch Implement test orchestrator Apr 25, 2023
test_module_timeout = time.time() + module.timeout
status = self._get_module_status(module)

while time.time() < test_module_timeout or status == 'exited':

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jhughesbiot Could you take a look at this check. The container status seems to never differ from 'created' even if it is running or exited.

"display_name": "Baseline",
"description": "Baseline test"
},
"network": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why would the test module developer need to change the interface name? Is this too much flexibility?

},
"network": {
"interface": "eth0",
"enable_wan": false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No test module should have WAN as an option. They will have internet access through the gateway. The ip for the test container should just be auto-generated (maybe a fixed IP for all the test containers or just DHCP?)

while time.time() < test_module_timeout and status == 'running':
time.sleep(1)
status = self._get_module_status(module)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's stop/kill the container and send different log message if module overruns the timeout

@jboddey jboddey merged commit fe10e73 into dev Apr 25, 2023
@jboddey jboddey deleted the test-orch branch April 26, 2023 10:23
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