diff --git a/ci/build.yml b/ci/build.yml index 80d86c7..61d79b9 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -71,21 +71,21 @@ jobs: # ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate' # INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg' - # ubuntu2204_gcc12: - # AGENT: 'ubuntu-22.04' - # COMPILER: gcc - # COMPILER_VERSION: 12 - # SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)' - # ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate' - # INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg' + ubuntu2204_gcc12: + AGENT: 'ubuntu-22.04' + COMPILER: gcc + COMPILER_VERSION: 12 + SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)' + ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate' + INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg' - # ubuntu2204_clang15: - # AGENT: 'ubuntu-22.04' - # COMPILER: clang - # COMPILER_VERSION: 15 - # SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)' - # ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate' - # INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg' + ubuntu2204_clang15: + AGENT: 'ubuntu-22.04' + COMPILER: clang + COMPILER_VERSION: 15 + SETUP_BUILD_ENV: 'echo $(COMPILER) $(COMPILER_VERSION)' + ACTIVATE_VIRTUAL_ENV: 'source .venv/bin/activate' + INSTALL_FFMPEG: 'sudo apt-get install -y ffmpeg' macos14_clang15: AGENT: 'macOS-14' diff --git a/scripts/tests/generate_test_data.py b/scripts/tests/generate_test_data.py index c306c30..e304101 100644 --- a/scripts/tests/generate_test_data.py +++ b/scripts/tests/generate_test_data.py @@ -24,6 +24,12 @@ APPLICATION_NAME = "Test data generator" +def parse(): + parser = argparse.ArgumentParser(APPLICATION_NAME, formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser.add_argument("--directory", help="Directory where output files will be generated", required=False, default=pathlib.Path("data")) + parser.add_argument("--executable", help='Path to the ffmpeg executable', required=False, default='ffmpeg') + return parser.parse_args() + def ffmpeg_generate_video_commands(ffmpeg_executable, output_dir, video_formats): commands = [] for format in video_formats: @@ -48,12 +54,6 @@ def ffmpeg_generate_video_commands(ffmpeg_executable, output_dir, video_formats) return commands -def parse(): - parser = argparse.ArgumentParser(APPLICATION_NAME, formatter_class=argparse.ArgumentDefaultsHelpFormatter) - parser.add_argument("--directory", help="Directory where output files will be generated", required=False, default=pathlib.Path("data")) - parser.add_argument("--executable", help='Path to the ffmpeg executable', required=False, default='ffmpeg') - return parser.parse_args() - def create_file(cmd): print(cmd) @@ -88,13 +88,14 @@ def main(): check_executable(executable) - with concurrent.futures.ThreadPoolExecutor(max_workers=sys.maxsize) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: commands = ffmpeg_generate_video_commands(executable, output_dir, video_formats) futures = {executor.submit(create_file, cmd): cmd for cmd in commands} for future in concurrent.futures.as_completed(futures): if future.result() != 0: print(f"Error running {APPLICATION_NAME} - Execution finished") return future.result() + print(f"{APPLICATION_NAME} - Execution finished") return 0