aminya / chocolatey-emscripten

Chocolatey package for emscripten
https://chocolatey.org/packages/emscripten/
MIT License
1 stars 0 forks source link

Failed on Fresh Install (Affecting GitHub Actions Run) #2

Open hollowaykeanho opened 10 months ago

hollowaykeanho commented 10 months ago

First discovered when setting up emscripten from scratch using choco.

Error (likely false alarm)

The failure was due to the git LFS dependency installation. Due to this failure (despite successful installation), choco reported the execution as error, thus failing the entire CI run.

choco-failed

Request

Appreciate remedy so that external CI tools can be uniformly setup with choco.

Reference

  1. https://github.com/corygalyna/AutomataCI/actions/runs/6387879358/job/17337116795
  2. https://community.chocolatey.org/packages/emscripten#discussion
aminya commented 10 months ago

Could you post the full log in the text format?

hollowaykeanho commented 10 months ago

It's available in: https://github.com/corygalyna/AutomataCI/actions/runs/6387879358/job/17337116795#step:6:1329 under ENV native CI job (caught by GitHub Actions).

Copying it to here:

chocolatey v2.2.2
Installing the following packages:
emscripten
By installing, you accept licenses for the packages.

Progress: Downloading git.install 2.42.0... %
Progress: Downloading git.install 2.42.0... %
Progress: Downloading git.install 2.42.0... %
[ ... removed due to repetitive progress status ... ] 
Progress: Downloading git.install 2.42.0... 100%
Progress: Downloading git.install 2.42.0... 100%
Progress: Downloading git.install 2.42.0... 100%

