Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pip cache to composite action #411

Closed
TWiStErRob opened this issue Feb 28, 2023 · 6 comments · Fixed by #418
Closed

Add pip cache to composite action #411

TWiStErRob opened this issue Feb 28, 2023 · 6 comments · Fixed by #418
Labels
enhancement New feature or request

Comments

@TWiStErRob
Copy link

TWiStErRob commented Feb 28, 2023

image

Full log with timestamps

https://github.com/TWiStErRob/net.twisterrob.libraries/actions/runs/4295092506/jobs/7485030946

Tue, 28 Feb 2023 16:24:20 GMT Run EnricoMi/publish-unit-test-result-action@v2
Tue, 28 Feb 2023 16:24:20 GMT   with:
Tue, 28 Feb 2023 16:24:20 GMT     check_name: 🔔 Test: Unit Results
Tue, 28 Feb 2023 16:24:20 GMT     comment_mode: off
Tue, 28 Feb 2023 16:24:20 GMT     report_individual_runs: true
Tue, 28 Feb 2023 16:24:20 GMT     test_changes_limit: 0
Tue, 28 Feb 2023 16:24:20 GMT     junit_files: /home/runner/work/net.twisterrob.libraries/net.twisterrob.libraries/**/build/test-results/*/TEST-*.xml
Tue, 28 Feb 2023 16:24:20 GMT     github_token: ***
Tue, 28 Feb 2023 16:24:20 GMT     github_retries: 10
Tue, 28 Feb 2023 16:24:20 GMT     fail_on: test failures
Tue, 28 Feb 2023 16:24:20 GMT     action_fail: false
Tue, 28 Feb 2023 16:24:20 GMT     action_fail_on_inconclusive: false
Tue, 28 Feb 2023 16:24:20 GMT     time_unit: seconds
Tue, 28 Feb 2023 16:24:20 GMT     report_suite_logs: none
Tue, 28 Feb 2023 16:24:20 GMT     ignore_runs: false
Tue, 28 Feb 2023 16:24:20 GMT     job_summary: true
Tue, 28 Feb 2023 16:24:20 GMT     compare_to_earlier_commit: true
Tue, 28 Feb 2023 16:24:20 GMT     pull_request_build: merge
Tue, 28 Feb 2023 16:24:20 GMT     check_run_annotations: all tests, skipped tests
Tue, 28 Feb 2023 16:24:20 GMT     seconds_between_github_reads: 0.25
Tue, 28 Feb 2023 16:24:20 GMT     seconds_between_github_writes: 2.0
Tue, 28 Feb 2023 16:24:20 GMT     json_thousands_separator:  
Tue, 28 Feb 2023 16:24:20 GMT     json_suite_details: false
Tue, 28 Feb 2023 16:24:20 GMT     json_test_case_results: false
Tue, 28 Feb 2023 16:24:20 GMT   env:
Tue, 28 Feb 2023 16:24:20 GMT     JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:24:20 GMT     JAVA_HOME_8_X64: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:24:20 GMT /usr/bin/docker run --name ghcrioenricomipublishunittestresultactionv242_1ca3bf --label 49859c --workdir /github/workspace --rm -e "JAVA_HOME" -e "JAVA_HOME_8_X64" -e "INPUT_CHECK_NAME" -e "INPUT_COMMENT_MODE" -e "INPUT_REPORT_INDIVIDUAL_RUNS" -e "INPUT_TEST_CHANGES_LIMIT" -e "INPUT_JUNIT_FILES" -e "INPUT_GITHUB_TOKEN" -e "INPUT_GITHUB_RETRIES" -e "INPUT_COMMIT" -e "INPUT_COMMENT_TITLE" -e "INPUT_FAIL_ON" -e "INPUT_ACTION_FAIL" -e "INPUT_ACTION_FAIL_ON_INCONCLUSIVE" -e "INPUT_FILES" -e "INPUT_NUNIT_FILES" -e "INPUT_XUNIT_FILES" -e "INPUT_TRX_FILES" -e "INPUT_TIME_UNIT" -e "INPUT_REPORT_SUITE_LOGS" -e "INPUT_DEDUPLICATE_CLASSES_BY_FILE_NAME" -e "INPUT_LARGE_FILES" -e "INPUT_IGNORE_RUNS" -e "INPUT_JOB_SUMMARY" -e "INPUT_COMPARE_TO_EARLIER_COMMIT" -e "INPUT_PULL_REQUEST_BUILD" -e "INPUT_EVENT_FILE" -e "INPUT_EVENT_NAME" -e "INPUT_CHECK_RUN_ANNOTATIONS" -e "INPUT_CHECK_RUN_ANNOTATIONS_BRANCH" -e "INPUT_SECONDS_BETWEEN_GITHUB_READS" -e "INPUT_SECONDS_BETWEEN_GITHUB_WRITES" -e "INPUT_JSON_FILE" -e "INPUT_JSON_THOUSANDS_SEPARATOR" -e "INPUT_JSON_SUITE_DETAILS" -e "INPUT_JSON_TEST_CASE_RESULTS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/net.twisterrob.libraries/net.twisterrob.libraries":"/github/workspace" ghcr.io/enricomi/publish-unit-test-result-action:v2.4.2
Tue, 28 Feb 2023 16:24:21 GMT 2023-02-28 16:24:21 +0000 - publish -  INFO - Available memory to read files: 5.9 GiB
Tue, 28 Feb 2023 16:24:21 GMT 2023-02-28 16:24:21 +0000 - publish -  INFO - Reading JUnit files /github/workspace/**/build/test-results/*/TEST-*.xml (47 files, 114.5 KiB)
Tue, 28 Feb 2023 16:24:21 GMT 2023-02-28 16:24:21 +0000 - publish -  INFO - Finished reading 47 files in 0.01 seconds
Tue, 28 Feb 2023 16:24:22 GMT 2023-02-28 16:24:22 +0000 - publish -  INFO - Publishing success results for commit afb0bbfaabc4e8c317682126185c9f695fb64405
Tue, 28 Feb 2023 16:24:24 GMT 2023-02-28 16:24:24 +0000 - publish -  INFO - Created check https://github.com/TWiStErRob/net.twisterrob.libraries/runs/11661018353
Tue, 28 Feb 2023 16:24:24 GMT 2023-02-28 16:24:24 +0000 - publish -  INFO - Created job summary
Tue, 28 Feb 2023 16:24:24 GMT 2023-02-28 16:24:24 +0000 - publish -  INFO - Commenting on pull requests disabled

image

Full log with timestamps

https://github.com/TWiStErRob/net.twisterrob.libraries/actions/runs/4295092506/jobs/7485030675

Tue, 28 Feb 2023 16:36:13 GMT Run EnricoMi/publish-unit-test-result-action/composite@v2
Tue, 28 Feb 2023 16:36:13 GMT   with:
Tue, 28 Feb 2023 16:36:13 GMT     check_name: 🔔 Test: Instrumentation Results 21
Tue, 28 Feb 2023 16:36:13 GMT     comment_mode: off
Tue, 28 Feb 2023 16:36:13 GMT     report_individual_runs: true
Tue, 28 Feb 2023 16:36:13 GMT     test_changes_limit: 0
Tue, 28 Feb 2023 16:36:13 GMT     junit_files: /Users/runner/work/net.twisterrob.libraries/net.twisterrob.libraries/**/build/outputs/androidTest-results/connected/flavors/debugAndroidTest/TEST-*.xml
Tue, 28 Feb 2023 16:36:13 GMT     github_token: ***
Tue, 28 Feb 2023 16:36:13 GMT     github_retries: 10
Tue, 28 Feb 2023 16:36:13 GMT     fail_on: test failures
Tue, 28 Feb 2023 16:36:13 GMT     action_fail: false
Tue, 28 Feb 2023 16:36:13 GMT     action_fail_on_inconclusive: false
Tue, 28 Feb 2023 16:36:13 GMT     time_unit: seconds
Tue, 28 Feb 2023 16:36:13 GMT     report_suite_logs: none
Tue, 28 Feb 2023 16:36:13 GMT     ignore_runs: false
Tue, 28 Feb 2023 16:36:13 GMT     job_summary: true
Tue, 28 Feb 2023 16:36:13 GMT     compare_to_earlier_commit: true
Tue, 28 Feb 2023 16:36:13 GMT     pull_request_build: merge
Tue, 28 Feb 2023 16:36:13 GMT     check_run_annotations: all tests, skipped tests
Tue, 28 Feb 2023 16:36:13 GMT     seconds_between_github_reads: 0.25
Tue, 28 Feb 2023 16:36:13 GMT     seconds_between_github_writes: 2.0
Tue, 28 Feb 2023 16:36:13 GMT     json_thousands_separator:  
Tue, 28 Feb 2023 16:36:13 GMT     json_suite_details: false
Tue, 28 Feb 2023 16:36:13 GMT     json_test_case_results: false
Tue, 28 Feb 2023 16:36:13 GMT   env:
Tue, 28 Feb 2023 16:36:13 GMT     JAVA_HOME: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:13 GMT     JAVA_HOME_8_X64: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:13 GMT     ANDROID_AVD_HOME: /Users/runner/.android/avd
Tue, 28 Feb 2023 16:36:13 GMT Run echo '##[group]Check for Python3'
Tue, 28 Feb 2023 16:36:13 GMT echo '##[group]Check for Python3'
Tue, 28 Feb 2023 16:36:13 GMT   # we check version here just to execute `python3` with an argument
Tue, 28 Feb 2023 16:36:13 GMT   # on Windows, there is a `python3.exe` that is a proxy to trigger installation from app store
Tue, 28 Feb 2023 16:36:13 GMT   # command `which python3` finds that, but `python3 -V` does not return the version on stdout
Tue, 28 Feb 2023 16:36:13 GMT   if ! which python3 || [[ $(python3 -V) != *"python 3."* && $(python3 -V) != *"Python 3."* ]]
Tue, 28 Feb 2023 16:36:13 GMT   then
Tue, 28 Feb 2023 16:36:13 GMT     if ! which python || [[ $(python -V) != *"python 3."* && $(python -V) != *"Python 3."* ]]
Tue, 28 Feb 2023 16:36:13 GMT     then
Tue, 28 Feb 2023 16:36:13 GMT       echo "::error::No python3 interpreter found. Please setup python before running this action. You could use https://github.com/actions/setup-python."
Tue, 28 Feb 2023 16:36:13 GMT       exit 1
Tue, 28 Feb 2023 16:36:13 GMT     fi
Tue, 28 Feb 2023 16:36:13 GMT   
Tue, 28 Feb 2023 16:36:13 GMT     interpreter="$(which python)"
Tue, 28 Feb 2023 16:36:13 GMT     if [[ ! -e "${interpreter}3" ]]
Tue, 28 Feb 2023 16:36:13 GMT     then
Tue, 28 Feb 2023 16:36:13 GMT       mkdir -p "$RUNNER_TEMP/bin/"
Tue, 28 Feb 2023 16:36:13 GMT       ln -s "$interpreter" "$RUNNER_TEMP/bin/python3"
Tue, 28 Feb 2023 16:36:13 GMT       echo "$RUNNER_TEMP/bin" >> $GITHUB_PATH
Tue, 28 Feb 2023 16:36:13 GMT     fi
Tue, 28 Feb 2023 16:36:13 GMT   fi
Tue, 28 Feb 2023 16:36:13 GMT   echo '##[endgroup]'
Tue, 28 Feb 2023 16:36:15 GMT shell: /bin/bash --noprofile --norc -e -o pipefail {0}
Tue, 28 Feb 2023 16:36:15 GMT env:
Tue, 28 Feb 2023 16:36:15 GMT   JAVA_HOME: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:15 GMT   JAVA_HOME_8_X64: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:15 GMT   ANDROID_AVD_HOME: /Users/runner/.android/avd
Tue, 28 Feb 2023 16:36:15 GMT 
Tue, 28 Feb 2023 16:36:15 GMT Check for Python3
Tue, 28 Feb 2023 16:36:15 GMT   /usr/local/bin/python3
Tue, 28 Feb 2023 16:36:16 GMT Run echo '##[group]Install Python dependencies'
Tue, 28 Feb 2023 16:36:16 GMT echo '##[group]Install Python dependencies'
Tue, 28 Feb 2023 16:36:16 GMT   python3 -m pip install -r $GITHUB_ACTION_PATH/../python/requirements.txt
Tue, 28 Feb 2023 16:36:16 GMT   echo '##[endgroup]'
Tue, 28 Feb 2023 16:36:16 GMT shell: /bin/bash --noprofile --norc -e -o pipefail {0}
Tue, 28 Feb 2023 16:36:16 GMT env:
Tue, 28 Feb 2023 16:36:16 GMT   JAVA_HOME: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:16 GMT   JAVA_HOME_8_X64: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:36:16 GMT   ANDROID_AVD_HOME: /Users/runner/.android/avd
Tue, 28 Feb 2023 16:36:16 GMT 
Tue, 28 Feb 2023 16:36:16 GMT Install Python dependencies
Tue, 28 Feb 2023 16:37:03 GMT   Ignoring dataclasses: markers 'python_version < "3.7"' don't match your environment
Tue, 28 Feb 2023 16:37:06 GMT   Collecting humanize==3.14.0
Tue, 28 Feb 2023 16:37:07 GMT     Downloading humanize-3.14.0-py3-none-any.whl (98 kB)
Tue, 28 Feb 2023 16:37:07 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.4/98.4 kB 669.9 kB/s eta 0:00:00
Tue, 28 Feb 2023 16:37:07 GMT   Collecting junitparser==2.8.0
Tue, 28 Feb 2023 16:37:07 GMT     Downloading junitparser-2.8.0-py2.py3-none-any.whl (11 kB)
Tue, 28 Feb 2023 16:37:08 GMT   Collecting lxml==4.9.1
Tue, 28 Feb 2023 16:37:08 GMT     Downloading lxml-4.9.1.tar.gz (3.4 MB)
Tue, 28 Feb 2023 16:37:09 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 13.6 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:37:35 GMT     Preparing metadata (setup.py): started
Tue, 28 Feb 2023 16:38:28 GMT     Preparing metadata (setup.py): finished with status 'done'
Tue, 28 Feb 2023 16:38:28 GMT   Collecting psutil==5.9.4
Tue, 28 Feb 2023 16:38:28 GMT     Downloading psutil-5.9.4-cp36-abi3-macosx_10_9_x86_64.whl (243 kB)
Tue, 28 Feb 2023 16:38:28 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.5/243.5 kB 1.8 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:29 GMT   Collecting PyGithub==1.56
Tue, 28 Feb 2023 16:38:29 GMT     Downloading PyGithub-1.56-py3-none-any.whl (293 kB)
Tue, 28 Feb 2023 16:38:29 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 293.4/293.4 kB 2.1 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:29 GMT   Collecting requests==2.27.1
Tue, 28 Feb 2023 16:38:29 GMT     Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
Tue, 28 Feb 2023 16:38:29 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 kB 363.9 kB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:30 GMT   Collecting urllib3==1.26.13
Tue, 28 Feb 2023 16:38:30 GMT     Downloading urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Tue, 28 Feb 2023 16:38:30 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 kB 1.0 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:30 GMT   Collecting future
Tue, 28 Feb 2023 16:38:30 GMT     Downloading future-0.18.3.tar.gz (840 kB)
Tue, 28 Feb 2023 16:38:30 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 10.1 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:30 GMT     Preparing metadata (setup.py): started
Tue, 28 Feb 2023 16:38:31 GMT     Preparing metadata (setup.py): finished with status 'done'
Tue, 28 Feb 2023 16:38:31 GMT   Collecting deprecated
Tue, 28 Feb 2023 16:38:31 GMT     Downloading Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Tue, 28 Feb 2023 16:38:31 GMT   Collecting pyjwt>=2.0
Tue, 28 Feb 2023 16:38:31 GMT     Downloading PyJWT-2.6.0-py3-none-any.whl (20 kB)
Tue, 28 Feb 2023 16:38:31 GMT   Collecting pynacl>=1.4.0
Tue, 28 Feb 2023 16:38:31 GMT     Downloading PyNaCl-1.5.0-cp36-abi3-macosx_10_10_universal2.whl (349 kB)
Tue, 28 Feb 2023 16:38:31 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 349.9/349.9 kB 33.0 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:31 GMT   Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests==2.27.1->-r /Users/runner/work/_actions/EnricoMi/publish-unit-test-result-action/v2/composite/../python/requirements.txt (line 8)) (2022.12.7)
Tue, 28 Feb 2023 16:38:31 GMT   Collecting charset-normalizer~=2.0.0
Tue, 28 Feb 2023 16:38:31 GMT     Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Tue, 28 Feb 2023 16:38:31 GMT   Collecting idna<4,>=2.5
Tue, 28 Feb 2023 16:38:31 GMT     Downloading idna-3.4-py3-none-any.whl (61 kB)
Tue, 28 Feb 2023 16:38:31 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 8.9 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:32 GMT   Collecting cffi>=1.4.1
Tue, 28 Feb 2023 16:38:32 GMT     Downloading cffi-1.15.1-cp311-cp311-macosx_10_9_x86_64.whl (179 kB)
Tue, 28 Feb 2023 16:38:32 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 179.2/179.2 kB 3.4 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:32 GMT   Collecting wrapt<2,>=1.10
Tue, 28 Feb 2023 16:38:32 GMT     Downloading wrapt-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl (35 kB)
Tue, 28 Feb 2023 16:38:32 GMT   Collecting pycparser
Tue, 28 Feb 2023 16:38:32 GMT     Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
Tue, 28 Feb 2023 16:38:32 GMT        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 8.3 MB/s eta 0:00:00
Tue, 28 Feb 2023 16:38:32 GMT   Installing collected packages: wrapt, urllib3, pyjwt, pycparser, psutil, lxml, idna, humanize, future, charset-normalizer, requests, junitparser, deprecated, cffi, pynacl, PyGithub
Tue, 28 Feb 2023 16:38:33 GMT     DEPRECATION: lxml is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Tue, 28 Feb 2023 16:38:33 GMT     Running setup.py install for lxml: started
Tue, 28 Feb 2023 16:40:13 GMT     Running setup.py install for lxml: still running...
Tue, 28 Feb 2023 16:41:16 GMT     Running setup.py install for lxml: still running...
Tue, 28 Feb 2023 16:41:24 GMT     Running setup.py install for lxml: finished with status 'done'
Tue, 28 Feb 2023 16:41:25 GMT     DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Tue, 28 Feb 2023 16:41:25 GMT     Running setup.py install for future: started
Tue, 28 Feb 2023 16:41:26 GMT     Running setup.py install for future: finished with status 'done'
Tue, 28 Feb 2023 16:41:26 GMT     WARNING: The script normalizer is installed in '/Library/Frameworks/Python.framework/Versions/3.11/bin' which is not on PATH.
Tue, 28 Feb 2023 16:41:26 GMT     Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Tue, 28 Feb 2023 16:41:26 GMT     WARNING: The script junitparser is installed in '/Library/Frameworks/Python.framework/Versions/3.11/bin' which is not on PATH.
Tue, 28 Feb 2023 16:41:26 GMT     Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Tue, 28 Feb 2023 16:41:27 GMT   Successfully installed PyGithub-1.56 cffi-1.15.1 charset-normalizer-2.0.12 deprecated-1.2.13 future-0.18.3 humanize-3.14.0 idna-3.4 junitparser-2.8.0 lxml-4.9.1 psutil-5.9.4 pycparser-2.21 pyjwt-2.6.0 pynacl-1.5.0 requests-2.27.1 urllib3-1.26.13 wrapt-1.15.0
Tue, 28 Feb 2023 16:41:28 GMT Run echo '##[group]Publish Test Results'
Tue, 28 Feb 2023 16:41:28 GMT echo '##[group]Publish Test Results'
Tue, 28 Feb 2023 16:41:28 GMT   python3 $GITHUB_ACTION_PATH/../python/publish_test_results.py
Tue, 28 Feb 2023 16:41:28 GMT   echo '##[endgroup]'
Tue, 28 Feb 2023 16:41:28 GMT shell: /bin/bash --noprofile --norc -e -o pipefail {0}
Tue, 28 Feb 2023 16:41:28 GMT env:
Tue, 28 Feb 2023 16:41:28 GMT   JAVA_HOME: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:41:28 GMT   JAVA_HOME_8_X64: /Users/runner/hostedtoolcache/Java_Zulu_jdk/8.0.362-9/x64
Tue, 28 Feb 2023 16:41:28 GMT   ANDROID_AVD_HOME: /Users/runner/.android/avd
Tue, 28 Feb 2023 16:41:28 GMT   GITHUB_TOKEN: ***
Tue, 28 Feb 2023 16:41:28 GMT   GITHUB_RETRIES: 10
Tue, 28 Feb 2023 16:41:28 GMT   COMMIT: 
Tue, 28 Feb 2023 16:41:28 GMT   CHECK_NAME: 🔔 Test: Instrumentation Results 21
Tue, 28 Feb 2023 16:41:28 GMT   COMMENT_TITLE: 
Tue, 28 Feb 2023 16:41:28 GMT   COMMENT_MODE: off
Tue, 28 Feb 2023 16:41:28 GMT   FAIL_ON: test failures
Tue, 28 Feb 2023 16:41:28 GMT   ACTION_FAIL: false
Tue, 28 Feb 2023 16:41:28 GMT   ACTION_FAIL_ON_INCONCLUSIVE: false
Tue, 28 Feb 2023 16:41:28 GMT   FILES: 
Tue, 28 Feb 2023 16:41:28 GMT   JUNIT_FILES: /Users/runner/work/net.twisterrob.libraries/net.twisterrob.libraries/**/build/outputs/androidTest-results/connected/flavors/debugAndroidTest/TEST-*.xml
Tue, 28 Feb 2023 16:41:28 GMT   NUNIT_FILES: 
Tue, 28 Feb 2023 16:41:28 GMT   XUNIT_FILES: 
Tue, 28 Feb 2023 16:41:28 GMT   TRX_FILES: 
Tue, 28 Feb 2023 16:41:28 GMT   TIME_UNIT: seconds
Tue, 28 Feb 2023 16:41:28 GMT   REPORT_INDIVIDUAL_RUNS: true
Tue, 28 Feb 2023 16:41:28 GMT   REPORT_SUITE_LOGS: none
Tue, 28 Feb 2023 16:41:28 GMT   DEDUPLICATE_CLASSES_BY_FILE_NAME: 
Tue, 28 Feb 2023 16:41:28 GMT   LARGE_FILES: 
Tue, 28 Feb 2023 16:41:28 GMT   IGNORE_RUNS: false
Tue, 28 Feb 2023 16:41:28 GMT   COMPARE_TO_EARLIER_COMMIT: true
Tue, 28 Feb 2023 16:41:28 GMT   PULL_REQUEST_BUILD: merge
Tue, 28 Feb 2023 16:41:28 GMT   EVENT_FILE: 
Tue, 28 Feb 2023 16:41:28 GMT   EVENT_NAME: 
Tue, 28 Feb 2023 16:41:28 GMT   TEST_CHANGES_LIMIT: 0
Tue, 28 Feb 2023 16:41:28 GMT   CHECK_RUN_ANNOTATIONS: all tests, skipped tests
Tue, 28 Feb 2023 16:41:28 GMT   CHECK_RUN_ANNOTATIONS_BRANCH: 
Tue, 28 Feb 2023 16:41:28 GMT   SECONDS_BETWEEN_GITHUB_READS: 0.25
Tue, 28 Feb 2023 16:41:28 GMT   SECONDS_BETWEEN_GITHUB_WRITES: 2.0
Tue, 28 Feb 2023 16:41:28 GMT   JSON_FILE: 
Tue, 28 Feb 2023 16:41:28 GMT   JSON_THOUSANDS_SEPARATOR:  
Tue, 28 Feb 2023 16:41:28 GMT   JSON_SUITE_DETAILS: false
Tue, 28 Feb 2023 16:41:28 GMT   JSON_TEST_CASE_RESULTS: false
Tue, 28 Feb 2023 16:41:28 GMT   JOB_SUMMARY: true
Tue, 28 Feb 2023 16:41:28 GMT   ROOT_LOG_LEVEL: 
Tue, 28 Feb 2023 16:41:28 GMT   LOG_LEVEL: 
Tue, 28 Feb 2023 16:41:28 GMT 
Tue, 28 Feb 2023 16:41:28 GMT Publish Test Results
Tue, 28 Feb 2023 16:41:29 GMT   2023-02-28 16:41:29 +0000 - publish -  INFO - Available memory to read files: 11.3 GiB
Tue, 28 Feb 2023 16:41:29 GMT   2023-02-28 16:41:29 +0000 - publish -  INFO - Reading JUnit files /Users/runner/work/net.twisterrob.libraries/net.twisterrob.libraries/**/build/outputs/androidTest-results/connected/flavors/debugAndroidTest/TEST-*.xml (3 files, 39.9 KiB)
Tue, 28 Feb 2023 16:41:29 GMT   2023-02-28 16:41:29 +0000 - publish -  INFO - Finished reading 3 files in 0.00 seconds
Tue, 28 Feb 2023 16:41:29 GMT   2023-02-28 16:41:29 +0000 - publish -  INFO - Publishing success results for commit afb0bbfaabc4e8c317682126185c9f695fb64405
Tue, 28 Feb 2023 16:41:32 GMT   2023-02-28 16:41:32 +0000 - publish -  INFO - Created check https://github.com/TWiStErRob/net.twisterrob.libraries/runs/11661491510
Tue, 28 Feb 2023 16:41:32 GMT   2023-02-28 16:41:32 +0000 - publish -  INFO - Created job summary
Tue, 28 Feb 2023 16:41:32 GMT   2023-02-28 16:41:32 +0000 - publish -  INFO - Commenting on pull requests disabled

