Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Cache key Validation Error when workflow name contains a comma #756

Description

@jebl01

Our workflows contains commas in their names, this now makes the build fail with the following error:

Error: ValidationError: Key Validation Error: v8-gradle|Linux|Build, Test & Create Release-build[37a6259cc0c1dae299a7866489dff0bd]-d2138fa1b61e6a9ab14f6b45751a8118e6a378bb cannot contain commas.
ValidationError: Key Validation Error: v8-gradle|Linux|Build, Test & Create Release-build[37a6259cc0c1dae299a7866489dff0bd]-d2138fa1b61e6a9ab14f6b45751a81[18](https://github.com/webbhalsa/kry-medical-record/actions/runs/5409195640/jobs/9829089990#step:7:20)e6a378bb cannot contain commas.
    at checkKey (/home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:75:15)
    at Object.<anonymous> (/home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:108:13)
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:38:71
    at new Promise (<anonymous>)
    at __webpack_modules__.7799.__awaiter (/home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:34:12)
    at Object.restoreCache (/home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:98:12)
    at /home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:64485:47
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/gradle/gradle-build-action/v2/dist/main/index.js:64381:71

Most likely this is the commit that causes this:
2bf6bc3

Activity

  1. kimakunc commented on Jun 29, 2023

    @kimakunc

    same problem, using the commit hash like so works for me:
    i.e. :
    gradle/gradle-build-action @ 631021b

  2. bigdaz commented on Jun 29, 2023

    @bigdaz
    Member

    Thanks for the report. I'll get a fix out ASAP.
    In the meantime you can continue to use v2.4.2

  3. changed the title [-]v2 now throws exception if workflow name contains a comma[/-] [+]Cache key Validation Error when workflow name contains a comma[/+] on Jun 29, 2023
  4. added this to the v2.5.1 milestone on Jun 29, 2023
  5. self-assigned this
    on Jun 29, 2023
  6. bigdaz commented on Jun 29, 2023

    @bigdaz
    Member

    v2.5.1 was just released which should fix this issue. Apologies for the interruption!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions