adobe / adobe/aem-test-samples
Error while upgrading cypress version to 13.13.3
- Dominant language
- Java
- Stars
- 36
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Team - I am trying to upgrade the`cypress` version from `12.17.0` to `13.13.3`. This is based on the latest version available in [docker-hub](https://hub.docker.com/r/cypress/included).
### Expected Behaviour
The docker image should build fine without any error.
### Actual Behaviour
The docker image is not getting built and is giving an error as follows:
```
ESC[91mW: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3
E: Package 'python' has no installation candidate
ESC[0mThe command '/bin/sh -c apt -qqy update && apt -qqy --no-install-recommends install python build-essential' returned a non-zero code: 100
2024/08/19 09:55:38 Container failed during run: build. No retries remaining.
failed to run step ID: build: exit status 100
````
### Reproduce Scenario (including but not limited to)
We are on AEMaaCS and the error is coming in the cloud pipeline, during the build-images step, for the `ui.tests` module.
#### Steps to Reproduce
Run the docker build, using the Dockerfile with cypress version set to `13.13.3`
#### Platform and Version
AEMaaCS SDK version: `2024.7.17258.20240726T172406Z`
#### Sample Code that illustrates the problem
https://github.com/adobe/aem-test-samples/blob/aem-cloud/ui-cypress/Dockerfile
#### Logs taken while reproducing problem
Shared above
Contributor guide
Research direction
Start with ui-cypress/Dockerfile and reproduce the Docker build with Cypress 13.13.3. Inspect the apt update/install command and the reported duplicate Microsoft Edge sources and missing python package. Done means the image builds successfully in the ui.tests build-images step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, docker
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100