git.install v2.42.0 [Approved]
git.install package files install completed. Performing other installation steps.
Using Git LFS
Installing 64-bit git.install...
ERROR: Running ["C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.42.0-64-bit.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP- /LOG /COMPONENTS="icons,assoc,assoc_sh,ext,ext\shellhere,ext\guihere,gitlfs,icons\quicklaunch" ] was not successful. Exit code was '1'. See log for possible error messages.
The install of git.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.

Progress: Downloading git 2.42.0... 92%
Progress: Downloading git 2.42.0... 100%

git v2.42.0 [Approved]
git package files install completed. Performing other installation steps.
 The install of git was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\git'

Progress: Downloading vcredist2015 14.0.24215.20170201... 76%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%

vcredist2015 v14.0.24215.20170201 [Approved]
vcredist2015 package files install completed. Performing other installation steps.
 The install of vcredist2015 was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\vcredist2015'

Progress: Downloading python312 3.12.0... %
Progress: Downloading python312 3.12.0... %
Progress: Downloading python312 3.12.0... %
[ ... removed due to repetitive progress status ... ] 
Progress: Downloading python312 3.12.0... 100%
Progress: Downloading python312 3.12.0... 100%
Progress: Downloading python312 3.12.0... 100%

python312 v3.12.0
python312 package files install completed. Performing other installation steps.
Installing 64-bit python312...
python312 has been installed.
Added C:\ProgramData\chocolatey\bin\python3.12.exe shim pointed to 'c:\python312\python.exe'.
Python installed to: 'C:\Python312'
Restricting write permissions to Administrators
  python312 can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of python312 was successful.
  Software installed as 'exe', install location is likely default.

Progress: Downloading python3 3.12.0... 100%

python3 v3.12.0 [Approved]
python3 package files install completed. Performing other installation steps.
 The install of python3 was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\python3'

Progress: Downloading python 3.12.0... 100%

python v3.12.0 [Approved]
python package files install completed. Performing other installation steps.
 The install of python was successful.
  Software installed to 'C:\ProgramData\chocolatey\lib\python'

Progress: Downloading emscripten 3.1.40... 56%
Progress: Downloading emscripten 3.1.40... 100%

emscripten v3.1.40 [Approved]
emscripten package files install completed. Performing other installation steps.
WARNING: No registry key found based on  'emscripten'
Cloning https://github.com/emscripten-core/emsdk.git
The current working directory is changed to C:\Users\runneradmin\AppData\Local
Cloning into 'emsdk'...
The current working directory is changed to C:\Users\runneradmin\AppData\Local\emsdk
Already up to date.
`update-tags` is not longer needed.  To install the latest tot release just run `install tot`
Installing emsdk 3.1.40
Resolving SDK version '3.1.40' to 'sdk-releases-c3122846bb040798aab975f61008c37eb19476de-64bit'
Installing SDK 'sdk-releases-c3122846bb040798aab975f61008c37eb19476de-64bit'..
Installing tool 'node-16.20.0-64bit'..
Downloading: C:/Users/runneradmin/AppData/Local/emsdk/downloads/node-v16.20.0-win-x64.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v16.20.0-win-x64.zip, 28623474 Bytes
 [----------------------------------------------------------------------------]
C:\Users\runneradmin\AppData\Local\emsdk/emsdk.py:329: DeprecationWarning: onerror argument is deprecated, use onexc instead
  shutil.rmtree(d, onerror=remove_readonly_and_try_again)
Unpacking 'C:/Users/runneradmin/AppData/Local/emsdk/downloads/node-v16.20.0-win-x64.zip' to 'C:/Users/runneradmin/AppData/Local/emsdk/node/16.20.0_64bit'
Done installing tool 'node-16.20.0-64bit'.
Installing tool 'python-3.9.2-nuget-64bit'..
Downloading: C:/Users/runneradmin/AppData/Local/emsdk/downloads/python-3.9.2-4-amd64+pywin32.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/python-3.9.2-4-amd64+pywin32.zip, 14413267 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'C:/Users/runneradmin/AppData/Local/emsdk/downloads/python-3.9.2-4-amd64+pywin32.zip' to 'C:/Users/runneradmin/AppData/Local/emsdk/python/3.9.2-nuget_64bit'
Done installing tool 'python-3.9.2-nuget-64bit'.
Installing tool 'java-8.152-64bit'..
Downloading: C:/Users/runneradmin/AppData/Local/emsdk/downloads/portable_jre_8_update_152_64bit.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/portable_jre_8_update_152_64bit.zip, 69241499 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'C:/Users/runneradmin/AppData/Local/emsdk/downloads/portable_jre_8_update_152_64bit.zip' to 'C:/Users/runneradmin/AppData/Local/emsdk/java/8.152_64bit'
Done installing tool 'java-8.152-64bit'.
Installing tool 'releases-c3122846bb040798aab975f61008c37eb19476de-64bit'..
Downloading: C:/Users/runneradmin/AppData/Local/emsdk/downloads/c3122846bb040798aab975f61008c37eb19476de-wasm-binaries.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/win/c3122846bb040798aab975f61008c37eb19476de/wasm-binaries.zip, 425017845 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'C:/Users/runneradmin/AppData/Local/emsdk/downloads/c3122846bb040798aab975f61008c37eb19476de-wasm-binaries.zip' to 'C:/Users/runneradmin/AppData/Local/emsdk/upstream'
Done installing tool 'releases-c3122846bb040798aab975f61008c37eb19476de-64bit'.
Done installing SDK 'sdk-releases-c3122846bb040798aab975f61008c37eb19476de-64bit'.
Activating emsdk 3.1.40
Adding directories to PATH: PATH += C:\Users\runneradmin\AppData\Local\emsdk PATH += C:\Users\runneradmin\AppData\Local\emsdk\upstream\emscripten System.Management.Automation.RemoteException Setting environment variables: PATH = C:\Users\runneradmin\AppData\Local\emsdk;C:\Users\runneradmin\AppData\Local\emsdk\upstream\emscripten;%USERPROFILE%\.dotnet\tools;%USERPROFILE%\.cargo\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps; EMSDK = C:/Users/runneradmin/AppData/Local/emsdk EMSDK_NODE = C:\Users\runneradmin\AppData\Local\emsdk\node\16.20.0_64bit\bin\node.exe EMSDK_PYTHON = C:\Users\runneradmin\AppData\Local\emsdk\python\3.9.2-nuget_64bit\python.exe JAVA_HOME = C:\Users\runneradmin\AppData\Local\emsdk\java\8.152_64bit Failed to read environment variable EMSDK: 'EMSDK' Failed to read environment variable EMSDK_NODE: 'EMSDK_NODE' Failed to read environment variable EMSDK_PYTHON: 'EMSDK_PYTHON'
Ignore the above failure messages about environment variables or import Python Windows extensions.
The installation added the emsdk's bundled Python, Node, and Java to the PATH.
and it set JAVA_HOME to the path of the bundled Java.
If this conflicts with your other development environments, remove these from PATH.
The package is successfully installed in C:\Users\runneradmin\AppData\Local\emsdk
The current working directory is recovered to D:\a\AutomataCI\AutomataCI
Only an exit code of non-zero will fail the package by default. Set
 `--failonstderr` if you want error messages to also fail a script. See
 `choco -h` for details.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of emscripten was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.

Chocolatey installed 6/7 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Installed:
 - emscripten v3.1.40
 - git v2.42.0
 - python v3.12.0
 - python3 v3.12.0
 - python312 v3.12.0
 - vcredist2015 v14.0.24215.20170201

Failures
 - git.install (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.
Error: Process completed with exit code 1.