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

Epic: Fix auto-fix version upgrade of images #661

Open
4 of 11 tasks
princerachit opened this issue Feb 4, 2022 · 14 comments · Fixed by #793
Open
4 of 11 tasks

Epic: Fix auto-fix version upgrade of images #661

princerachit opened this issue Feb 4, 2022 · 14 comments · Fixed by #793

Comments

@princerachit
Copy link
Contributor

princerachit commented Feb 4, 2022

Bug description

The auto-fix bot doesn't work post migration to dazzlev2 images.

Steps to reproduce

Check the PRs in the PR tab of the repo. The PRs point to legacy images. No new PRs are being created.

Expected behavior

No response

Example repository

No response

Anything else?

@princerachit princerachit added the bug Something isn't working label Feb 4, 2022
@princerachit princerachit moved this to Scheduled in 🌌 Workspace Team Feb 4, 2022
@princerachit princerachit self-assigned this Feb 4, 2022
@princerachit princerachit added this to the Support dazzle v2 milestone Feb 4, 2022
@princerachit
Copy link
Contributor Author

As per the documentation the versions can be only fixed in the dockerfile. Since we are moving to variants based images, which uses chunk.yaml, the bot would not work in its current state.
I would vote to remove the bot integration.

@princerachit
Copy link
Contributor Author

I have closed all the open PRs trying to fix old dockerfiles

@princerachit
Copy link
Contributor Author

@kylos101 I am going to close this issue by tomorrow and remove the bot integration. Let me know if you have any concerns. cc: @jankeromnes

@jankeromnes
Copy link
Contributor

jankeromnes commented Feb 7, 2022

Hi @princerachit!

Check the PRs in the PR tab of the repo. The PRs point to legacy images.

That's because these PRs were created before the dazzlev2 rewrite was merged. Closing them unmerged was the right action. 👍

No new PRs are being created.

That's because we've temporarily disabled the automated PRs to reduce noise during the rewrite (see discussion on Slack (internal)).

I can re-enable the Pull Requests now to see what the bot finds. EDIT: Re-enabled -- new PRs expected on Wednesday.

As a reminder, it only sends Pull Requests that are considered absolutely safe to merge (e.g. bump patch or minor versions of tools where it's considered safe, e.g. in order to get critical security updates quickly, but never bump major versions as this carries risk of unexpected breakages -- the rule of thumb for Autofix is "any fix that you'd merge without looking" will open a PR).

As per the documentation the versions can be only fixed in the dockerfile. Since we are moving to variants based images, which uses chunk.yaml, the bot would not work in its current state.

That's true, but I think it would be quite easy to make it support chunk.yaml as well.

I think disabling the bot entirely would condemn us to having all images bit-rot continuously, and start accumulating public security vulnerabilities until Gitpod becomes extremely unsafe / deprecated / broken over time.

I much prefer the alternative of teaching Autofix how to fix Dazzle's chunk.yaml, and I'm happy to do it as it'll probably be a quick fix. 🙂

and remove the bot integration

FYI, there is no bot integration per se -- the automated Pull Requests are controlled by this recurring CI job.

@princerachit
Copy link
Contributor Author

Thanks for volunteering @jankeromnes . I am assigning this issue to you. Let me know if you need any help in reviewing the changes :)

@kylos101 kylos101 changed the title Fix/Remove auto-fix version upgrade of images Fix auto-fix version upgrade of images Feb 7, 2022
@Furisto
Copy link
Member

Furisto commented Mar 31, 2022

Hey @jankeromnes, any idea when you will be able to adapt the autofix bot?

@jankeromnes
Copy link
Contributor

Hi @Furisto! Thanks for the reminder. Would you be interested in pairing on this?

I think it could be relatively easy to make the autofix bot pick up custom fixers checked into a repository (e.g. under a .autofix/ directory), and then implement Dazzle-specific fixers to update all the manifests.

@Furisto
Copy link
Member

Furisto commented Mar 31, 2022

@jankeromnes Absolutely! I setup a meeting.

@kylos101 kylos101 moved this to In Progress in 🌌 Workspace Team Apr 1, 2022
@jankeromnes
Copy link
Contributor

jankeromnes commented Apr 1, 2022

edit: @jankeromnes I moved this to the issue description so we can have sweeeeeeeet tracking. Thank you very much for the thoughtful breakdown and pairing with @Furisto .

@kylos101 kylos101 added type: epic and removed bug Something isn't working labels Apr 1, 2022
@kylos101
Copy link
Collaborator

kylos101 commented Apr 1, 2022

@jankeromnes I moved the details from your comment to this issue's description, and turned the issue into an epic.

@kylos101 kylos101 changed the title Fix auto-fix version upgrade of images Epic: Fix auto-fix version upgrade of images Apr 1, 2022
@kylos101 kylos101 moved this to In Progress in 🌌 Workspace Team Apr 1, 2022
@kylos101 kylos101 assigned atduarte and unassigned jankeromnes Apr 1, 2022
@Furisto Furisto mentioned this issue Apr 4, 2022
Repository owner moved this from In Progress to Done in 🌌 Workspace Team Apr 4, 2022
@Furisto Furisto reopened this Apr 5, 2022
@kylos101 kylos101 moved this from Done to In Progress in 🌌 Workspace Team Apr 5, 2022
@kylos101
Copy link
Collaborator

kylos101 commented Apr 5, 2022

@Furisto can you break-down this task (above) Implement similar repository-local auto-fixers for all other Dazzle variants into a set of smaller tasks? For example, aside from Python, and Node, what other fixers are you thinking?

@Furisto
Copy link
Member

Furisto commented Apr 5, 2022

@kylos101 Done

@kylos101
Copy link
Collaborator

kylos101 commented Apr 5, 2022

@Furisto 🙏 you rock!

For Elixir and Clojure, is your thought that we'd also add a related chunk.yaml (so we have a variant to fix)?

@Furisto
Copy link
Member

Furisto commented Apr 5, 2022

@kylos101 Yes, both. The elixir image actually does not specify a version at the moment, so we could get a new version without us realizing. This should be fixed with that task as well.

@kylos101 kylos101 removed the status in 🌌 Workspace Team Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

5 participants