Added ability for NetSoakTest project to dump stats after a time dela…#15
Added ability for NetSoakTest project to dump stats after a time dela…#15AMZN-scspaldi wants to merge 10 commits intodevelopmentfrom
Conversation
…y. Modified jenkins job to automatically start ServerLauncher and run NetSoakTest project for 30 minutes before dumping stats. Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Scripts/build/Jenkins/Jenkinsfile
Outdated
|
|
||
| // Launch the project, which automatically starts the tests | ||
| launch_command += "NetSoakTest.ServerLauncher --soak_runtime=1800000 --soak_mode=loopback --rhi=null" | ||
| dir("${workspace}/${ENGINE_REPOSITORY_NAME}") { | ||
| PlatformSh(launch_command, "Running NetSoakTest project") | ||
| } | ||
|
|
There was a problem hiding this comment.
Build() is used to execute the command for each step in the pipe. For example, in the profile_vs2019_pipe it will run the command for profile_vs2019, test_cpu_profile_vs2019, etc. So wanted to check when is the desired time to launch netsoaktest in the pipe, so we can determine the best place to run this. Also wanted to check if the netsoaktest is meant to be launched for each platform?
There was a problem hiding this comment.
I'm double-checking but I think this is the expectation for the various build flavors.
However, from my understanding this should only run on Windows for now. On Jenkins I don't see a split by platform though, is this job already running on multiple platforms?
There was a problem hiding this comment.
I see, if it's meant to be ran on each build step on all platforms then this is the appropriate place for it. Since the project jobs utilize the engine-centric workflow, the actually job configs are pulled from the build_config.json files in the o3de repo.
This is the one for windows: https://github.com/o3de/o3de/blob/development/scripts/build/Platform/Windows/build_config.json
The jenkinsfile in this repo (o3de-netsoaktest) utilizes these configs to run build() for each platform. If we need to limit where NetSoakTest.ServerLauncher is launched we can setup a separate stage or alternatively leave it here then add a condition where its only launched for certain platforms.
There was a problem hiding this comment.
I was mistaken on this. It only supports the server launcher target and it should only run its tests against Windows / Linux server target. The rest of the platforms are just build checks.
So it sounds like we'll want to add a condition where it is only launched for certain platforms and targets. Is there any example of one of these conditions somewhere?
There was a problem hiding this comment.
There something similar here: https://github.com/o3de/o3de/blob/development/scripts/build/Jenkins/Jenkinsfile#L588
Instead of parameters you would use platform and type. Platform names are generated from the folder names here: https://github.com/o3de/o3de/tree/development/scripts/build/Platform
Type is the targets listed here: https://github.com/o3de/o3de/blob/development/scripts/build/Platform/Windows/build_config.json (example using windows) Also the names of the targets are listed in the pipeline view: https://jenkins.build.o3de.org/blue/organizations/jenkins/o3de-netsoaktest/detail/development/6/
There was a problem hiding this comment.
Also groovy may throw a syntax error here. May need to replace += to = since this is the first time launch_command is being defined.
There was a problem hiding this comment.
I have now incorporated both of these points.
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
Signed-off-by: scspaldi <scspaldi@amazon.com>
- Move command into dir block to run in the correct workspace path - Avoid running NetSoakTest on validation job - Update path based on pipeline type Signed-off-by: brianherrera <briher@amazon.com>
…y. Modified jenkins job to automatically start ServerLauncher and run NetSoakTest project for 30 minutes before dumping stats.
Signed-off-by: scspaldi scspaldi@amazon.com