Skip to content
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

Missing limit on cache:key:files: #910

Closed
atli-c opened this issue Jun 23, 2023 · 2 comments
Closed

Missing limit on cache:key:files: #910

atli-c opened this issue Jun 23, 2023 · 2 comments
Assignees
Labels
nice Down prioritized

Comments

@atli-c
Copy link
Collaborator

atli-c commented Jun 23, 2023

Minimal .gitlab-ci.yml illustrating the issue

---
example_job:
  script:
    - echo "Heya"
  cache:
    key:
      files: [foo.txt, bar.txt, oh-no-too-many-files-for-cache-key.txt]

gitlab-ci-local works, but gitlab (EE 15.11) fails with:

Unable to create pipeline

  • jobs:example_job:cache:key:files config has too many items (maximum is 2)

Expected behavior
gitlab-ci-local should fail the same way. I.e. max 2 cache key files.

Host information
macOS Ventura 13.4
gitlab-ci-local 4.40.0

Additional context
n/a

@hverlin
Copy link
Collaborator

hverlin commented Jun 23, 2023

Adding link to the docs
https://docs.gitlab.com/ee/ci/yaml/index.html#cachekeyfiles
image

@firecow firecow added the nice Down prioritized label Jun 23, 2023
@firecow
Copy link
Owner

firecow commented Jun 23, 2023

This is a good first issue for anyone wanting to contribute 👍

@atli-c atli-c self-assigned this Nov 20, 2023
atli-c added a commit that referenced this issue Nov 22, 2023
Ensures that cache:key:files: has length of 1 or 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice Down prioritized
Projects
None yet
Development

No branches or pull requests

3 participants