badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.87k stars 5.51k forks source link

Failing DockerVersion test #10689

Open jNullj opened 10 hours ago

jNullj commented 10 hours ago

:clock11: When did the problem start?

Here at CI

:camera: Live badge

Docker Image Version https://img.shields.io/docker/v/_/memcached

:wrench: Is the live badge working?

Working, but we test for semver while values are tags and commonly don't use semver.

:lady_beetle: Stack trace

ValidationError: message mismatch: "value" needs to be a valid semver expression
    at exports.process (node_modules/joi/lib/errors.js:193:16)
    at internals.entry (node_modules/joi/lib/validator.js:250:26)
    at exports.entry (node_modules/joi/lib/validator.js:27:30)
    at internals.Base.validate (node_modules/joi/lib/base.js:548:26)
    at internals.assert (node_modules/joi/lib/index.js:225:27)
    at Object.attempt (node_modules/joi/lib/index.js:107:26)
    at IcedFrisbyNock._expectField (file:///home/runner/work/shields/shields/core/service-test-runner/icedfrisby-shields.js:89:13)
    at IcedFrisbyNock.<anonymous> (file:///home/runner/work/shields/shields/core/service-test-runner/icedfrisby-shields.js:70:26)
    at IcedFrisbyNock.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:954:10)
    at invokeNextHook (node_modules/icedfrisby/lib/icedfrisby.js:1003:24)
    at /home/runner/work/shields/shields/node_modules/icedfrisby/lib/icedfrisby.js:1017:7
    at new Promise (<anonymous>)
    at IcedFrisbyNock._runHooks (node_modules/icedfrisby/lib/icedfrisby.js:976:12)
    at IcedFrisbyNock.run (node_modules/icedfrisby/lib/icedfrisby.js:1276:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Context.<anonymous> (node_modules/icedfrisby/lib/icedfrisby.js:1348:9)

:bulb: Possible solution I noticed python seems to follow only semver tags. I think its better to change to it rather then try to write constraints for image tags that don't follow a specific ruleset.