Skip to content

feat: allow upgrade tests - #4288

Merged
aldy505 merged 3 commits into
masterfrom
aldy505/feat/allow-upgrade-test
Apr 27, 2026
Merged

feat: allow upgrade tests#4288
aldy505 merged 3 commits into
masterfrom
aldy505/feat/allow-upgrade-test

Conversation

@aldy505

@aldy505 aldy505 commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator

To be able to run upgrade tests against self-hosted, this is most useful to test database migrations

@github-actions

github-actions Bot commented Apr 19, 2026

Copy link
Copy Markdown

Changelog Preview

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Allow upgrade tests by aldy505 in #4288

🤖 This preview updates automatically when you update the PR.

Comment thread action.yaml Outdated
Comment thread action.yaml Outdated
Comment thread action.yaml Outdated
Comment thread action.yaml
@aldy505
aldy505 enabled auto-merge (squash) April 23, 2026 03:46

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 404e19e. Configure here.

Comment thread action.yaml
image="${image_urls[$i]}"
image_var=$(echo "${project}_IMAGE" | tr '[:lower:]' '[:upper:]')
echo "${image_var}=${image}" >> ${{ github.action_path }}/.env
done

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trailing newline causes empty element in readarray

Medium Severity

When callers pass multiline inputs using YAML | block scalar syntax (the standard way), the value includes a trailing newline. The <<< herestring adds another newline, so readarray -t produces an extra empty string element in both project_names and image_urls. The length check passes (both arrays have the same extra element), but the loop then writes a garbage _IMAGE= entry to the .env file. Using < <(printf '%s' "$PROJECT_NAME") instead of <<<"$PROJECT_NAME" would avoid this.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 404e19e. Configure here.

@aldy505
aldy505 merged commit abd2dab into master Apr 27, 2026
26 of 35 checks passed
@aldy505
aldy505 deleted the aldy505/feat/allow-upgrade-test branch April 27, 2026 06:14
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants