Repository navigation
fix(offline): da and nl build scripts autoconfigure their own language - #176
Merged
Merged
Conversation
build_raspOVOS_da.sh passed de-DE and build_raspOVOS_nl.sh passed n-NL. Both now pass the tag their hybrid and lite siblings pass: da-DK and nl-NL. n-NL is not a language code. With ovos-config 2.3.11a2, the floor in constraints-alpha.txt, the call exits 1 and set -e stops the Dutch offline build. With ovos-config 2.1.1 it exits 0 and writes lang as n. de-DE is valid, so the Danish offline image was configured for German. T-3951 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
The automated pipeline has reached its destination. 🏁I've aggregated the results of the automated checks for this PR below. 🔍 LintEnsuring your contribution is moving forward. 🚀 ✅ actionlint: 10 workflow file(s), no finding Helping you build the future of voice, one check at a time. 🎙️ |
JarbasAl
marked this pull request as ready for review
September 26, 2026 13:21
JarbasAl
added a commit
that referenced
this pull request
Sep 29, 2026
…push The lang image builders create a public GitHub release with no draft field and no condition, and they run on a push to dev as well as on workflow_dispatch. So every green push to dev cut a public raspOVOS release dated that day. #176 merged on 09-25 and did not publish only because all eleven build jobs failed, which is luck and not a guard. The first cut of this guard was `if: github.ref == 'refs/heads/dev'`. That is TRUE on a push to dev, so it stopped a dispatch from a pull request branch and left the merge-publishes-a-release path exactly as it was. Two answered rulings disagreed on whether that path was wanted. Decision raspovos-dev-push-publishes-release settled it on 2026-09-28: dispatch-only, a release is cut by hand. The guard now tests the event as well as the branch: if: github.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch' push to dev -> builds the images, publishes nothing dispatch on a PR branch -> builds the images, publishes nothing dispatch on dev -> publishes, and only a person starts that Both publishing jobs of both builders carry it: create-release, which makes the release, and upload-images, which uploads the assets to it. Guarding only the first would leave the second uploading into whatever release it resolved. This covers two of the five builders that create a release. The other three, build_lite_lang_images.yml, build_raspOVOS_full.yml and build_raspOVOS_lite.yml, carry the same change on ci/guard-release-on-dev-push, which follows this pull request. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
JarbasAl
added a commit
that referenced
this pull request
Nov 26, 2026
…push (#178) The lang image builders create a public GitHub release with no draft field and no condition, and they run on a push to dev as well as on workflow_dispatch. So every green push to dev cut a public raspOVOS release dated that day. #176 merged on 09-25 and did not publish only because all eleven build jobs failed, which is luck and not a guard. The first cut of this guard was `if: github.ref == 'refs/heads/dev'`. That is TRUE on a push to dev, so it stopped a dispatch from a pull request branch and left the merge-publishes-a-release path exactly as it was. Two answered rulings disagreed on whether that path was wanted. Decision raspovos-dev-push-publishes-release settled it on 2026-09-28: dispatch-only, a release is cut by hand. The guard now tests the event as well as the branch: if: github.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch' push to dev -> builds the images, publishes nothing dispatch on a PR branch -> builds the images, publishes nothing dispatch on dev -> publishes, and only a person starts that Both publishing jobs of both builders carry it: create-release, which makes the release, and upload-images, which uploads the assets to it. Guarding only the first would leave the second uploading into whatever release it resolved. This covers two of the five builders that create a release. The other three, build_lite_lang_images.yml, build_raspOVOS_full.yml and build_raspOVOS_lite.yml, carry the same change on ci/guard-release-on-dev-push, which follows this pull request. Co-authored-by: JarbasAi <jarbasai@mailfence.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This draft PR was authored by an AI agent (Claude Opus 5).
What changes
Two offline build scripts pass a language tag that does not match their file
name.
build_raspOVOS_da.shpassesde-DEandbuild_raspOVOS_nl.shpassesn-NL. Both now pass the tag the hybrid and lite scripts for the same languagealready pass:
da-DKandnl-NL.The other 9 offline scripts agree with their file name, and all 11 hybrid and
all 11 lite scripts agree with theirs. These two lines are the only
disagreement in
lang_builds.Why it matters
n-NLis not a language code. The result depends on the version ofovos-configthe image installs, so the same line has two different faults.With
ovos-config2.3.11a2, which is the floor inconstraints-alpha.txtthatthe build scripts read, the call exits 1 and writes no configuration:
build_raspOVOS_nl.shsetsset -eon line 6, so the Dutch offline buildstops at that line. No image is produced.
With
ovos-config2.1.1, the newest release under the testing-channel ceiling<3.0.0, the same call exits 0 and writeslangasn:So on the older release the Dutch offline image builds and runs configured for
a language that does not exist.
de-DEis a valid tag, so the Danish script has no error to show. It exits 0and writes German:
A user who flashes the Danish offline image gets a device that listens and
speaks German.
Evidence
Each call above ran in its own sandbox, with
HOME,XDG_CONFIG_HOME,XDG_STATE_HOMEandXDG_CACHE_HOMEredirected, in two real virtualenvironments:
ovos-config2.3.11a2 andovos-config2.1.1. The arguments arethe ones the scripts write.
The new tags answer in both environments:
The two releases normalise the tag differently, which is not what this PR
changes.
What is not proven here
No image was built or booted. This PR reads the script and runs the command the
script runs. The build stop on
n-NLis read from the exit code andset -e,not from a failed workflow run. A build of the Danish and Dutch offline images
is the check that closes it, and the offline image workflow has no pull request
trigger, so it needs a dispatch.
🤖 Generated with Claude Code