Would it be possible to add an action/cache@v2 inside the composite action to prevent installing the same deps over and over again?

@EnricoMi
Copy link
Owner

EnricoMi commented Mar 2, 2023

Indeed, now that composite actions can reference other actions (they did NOT allow that back when I created the composite action, imagine that!), it could cache the packages.

@EnricoMi EnricoMi changed the title Composite action is very slow Ad pip cache to composite action Mar 2, 2023
@EnricoMi EnricoMi added the enhancement New feature or request label Mar 2, 2023
@EnricoMi EnricoMi changed the title Ad pip cache to composite action Add pip cache to composite action Mar 2, 2023
@EnricoMi
Copy link
Owner

EnricoMi commented Mar 2, 2023

I think I'll move the entire code of the Slow startup of composite action section into the composite action. I'm wondering what happens if that cache action is run twice...

@EnricoMi
Copy link
Owner

I have added pip caching to the composite action. Can you please test this from master?

uses: EnricoMi/publish-unit-test-result-action/composite@master

@TWiStErRob
Copy link
Author

Running TWiStErRob/net.twisterrob.libraries#38, I guess I'll have to run it twice to see the full effect.

@EnricoMi
Copy link
Owner

EnricoMi commented Mar 14, 2023

The cache is not being stored because your job fails (please keep it that way!). I'll make the composite action to always save the cache: #422.

@EnricoMi
Copy link
Owner

This has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants