Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Oryx "Downloading and extracting" irrelevant dependencies for React project: php, php-composer, java, maven, etc.

Open ceefour opened this issue 3 years ago • 1 comments
trafficstars

Bug Report

  • At what date and time did you most recently experience the problem?

Apr 20, 2022

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.

registry.gitlab.com/static-web-apps/azure-static-web-apps-deploy

using GitLab CI/CD

running on Kubernetes GitLab Runner

  • If your repo is publicly available please share its URL:

(private repo)

  • What happened?
Detecting platforms...
Detected following platforms:
  nodejs: 14.19.1
  php: 7.3.27
  java: 11.0.8
Version '14.19.1' of platform 'nodejs' is not installed. Generating script to install it...
Version '7.3.27' of platform 'php' is not installed. Generating script to install it...
Version '11.0.8' of platform 'java' is not installed. Generating script to install it...
  • What did you expect or want to happen?

This is a React-Scripts PWA project that uses yarn and TypeScript.

I can definitely understand downloading nodejs and of course yarn.

However it should not download php, php-composer, java, maven. Unless it is a dependency of Oryx itself, or any other detected dependency, in which case it should mention the reason why. So the user knows how to remove these dependencies.

It is not breaking the build, however it makes the build time slower.

  • How can we reproduce it?

Deploy a React-Scripts TypeScript yarn project using registry.gitlab.com/static-web-apps/azure-static-web-apps-deploy .

  • Do you have log output? Please include between the backticks:
No Api directory specified. Azure Functions will not be created.
Looking for event info
Could not get event info. Proceeding
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.202201[31](https://gitlab.com/ptm-stamp/ptm-stamp/-/jobs/2352312988#L31).3, Commit: ec[34](https://gitlab.com/ptm-stamp/ptm-stamp/-/jobs/2352312988#L34)4c058843461525ff03b46031553b6e15a47a, ReleaseTagName: 20220131.3
Build Operation ID: |PXh0Y506bac=.1814a96e_
Repository Commit : 3d2a52e7dff9[36](https://gitlab.com/ptm-stamp/ptm-stamp/-/jobs/2352312988#L36)6f3cd0fe2c868bd757b3e58209
Detecting platforms...
Detected following platforms:
  nodejs: 14.19.1
  php: 7.3.27
  java: 11.0.8
Version '14.19.1' of platform 'nodejs' is not installed. Generating script to install it...
Version '7.3.27' of platform 'php' is not installed. Generating script to install it...
Version '11.0.8' of platform 'java' is not installed. Generating script to install it...
Source directory     : /builds/REDACTED
Destination directory: /bin/staticsites/ss-oryx/app
Downloading and extracting 'nodejs' version '14.19.1' to '/opt/nodejs/14.19.1'...
Downloaded in 0 sec(s).
Verifying checksum...
Extracting contents...
performing sha[51](https://gitlab.com/REDACTED/-/jobs/2352312988#L51)2 checksum for: nodejs...
Done in 2 sec(s).
Downloading and extracting 'php' version '7.3.27' to '/opt/php/7.3.27'...
Downloaded in 0 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: php...
Done in 1 sec(s).
Downloading and extracting 'php-composer' version '2.0.8' to '/opt/php-composer/2.0.8'...
Downloaded in 0 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: php-composer...
Done in 0 sec(s).
Downloading and extracting 'java' version '11.0.8' to '/opt/java/11.0.8'...
Downloaded in 4 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: java...
Done in 8 sec(s).
Downloading and extracting 'maven' version '3.6.3' to '/opt/maven/3.6.3'...
Downloaded in 4 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: maven...
Done in 4 sec(s).
Removing existing manifest file
Creating directory for command manifest file if it doesnot exist
Creating a manifest file...
Node Build Command Manifest file created.
Using Node version:
v14.19.1
Using Yarn version:
3.2.0
Running 'cd packages/pwa && yarn build'...
Creating an optimized production build...

ceefour avatar Apr 19 '22 22:04 ceefour

Hi @ceefour, we were unable to re-produce this. Would you be able to share a similar-structured repo?

william-msft avatar May 04 '22 02:05 william-msft

We're closing this issue due to its age. If this is still impacting you please open a new issue and simply link back to this one.

simonjj avatar Jan 11 '24 19:01 simonjj