[GH-ISSUE #5756] Tag smoke test installed v3.4.1 for the v3.4.2 release #4005

Closed
opened 2026-10-31 20:36:28 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @zenvor on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5756

Problem

The v3.4.2 tag-triggered Deploy Smoke Tests run installed v3.4.1, not v3.4.2.

Smoke run:
https://github.com/MHSanaei/3x-ui/actions/runs/28394069231

amd64 log:

2026-06-29T18:30:45Z Got x-ui latest version: v3.4.1, beginning the installation...
2026-06-29T18:31:03Z x-ui v3.4.1 installation finished, it is running now...

arm64 log:

2026-06-29T18:31:04Z Got x-ui latest version: v3.4.1, beginning the installation...
2026-06-29T18:31:43Z x-ui v3.4.1 installation finished, it is running now...

Why it matters

The smoke workflow was triggered by the v3.4.2 tag, but it validated the previous release. So the green smoke result did not actually verify the v3.4.2 install path.

Likely cause

smoke.yml runs on tag pushes, but install.sh downloads releases/latest. During a release, releases/latest may still point to the previous release while release.yml is still building/uploading the new assets.

Expected behavior

A tag-triggered smoke test should install the current tag version, or run only after that release's assets are available.

Originally created by @zenvor on GitHub (Jul 3, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5756 ### Problem The `v3.4.2` tag-triggered `Deploy Smoke Tests` run installed `v3.4.1`, not `v3.4.2`. Smoke run: https://github.com/MHSanaei/3x-ui/actions/runs/28394069231 amd64 log: ```text 2026-06-29T18:30:45Z Got x-ui latest version: v3.4.1, beginning the installation... 2026-06-29T18:31:03Z x-ui v3.4.1 installation finished, it is running now... ``` arm64 log: ```text 2026-06-29T18:31:04Z Got x-ui latest version: v3.4.1, beginning the installation... 2026-06-29T18:31:43Z x-ui v3.4.1 installation finished, it is running now... ``` ### Why it matters The smoke workflow was triggered by the `v3.4.2` tag, but it validated the previous release. So the green smoke result did not actually verify the `v3.4.2` install path. ### Likely cause `smoke.yml` runs on tag pushes, but `install.sh` downloads `releases/latest`. During a release, `releases/latest` may still point to the previous release while `release.yml` is still building/uploading the new assets. ### Expected behavior A tag-triggered smoke test should install the current tag version, or run only after that release's assets are available.
bsakaguchi 2026-10-31 20:36:28 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 3, 2026):

Confirmed. I reproduced the root cause independently against the actual MHSanaei/3x-ui v3.4.2 release data (not just the numbers in this report):

  • The commit tagged v3.4.2 is f3a57d4, and it only touches internal/config/version (gh api repos/MHSanaei/3x-ui/commits/v3.4.2).
  • .github/workflows/smoke.yml triggers on push with a paths filter limited to install.sh, deploy/**, and .github/workflows/smoke.yml, and has no branches:/tags: key.
  • Despite the tagged commit touching none of those paths, Deploy Smoke Tests still ran for the v3.4.2 tag push: run 28394069231 (https://github.com/MHSanaei/3x-ui/actions/runs/28394069231), event: push, head_branch: v3.4.2, started 2026-06-29T18:30:21Z - matching your timestamps exactly. Its log literally reads Got x-ui latest version: v3.4.1, beginning the installation....
  • The release assets for v3.4.2 were uploaded 18:33:01Z-18:33:38Z (gh release view v3.4.2 --json assets), i.e. after the smoke run had already finished at 18:31:50Z.

This confirms your diagnosis precisely: GitHub's paths filter does not reliably gate a brand-new tag-ref push (there is no prior commit on that ref to diff against), so smoke.yml runs unconditionally on every tag push even though it was only intended to run "only when the install/deploy assets change" (per its own header comment). Combined with deploy/test/smoke-noninteractive.sh invoking install.sh via cat /root/install.sh | bash (no arguments), the smoke test always takes install_x-ui's zero-arg branch, which unconditionally resolves https://api.github.com/repos/MHSanaei/3x-ui/releases/latest (install.sh line ~1368) instead of the tag being released.

Of the options you listed, two map directly onto what is in the repo today:

  • Skip tag pushes: adding an explicit branches: ["**"] to smoke.yml's push trigger (with no tags: key) would exclude tag refs entirely, since branch/tag ref filters are evaluated independently of the paths filter and do not depend on diffing a new ref against prior state.
  • Pin the smoke test to the tag: install.sh already supports installing an explicit version via its non-zero-arg branch (install_x-ui "$tag_version", install.sh line ~1385), but smoke-noninteractive.sh never passes a version through. Threading the tag (e.g. GITHUB_REF_NAME when triggered by a tag push) into install.sh would make the smoke test validate the tag under test instead of whatever releases/latest currently resolves to.

The other two options (sequencing smoke.yml after release.yml via workflow_run, or delaying release publication until all assets are uploaded) are also plausible but would require restructuring release.yml's job graph, which is more invasive.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:4874101284 --> @github-actions[bot] commented on GitHub (Jul 3, 2026): Confirmed. I reproduced the root cause independently against the actual `MHSanaei/3x-ui` v3.4.2 release data (not just the numbers in this report): - The commit tagged `v3.4.2` is `f3a57d4`, and it only touches `internal/config/version` (`gh api repos/MHSanaei/3x-ui/commits/v3.4.2`). - `.github/workflows/smoke.yml` triggers on `push` with a `paths` filter limited to `install.sh`, `deploy/**`, and `.github/workflows/smoke.yml`, and has no `branches:`/`tags:` key. - Despite the tagged commit touching none of those paths, `Deploy Smoke Tests` still ran for the `v3.4.2` tag push: run `28394069231` (https://github.com/MHSanaei/3x-ui/actions/runs/28394069231), `event: push`, `head_branch: v3.4.2`, started `2026-06-29T18:30:21Z` - matching your timestamps exactly. Its log literally reads `Got x-ui latest version: v3.4.1, beginning the installation...`. - The release assets for `v3.4.2` were uploaded `18:33:01Z`-`18:33:38Z` (`gh release view v3.4.2 --json assets`), i.e. after the smoke run had already finished at `18:31:50Z`. This confirms your diagnosis precisely: GitHub's `paths` filter does not reliably gate a brand-new tag-ref push (there is no prior commit on that ref to diff against), so `smoke.yml` runs unconditionally on every tag push even though it was only intended to run "only when the install/deploy assets change" (per its own header comment). Combined with `deploy/test/smoke-noninteractive.sh` invoking `install.sh` via `cat /root/install.sh | bash` (no arguments), the smoke test always takes `install_x-ui`'s zero-arg branch, which unconditionally resolves `https://api.github.com/repos/MHSanaei/3x-ui/releases/latest` (`install.sh` line ~1368) instead of the tag being released. Of the options you listed, two map directly onto what is in the repo today: - **Skip tag pushes**: adding an explicit `branches: ["**"]` to `smoke.yml`'s `push` trigger (with no `tags:` key) would exclude tag refs entirely, since branch/tag ref filters are evaluated independently of the `paths` filter and do not depend on diffing a new ref against prior state. - **Pin the smoke test to the tag**: `install.sh` already supports installing an explicit version via its non-zero-arg branch (`install_x-ui "$tag_version"`, `install.sh` line ~1385), but `smoke-noninteractive.sh` never passes a version through. Threading the tag (e.g. `GITHUB_REF_NAME` when triggered by a tag push) into `install.sh` would make the smoke test validate the tag under test instead of whatever `releases/latest` currently resolves to. The other two options (sequencing `smoke.yml` after `release.yml` via `workflow_run`, or delaying release publication until all assets are uploaded) are also plausible but would require restructuring `release.yml`'s job graph, which is more invasive. *This reply was generated automatically. A maintainer may follow up.*
Author
Owner

@zenvor commented on GitHub (Jul 3, 2026):

Additional confirmation: both workflows were triggered by the same v3.4.2 tag push and ran concurrently.

  • Release 3X-UI: run 28394069203, event: push, head_branch: v3.4.2, started 2026-06-29T18:30:21Z, finished 18:33:44Z.
  • Deploy Smoke Tests: run 28394069231, event: push, head_branch: v3.4.2, started 2026-06-29T18:30:21Z, finished 18:31:50Z.
  • The v3.4.2 release assets were uploaded later, from 18:33:01Z to 18:33:38Z.

So the smoke test was already running, and finished, while the release packaging/upload was still in progress. That explains why install.sh resolved releases/latest to the previous release and installed v3.4.1 instead of v3.4.2.

<!-- gh-comment-id:4874208319 --> @zenvor commented on GitHub (Jul 3, 2026): Additional confirmation: both workflows were triggered by the same `v3.4.2` tag push and ran concurrently. - `Release 3X-UI`: run `28394069203`, `event: push`, `head_branch: v3.4.2`, started `2026-06-29T18:30:21Z`, finished `18:33:44Z`. - `Deploy Smoke Tests`: run `28394069231`, `event: push`, `head_branch: v3.4.2`, started `2026-06-29T18:30:21Z`, finished `18:31:50Z`. - The `v3.4.2` release assets were uploaded later, from `18:33:01Z` to `18:33:38Z`. So the smoke test was already running, and finished, while the release packaging/upload was still in progress. That explains why `install.sh` resolved `releases/latest` to the previous release and installed `v3.4.1` instead of `v3.4.2`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4005
No description provided.