mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5756] Tag smoke test installed v3.4.1 for the v3.4.2 release #4005
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4005
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zenvor on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5756
Problem
The
v3.4.2tag-triggeredDeploy Smoke Testsrun installedv3.4.1, notv3.4.2.Smoke run:
https://github.com/MHSanaei/3x-ui/actions/runs/28394069231
amd64 log:
arm64 log:
Why it matters
The smoke workflow was triggered by the
v3.4.2tag, but it validated the previous release. So the green smoke result did not actually verify thev3.4.2install path.Likely cause
smoke.ymlruns on tag pushes, butinstall.shdownloadsreleases/latest. During a release,releases/latestmay still point to the previous release whilerelease.ymlis 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.
@github-actions[bot] commented on GitHub (Jul 3, 2026):
Confirmed. I reproduced the root cause independently against the actual
MHSanaei/3x-uiv3.4.2 release data (not just the numbers in this report):v3.4.2isf3a57d4, and it only touchesinternal/config/version(gh api repos/MHSanaei/3x-ui/commits/v3.4.2)..github/workflows/smoke.ymltriggers onpushwith apathsfilter limited toinstall.sh,deploy/**, and.github/workflows/smoke.yml, and has nobranches:/tags:key.Deploy Smoke Testsstill ran for thev3.4.2tag push: run28394069231(https://github.com/MHSanaei/3x-ui/actions/runs/28394069231),event: push,head_branch: v3.4.2, started2026-06-29T18:30:21Z- matching your timestamps exactly. Its log literally readsGot x-ui latest version: v3.4.1, beginning the installation....v3.4.2were uploaded18:33:01Z-18:33:38Z(gh release view v3.4.2 --json assets), i.e. after the smoke run had already finished at18:31:50Z.This confirms your diagnosis precisely: GitHub's
pathsfilter does not reliably gate a brand-new tag-ref push (there is no prior commit on that ref to diff against), sosmoke.ymlruns 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 withdeploy/test/smoke-noninteractive.shinvokinginstall.shviacat /root/install.sh | bash(no arguments), the smoke test always takesinstall_x-ui's zero-arg branch, which unconditionally resolveshttps://api.github.com/repos/MHSanaei/3x-ui/releases/latest(install.shline ~1368) instead of the tag being released.Of the options you listed, two map directly onto what is in the repo today:
branches: ["**"]tosmoke.yml'spushtrigger (with notags:key) would exclude tag refs entirely, since branch/tag ref filters are evaluated independently of thepathsfilter and do not depend on diffing a new ref against prior state.install.shalready supports installing an explicit version via its non-zero-arg branch (install_x-ui "$tag_version",install.shline ~1385), butsmoke-noninteractive.shnever passes a version through. Threading the tag (e.g.GITHUB_REF_NAMEwhen triggered by a tag push) intoinstall.shwould make the smoke test validate the tag under test instead of whateverreleases/latestcurrently resolves to.The other two options (sequencing
smoke.ymlafterrelease.ymlviaworkflow_run, or delaying release publication until all assets are uploaded) are also plausible but would require restructuringrelease.yml's job graph, which is more invasive.This reply was generated automatically. A maintainer may follow up.
@zenvor commented on GitHub (Jul 3, 2026):
Additional confirmation: both workflows were triggered by the same
v3.4.2tag push and ran concurrently.Release 3X-UI: run28394069203,event: push,head_branch: v3.4.2, started2026-06-29T18:30:21Z, finished18:33:44Z.Deploy Smoke Tests: run28394069231,event: push,head_branch: v3.4.2, started2026-06-29T18:30:21Z, finished18:31:50Z.v3.4.2release assets were uploaded later, from18:33:01Zto18:33:38Z.So the smoke test was already running, and finished, while the release packaging/upload was still in progress. That explains why
install.shresolvedreleases/latestto the previous release and installedv3.4.1instead ofv3.4.2.