features icon indicating copy to clipboard operation
features copied to clipboard

Missing version tags for docker-outside-of-docker

Open rubensa opened this issue 1 year ago • 5 comments

Looks like last docker-outside-of-docker tag is feature_docker-outside-of-docker_1.3.2 (for version 1.3.2 from January).

Following versions (1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0) have not been tagged (see: https://github.com/devcontainers/features/commits/main/src/docker-outside-of-docker/devcontainer-feature.json).

Could you, please, add tags for the missing releases (so it is easy to get the code at specific version)? (and keep that tagging for future releases, like this).

rubensa avatar Sep 13 '24 12:09 rubensa

Looks like the same is happening for other features.

For example, last tag for node is feature_node_1.4.0 where the last code is 1.6.0.

rubensa avatar Sep 13 '24 12:09 rubensa

Looks like the tagging support was introduced in devcontainers/action version v1.3.0 but it's not working since last February so might me a bug silently introduced in latest version v1.4.2 released on Feb 16 ?

rubensa avatar Sep 13 '24 13:09 rubensa

Looks like automatic tagging is failing. For example, in last release execution, in the log there is the message:

Adding repo tag 'feature_desktop-lite_1.2.5'...
Warning: Failed to automatically add repo tag, manually tag with:   'git tag feature_desktop-lite_1.2.5 b0667c5589bfe1b382c49392c58fe4c9433f1fde'

rubensa avatar Sep 13 '24 14:09 rubensa

The message comes from here.

rubensa avatar Sep 13 '24 14:09 rubensa

As far as I can see, the culprit might be the replacement from jsonc-parser to json5 that might be, somehow, making the call with octokit to create the tag, to fail.

rubensa avatar Sep 13 '24 14:09 rubensa

Seeing the same issues on our end also. This has become more critical as our team is navigating around Issue #1017

bryanlittlefield avatar Sep 23 '24 15:09 bryanlittlefield

Thanks all for flagging. @joshspicer would you mind taking a look, given your expertise in devcontainers/action?

bamurtaugh avatar Oct 01 '24 15:10 bamurtaugh

As far as I can see, the culprit might be the replacement from jsonc-parser to json5 that might be, somehow, making the call with octokit to create the tag, to fail.

Hm, not clear to me why we moved away from jsonc-parser (which is used extensively within dev container tooling and is definitely tolerant of comments, per that PR's goal).

Looks like there was just once instance of using the built-in JSON parser https://github.com/devcontainers/action/issues/210#issuecomment-1945199002, which I imagine should've been the only change in that PR🤔

joshspicer avatar Oct 01 '24 15:10 joshspicer

I forked the latest build of the extension and ran it against a demo repo - tagging worked fine. I suspect this is a configuration issue on this repo

joshspicer avatar Oct 04 '24 21:10 joshspicer

Comparing the two runs, it appears to be a permissions issue with the GITHUB_TOKEN:

Image Image

joshspicer avatar Oct 04 '24 21:10 joshspicer

Just checked and seems tags are being generated again.

@bamurtaugh Should it be possible to add the "old" missing tags?

rubensa avatar Oct 18 '24 06:10 rubensa

Thanks for the question @rubensa - @joshspicer it'd be awesome to get your insights!

bamurtaugh avatar Oct 21 '24 00:10 bamurtaugh

We don't have any automated tooling for this and as it's one-off it is probably faster to update the tags manually. Are you (and other folks reading this) interested primarily in the tags for docker-outside-of-docker?

joshspicer avatar Oct 25 '24 19:10 joshspicer