Skip to content

feat: add ujust toggle-testing#212

Open
castrojo wants to merge 2 commits intoprojectbluefin:mainfrom
castrojo:feat/toggle-testing
Open

feat: add ujust toggle-testing#212
castrojo wants to merge 2 commits intoprojectbluefin:mainfrom
castrojo:feat/toggle-testing

Conversation

@castrojo
Copy link
Contributor

@castrojo castrojo commented Feb 14, 2026

This adds a toggle similar to dx. Since LTS is the only one with this setup that's behind a gate. Also got an initial pass from KyleGospo before PRing this in.

cc @renner0e:

Bluefin has to wait until gts is gone to implement this but the pull app config in LTS is good to ship if you want it for Aurora. Only issue is figuring out how to cron it, currently it does a release when you merge the testing branch into the prod one. I don't know what's cleaner, adding a new workflow for just the cron? The issue was maintaining the cron snippet in the same file in both main and lts.

Adds a ujust toggle-testing command that switches users between
stable (lts/lts-hwe) and testing (lts-testing/lts-hwe-testing)
images. Uses bootc status --json to detect the current image tag
and gum confirm for user confirmation. Exits gracefully on
non-LTS images where testing variants do not exist.

Also adds lts-testing and lts-hwe-testing channels to the
rebase-helper channel picker, with correct date-pin filter
logic for testing tags.

Closes: projectbluefin#130

Assisted-by: Claude Sonnet 4.5 via OpenCode
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 14, 2026
@dosubot dosubot bot added area/just Justfile things kind/enhancement New feature, don't implement without a spec and consensus labels Feb 14, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 14, 2026
fi

# Detect current booted image reference via bootc
BOOTED_IMAGE="$(sudo bootc status --json | jq -rc '.status.booted.image.image.image')"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's a problem we use bootc for this but it's inconsistent with what we currently have. I personally prefer using bootc for this.

cc @tulilirockz

IMAGE_INFO_FILE="${IMAGE_INFO_FILE:-/usr/share/ublue-os/image-info.json}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah the reason that is is I didn't want to touch image-info things in this PR. We didn't add -testing to the image-info.json and I'm not sure if it's worth it? I was thinking once we're all deploying testing branches we can go back and make it consistent.

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

Labels

area/just Justfile things kind/enhancement New feature, don't implement without a spec and consensus lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments