Skip to content

Gitpod seems to corrupt cache #1522

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

Closed
Kreyren opened this issue May 17, 2020 · 1 comment
Closed

Gitpod seems to corrupt cache #1522

Kreyren opened this issue May 17, 2020 · 1 comment
Labels
meta: stale This issue/PR is stale and will be closed soon

Comments

@Kreyren
Copy link

Kreyren commented May 17, 2020

Describe the bug

As presented on Automattic/node-canvas#1582 (comment) gitpod had two similar steps cached, but it merged the caches into a one which caused a conflict

Steps to reproduce

  1. Create a new repository
  2. Add .gitpod.yml with content:
image:
  file: .gitpod.Dockerfile
  1. Wipe relevant caches for following steps
  2. Create a .gitpod.Dockerfile with content:
FROM gitpod/workspace-full

USER root

RUN true \
	&& apt-get update \
	&& apt-get install -y apt-utils \
	# https://github.com/Automattic/node-canvas/blob/master/.github/workflows/ci.yaml#L19
	&& apt-get install -y \
        	build-essential \
        	libcairo2-dev \
        	libpango1.0-dev \
        	libjpeg-dev \
        	libgif-dev \
        	librsvg2-dev
  1. Run gitpod and check if npm install canvas builds successfully (it is not expected to build using libjpeg-dev)
  2. Close gitpod
  3. Change .gitpod.Dockerfile on
FROM gitpod/workspace-full

USER root

RUN true \
	&& apt-get update \
	&& apt-get install -y apt-utils \
	# https://github.com/Automattic/node-canvas/blob/master/.github/workflows/ci.yaml#L19
	&& apt-get install -y \
        	build-essential \
        	libcairo2-dev \
        	libpango1.0-dev \
        	libjpeg8-dev \
        	libgif-dev \
        	librsvg2-dev
  1. Run gitpod on the repository and check if npm install canvas builds (expected to install with libjpeg8-dev)
  2. Close gitpod
  3. Change .gitpod.Dockerfile again on:
FROM gitpod/workspace-full

USER root

RUN true \
	&& apt-get update \
	&& apt-get install -y apt-utils \
	# https://github.com/Automattic/node-canvas/blob/master/.github/workflows/ci.yaml#L19
	&& apt-get install -y \
        	build-essential \
        	libcairo2-dev \
        	libpango1.0-dev \
        	libjpeg-dev \
        	libgif-dev \
        	librsvg2-dev
  1. Open the commit with libjpeg8-dev in gitpod and expect it to behave as if it had libjpeg-dev

Expected behavior

Using gitpod from a branch should use be using a gitpod configuration from a specified branch. (current behavior for non-similar steps afaik)

Example repository

https://github.com/Kreyren/gitpod-1520

@stale
Copy link

stale bot commented Oct 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Oct 4, 2020
@stale stale bot closed this as completed Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon
Projects
None yet
Development

No branches or pull requests

1 participant