Skip to content

Populate version strings from CI#278

Merged
ethanjli merged 15 commits into
masterfrom
ci-versioning
May 24, 2026
Merged

Populate version strings from CI#278
ethanjli merged 15 commits into
masterfrom
ci-versioning

Conversation

@ethanjli
Copy link
Copy Markdown
Collaborator

@ethanjli ethanjli commented May 23, 2026

This PR automatically sets the backend and frontend's version strings from VCS information available during the build CI workflows, in order to remove the need to manually/automatically create VCS commits for updating version strings after changes are made.

The version strings produced by this PR do not follow the pseudoversion format used in Go Modules or Forklift; instead, they look something like "v2.1.192-89-g930ffbe-t20260523153301-pr278" for PR commits and something like "v2.1.192-89-g930ffbe-t20260523153301" for non-PR commits. For builds of pushed tags, they should look like "v2.2.0" (but that functionality is not yet tested).

This work is tracked on Notion at https://www.notion.so/Bake-VCS-info-into-the-ImSwitch-container-image-3574e612c78a8053929ce57897eee6c7?source=copy_link

@ethanjli ethanjli marked this pull request as ready for review May 23, 2026 22:49
@ethanjli ethanjli added this pull request to the merge queue May 23, 2026
Merged via the queue into master with commit f23a2ce May 24, 2026
13 checks passed
@ethanjli ethanjli deleted the ci-versioning branch May 24, 2026 00:08
@ethanjli
Copy link
Copy Markdown
Collaborator Author

ethanjli commented May 24, 2026

@gokugiant when you have a chance, could you please try deploying the ImSwitch Docker container image at https://github.com/openUC2/ImSwitch/pkgs/container/imswitch/887509239?tag=sha-f23a2ce to your RPi, in order to check what version string is reported from that ImSwitch container's frontend? Currently I don't have any practical way of testing the functionality of this PR myself on an RPi (because the RPi at my desk in the office is still not accessible either via Tailscale or via the office LAN, and I don't have a sufficiently fast/stable internet connection for the RPi I have with me) - so if you can test it, this would be very helpful. Thanks!

@ethanjli
Copy link
Copy Markdown
Collaborator Author

Here's a screenshot which @gokugiant sent me, confirming that the frontend reports the expected version strings:
image

Franzili pushed a commit that referenced this pull request May 27, 2026
This PR automatically sets the backend and frontend's version strings
from VCS information available during the build CI workflows, in order
to remove the need to manually/automatically create VCS commits for
updating version strings after changes are made.

The version strings produced by this PR do not follow the pseudoversion
format used in Go Modules or Forklift; instead, they look something like
"v2.1.192-89-g930ffbe-t20260523153301-pr278" for PR commits and
something like "v2.1.192-89-g930ffbe-t20260523153301" for non-PR
commits. For builds of pushed tags, they should look like "v2.2.0" (but
that functionality is not yet tested).

This work is tracked on Notion at
https://www.notion.so/Bake-VCS-info-into-the-ImSwitch-container-image-3574e612c78a8053929ce57897eee6c7?source=copy_link
Franzili pushed a commit that referenced this pull request May 30, 2026
This PR automatically sets the backend and frontend's version strings
from VCS information available during the build CI workflows, in order
to remove the need to manually/automatically create VCS commits for
updating version strings after changes are made.

The version strings produced by this PR do not follow the pseudoversion
format used in Go Modules or Forklift; instead, they look something like
"v2.1.192-89-g930ffbe-t20260523153301-pr278" for PR commits and
something like "v2.1.192-89-g930ffbe-t20260523153301" for non-PR
commits. For builds of pushed tags, they should look like "v2.2.0" (but
that functionality is not yet tested).

This work is tracked on Notion at
https://www.notion.so/Bake-VCS-info-into-the-ImSwitch-container-image-3574e612c78a8053929ce57897eee6c7?source=copy_link
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.

1 participant