Open urswiss opened 2 years ago
Wrote out installed versions to /home/runner/_work/_temp/openshift-bin/openshift-clients-installed.json
It seems this is the last step of the tools installer. Not sure why it stuck there for more than 3 minutes :thinking:
Will it be possible for you to record your screen after setting the secret ACTIONS_STEP_DEBUG
to true
Current runner version: '2.284.0' Runner name: 'github-actions-runner-basic-3-4r7q5' Runner group name: 'Default' Machine name: 'github-actions-runner-basic-3-4r7q5' GITHUB_TOKEN Permissions Actions: write Checks: write Contents: write Deployments: write Issues: write Metadata: read OrganizationPackages: write Packages: write PullRequests: write RepositoryProjects: write SecurityEvents: write Statuses: write
Runner is running behind proxy server 'http://egress-http-proxy-external:8080' for all HTTP requests. Runner is running behind proxy server 'http://egress-http-proxy-external:8080' for all HTTPS requests. Prepare workflow directory
Prepare all required actions Getting action download info Download action repository 'redhat-actions/openshift-tools-installer@v1' (SHA:99744decfe48e62f0304d622c34bce5f1d045858)
Run redhat-actions/openshift-tools-installer@v1 with: oc: 4 github_pat: *** source: mirror skip_cache: false env: REPOSITORY_NAME: test-openshift-tools-installer Installing oc matching version "4" ℹ️ Tools will be installed from "mirror".
🔎 Searching for a version of oc satisfying the range ">=4.0.0 <5.0.0-0" that was input as "4" Download directory for oc is https://mirror.openshift.com/pub/openshift-v4/clients/ocp/
Max oc version satisfying >=4.0.0 <5.0.0-0 is 4.9.15
Current operating system is linux
Selecting openshift-client-linux-4.9.15.tar.gz
⏩ GitHub enterprise detected; skipping cache. For more information, see https://github.com/actions/cache/issues/505 ⬇️ Downloading 47.12MB https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.15/openshift-client-linux-4.9.15.tar.gz ...
Downloaded openshift-client-linux-4.9.15.tar.gz in 0.8s
⬇️ Downloading hash file https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.15/sha256sum.txt
sha256 verification of openshift-client-linux-4.9.15.tar.gz succeeded.
/usr/bin/tar xz -v --warning=no-unknown-keyword -C /home/runner/_work/_temp/8994c8d4-1724-4c89-9f30-4e2444d4aeb7 -f /home/runner/_work/_temp/4cfac7f761abcdd906231673ce000d05-openshift-client-linux-4.9.15.tar.gz README.md oc kubectl Removed /home/runner/_work/_temp/4cfac7f761abcdd906231673ce000d05-openshift-client-linux-4.9.15.tar.gz Current architecture is amd64
Using temporary directory for storage 📁 CLIs will be downloaded to /home/runner/_work/_temp/openshift-bin Added /home/runner/_work/_temp/openshift-bin to PATH
oc installed into /home/runner/_work/_temp/openshift-bin/oc /home/runner/_work/_temp/openshift-bin/oc version --client Client Version: 4.9.15 ⏩ GitHub enterprise detected; skipping cache. For more information, see https://github.com/actions/cache/issues/505 ✅ Successfully installed oc 4.9.15.
✅ Successfully installed 1/1 client:
::set-output name=installed::{%0A "oc": {%0A "fromCache": false,%0A "installedPath": "/home/runner/_work/_temp/openshift-bin/oc",%0A "url": "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.15/openshift-client-linux-4.9.15.tar.gz",%0A "version": "4.9.15"%0A }%0A}
Wrote out installed versions to /home/runner/_work/_temp/openshift-bin/openshift-clients-installed.json
Cleaning up orphan processes
@urswiss won't it be possible for you to share the screen recording, as I'm not able to find out on which step it is taking time?
I tried, but since I have a company Windows laptop the recording feature seems to be blocked. Anyway, around 90 % of the time is used after the statement Wrote out installed versions to /home/runner/_work/_temp/openshift-bin/openshift-clients-installed.json
I just found out that redhat-actions/oc-installer@v1
runs in just 2 seconds. So we are going to use this action for now, even though it's not optimal, as the binaries are from December 2020 and are no longer updated (at least according to the README).
This is still an issue with redhat-actions/openshift-tools-installer@v1.12
and oc: 4.15.11
. It takes on our side around 3 minutes. Are there any workarounds to get the latest oc version installed quickly?
Also got the same problem when using the action on GHES. Any news or any workaround to improve the situation?
We are using it like this (@v1
should pick the latest 1.x release):
- name: Install OpenShift CLI
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "latest"
Version
v1
Describe the bug
Since #58 was fixed we face the issue that the openshift-tools-installer runs around 3 minutes (compared to around 16 seconds before).
Steps to reproduce, workflow links, screenshots
On a Github Enterprise instance, create and run the below action:
Output
Running this action results into the below output.
Setup Job (2s)
Current runner version: '2.284.0' Runner name: 'github-actions-runner-basic-3-4r7q5' Runner group name: 'Default' Machine name: 'github-actions-runner-basic-3-4r7q5' GITHUB_TOKEN Permissions Actions: write Checks: write Contents: write Deployments: write Issues: write Metadata: read OrganizationPackages: write Packages: write PullRequests: write RepositoryProjects: write SecurityEvents: write Statuses: write Runner is running behind proxy server 'http://egress-http-proxy-external:8080' for all HTTP requests. Runner is running behind proxy server 'http://egress-http-proxy-external:8080' for all HTTPS requests. Prepare workflow directory Prepare all required actions Getting action download info Download action repository 'redhat-actions/openshift-tools-installer@v1' (SHA:99744decfe48e62f0304d622c34bce5f1d045858)
Setup Openshift Tools (3m 2s)
Run redhat-actions/openshift-tools-installer@v1 with: oc: 4 github_pat: *** source: mirror skip_cache: false env: REPOSITORY_NAME: test-openshift-tools-installer Installing oc matching version "4" ℹ️ Tools will be installed from "mirror".
🔎 Searching for a version of oc satisfying the range ">=4.0.0 <5.0.0-0" that was input as "4" Download directory for oc is https://mirror.openshift.com/pub/openshift-v4/clients/ocp/ Max oc version satisfying >=4.0.0 <5.0.0-0 is 4.9.15 Current operating system is linux Selecting openshift-client-linux-4.9.15.tar.gz ⏩ GitHub enterprise detected; skipping cache. For more information, see https://github.com/actions/cache/issues/505 ⬇️ Downloading 47.12MB https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.15/openshift-client-linux-4.9.15.tar.gz ... Downloaded openshift-client-linux-4.9.15.tar.gz in 1.8s ⬇️ Downloading hash file https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.9.15/sha256sum.txt sha256 verification of openshift-client-linux-4.9.15.tar.gz succeeded. /usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/_work/_temp/730744aa-ac4a-47d3-99d5-ab1953101224 -f /home/runner/_work/_temp/ef57516c22ae02527befdc776956cc11-openshift-client-linux-4.9.15.tar.gz Removed /home/runner/_work/_temp/ef57516c22ae02527befdc776956cc11-openshift-client-linux-4.9.15.tar.gz Current architecture is amd64 Using temporary directory for storage 📁 CLIs will be downloaded to /home/runner/_work/_temp/openshift-bin Added /home/runner/_work/_temp/openshift-bin to PATH oc installed into /home/runner/_work/_temp/openshift-bin/oc /home/runner/_work/_temp/openshift-bin/oc version --client Client Version: 4.9.15 ⏩ GitHub enterprise detected; skipping cache. For more information, see https://github.com/actions/cache/issues/505 ✅ Successfully installed oc 4.9.15.
✅ Successfully installed 1/1 client:
Wrote out installed versions to /home/runner/_work/_temp/openshift-bin/openshift-clients-installed.json
Complete Job
Cleaning up orphan processes
Summary
As you can see the download itself is quite fast (1.8s) but a lot of time (around 3 minutes) is lost somewhere after. The statement
Wrote out installed versions to /home/runner/_work/_temp/openshift-bin/openshift-clients-installed.json
is actually appearing in less than a second, but afterwards the action is stuck for 3 minutes. As mentioned, the action was running in less than 20 seconds on December 15th still, so I suspect the slow-down has something to do with the fix for #58 or the underlying problem.