Merge branch 'development' into test_artifact_collection

Signed-off-by: evanchia <evanchia@amazon.com>
This commit is contained in:
evanchia
2021-12-02 11:20:43 -08:00
2661 changed files with 61328 additions and 33906 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ INSTALL
It is recommended to set up these these tools with Lumberyard's CMake build commands.
Assuming CMake is already setup on your operating system, below are some sample build commands:
cd /path/to/lumberyard/dev/
mkdir windows_vs2019
cd windows_vs2019
mkdir windows
cd windows
cmake -E time cmake --build . --target ALL_BUILD --config profile
To manually install the project in development mode using your own installed Python interpreter:
@@ -277,7 +277,7 @@ class AbstractResourceLocator(object):
def get_shader_compiler_path(self):
"""
Return path to shader compiler executable
ex. engine_root/dev/windows_vs2019/bin/profile/CrySCompileServer
ex. engine_root/dev/windows/bin/profile/CrySCompileServer
:return: path to CrySCompileServer executable
"""
return os.path.join(self.build_directory(), 'CrySCompileServer')
@@ -313,7 +313,7 @@ class AbstractResourceLocator(object):
def shader_compiler_config_file(self):
"""
Return path to the Shader Compiler config file
ex. engine_root/dev/windows_vs2019/bin/profile/config.ini
ex. engine_root/dev/windows/bin/profile/config.ini
:return: path to the Shader Compiler config file
"""
return os.path.join(self.build_directory(), 'config.ini')
@@ -321,7 +321,7 @@ class AbstractResourceLocator(object):
def shader_cache(self):
"""
Return path to the shader cache for the current build
ex. engine_root/dev/windows_vs2019/bin/profile/Cache
ex. engine_root/dev/windows/bin/profile/Cache
:return: path to the shader cache for the current build
"""
return os.path.join(self.build_directory(), 'Cache')
@@ -119,7 +119,7 @@ class AbstractWorkspaceManager:
def clear_bin(self):
"""
Clears the relative Bin folder (i.e. engine_root/dev/windows_vs2019/bin/profile/)
Clears the relative Bin folder (i.e. engine_root/dev/windows/bin/profile/)
:return: None
"""
if os.path.exists(self.paths.build_directory()):
@@ -91,7 +91,7 @@ class Launcher(object):
open(os.path.join(self.workspace.paths.project_log(), artifact), 'w').close() # clear it
log.info(f"Clearing pre-existing artifact {artifact} from calling Launcher.setup()")
except PermissionError:
log.warn(f'Unable to remove artifact: {artifact}, skipping.')
log.warning(f'Unable to remove artifact: {artifact}, skipping.')
pass
# In case this is the first run, we will create default logs to prevent the logmonitor from not finding the file
@@ -304,6 +304,8 @@ class EditorTestSuite():
use_null_renderer = True
# Maximum time for a single editor to stay open on a shared test
timeout_editor_shared_test = 300
# Flag to determine whether to use new prefab system or use deprecated slice system for this test suite
enable_prefab_system = True
# Function to calculate number of editors to run in parallel, this can be overriden by the user
@staticmethod
@@ -742,7 +744,11 @@ class EditorTestSuite():
test_cmdline_args += ["--attach-debugger"]
if test_spec.wait_for_debugger:
test_cmdline_args += ["--wait-for-debugger"]
if self.enable_prefab_system:
test_cmdline_args += ["--regset=/Amazon/Preferences/EnablePrefabSystem=true"]
else:
test_cmdline_args += ["--regset=/Amazon/Preferences/EnablePrefabSystem=false"]
# Cycle any old crash report in case it wasn't cycled properly
editor_utils.cycle_crash_report(run_id, workspace)
@@ -805,7 +811,11 @@ class EditorTestSuite():
test_cmdline_args += ["--attach-debugger"]
if any([t.wait_for_debugger for t in test_spec_list]):
test_cmdline_args += ["--wait-for-debugger"]
if self.enable_prefab_system:
test_cmdline_args += ["--regset=/Amazon/Preferences/EnablePrefabSystem=true"]
else:
test_cmdline_args += ["--regset=/Amazon/Preferences/EnablePrefabSystem=false"]
# Cycle any old crash report in case it wasn't cycled properly
editor_utils.cycle_crash_report(run_id, workspace)
@@ -22,8 +22,7 @@ installed on your system.
INSTALL
-----------
It is recommended to set up these these tools with the lmbr_test tool Lumberyard's root directory:
lmbr_test pysetup install
Installation of these tools happen automatically when get_python and cmake is run.
To manually install the project in development mode:
python -m pip install -e .