Skip to content

Fix metabox (infra)#1428

Merged
Hook25 merged 7 commits intomainfrom
fix_metabox
Aug 21, 2024
Merged

Fix metabox (infra)#1428
Hook25 merged 7 commits intomainfrom
fix_metabox

Conversation

@Hook25
Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 commented Aug 21, 2024

Description

This fixes two issues with metabox + 1 issue with a recently added test plan in the metabox provider

  1. Metabox loads scenarios using a grossly outdated api that is now removed, this doesn't impact us at the moment but will very soon (discovered this because I tried to update the action to use ubuntu 24)
  2. Action has a few workarounds that are needed (now more) that were un-documented. Now they are explained in the comments
  3. The testplan landed was missing the "target" from the template_id and the bootstrap_include resource to make it run (the resource was pulled, but not during bootstrap, leading the template to not being initailized)

Root cause of the initial issue: setuptools updated and is now broken due to some incompatibility (I don't really know which) with importlib_metadata

Resolved issues

Fixes: CHECKBOX-1536

Documentation

This adds a few new comments to the workflow to explain why it is the way it is.

Tests

Passing test: https://github.com/canonical/checkbox/actions/runs/10487592300/job/29049421985

Hook25 added 7 commits August 20, 2024 16:56
This uses the debian packages to avoid situations where we randomly break metabox
when a pip package updates like setuptools right now (also I dont see any advantage
to installing straight from pip).

This updates to ubuntu latest to have the most updated possible version of every
debian package so that we don't encounter weird regressions due to the downgrade

This also uses a venv because installing straight to system is a footgun and it
doesn't work with the current version of dependencies
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Thanks for saving the day! 🧯 🔥

@Hook25 Hook25 merged commit 0738752 into main Aug 21, 2024
@Hook25 Hook25 deleted the fix_metabox branch August 21, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants