-
Notifications
You must be signed in to change notification settings - Fork 136
fix(ci/package_on_device): do not conflict gh release upload archive filename with packages.yml
#2044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
licy183
merged 7 commits into
termux-user-repository:master
from
robertkirkman:fix-conflict-of-editing-tur-folder-and-tur-on-device-folder-simultaneously
Nov 9, 2025
Merged
fix(ci/package_on_device): do not conflict gh release upload archive filename with packages.yml
#2044
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
567d9ff
revbump(tur/darktable): for `imath` 3.2.2
robertkirkman ae62403
revbump(tur-on-device/openshadinglanguage): for `imath` 3.2.2
robertkirkman 27e670b
revbump(tur-on-device/usd): for `openvdb` 13.0.0
robertkirkman fbeab76
revbump(tur-on-device/blender): for `openvdb` 13.0.0
robertkirkman b0468c5
revbump(tur-on-device/blender4): for `openvdb` 13.0.0
robertkirkman ef9e23c
fix(ci/package_on_device): do not conflict `gh release upload` `archi…
robertkirkman cb8b820
fix(common-files/building-system-patches): change `git fetch` in `lin…
robertkirkman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
common-files/building-system-patches/0009-allow-lint-packages-version-check.patch
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| 'git reset HEAD~' is TEMPORARY - work around bug in lint-packages.sh | ||
| will discuss with Tomjo2000 and fix upstream later | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have discussed now, and we think that it will get fixed by today's update to this: this patch can be rebased to remove |
||
|
|
||
| --- a/scripts/lint-packages.sh | ||
| +++ b/scripts/lint-packages.sh | ||
| @@ -124,7 +124,8 @@ check_indentation() { | ||
| # We'll need the 'origin/master' as a base commit when running the version check. | ||
| # So try fetching it now if it doesn't exist. | ||
| +git reset HEAD~ | ||
| if ! base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)"; then | ||
| - git fetch https://github.com/termux/termux-packages.git | ||
| + git fetch https://github.com/termux-user-repository/tur.git | ||
| base_commit="HEAD~$(git rev-list --count FETCH_HEAD..)" | ||
| fi | ||
|
|
||
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@licy183 do you think this will work?
I don't want to separate packages of
turandtur-on-devicefolders into separate PRs,instead, I want to try to fix it permanently so that the problem never occurs again.
However, unfortunately, I don't understand exactly what causes the problem, only that there was an error with this file conflicting because both workflows ran in 1 PR.
Can the code which takes the
unprocessed_debfilehttps://github.com/termux-user-repository/tur/releases/tag/0.1 and sends it to https://tur.kcubeterm.com automatically handle the filename sometimes being something different, likedebs-{aarch64,arm,i686,x86_64}-${{ github.sha }}-tur-on-device.tar, or will that not work and it has to be exactlydebs-{aarch64,arm,i686,x86_64}-${{ github.sha }}.tarevery time?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work correctly. Currently, the scripts in the dists repo do not validate filenames.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work as the CI reuse can't pick up the files uploaded by the on-device worflow. The best way to avoid this is avoid building tur-on-device packages and tur packages in the same MR.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no... actually, I did not ever know whether CI reuse would actually work with tur-on-device or not.
The reason why I pasted the lines for it in this commit 70cc0df was because if I didn't do that, a build error occurred because of a variable or setting of some kind missing that prevented building all tur-on-device packages at all after the merge of CI reuse in the main repository.
I don't know how to fix it, so it is necessary to disable CI reuse for all PRs which modify tur-on-device packages.
I am trying again here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, CI reuse can work on tur-on-device.
The situation where it doesn't work properly is when the packages from tur and tur-on-device are modified in the same PR.
I think there is no need to revert it. I've uploaded them manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that it didn't because I saw this log, in an earlier PR where I modified only tur-on-device packages:
https://github.com/termux-user-repository/tur/actions/runs/19011632972/job/54293393376
Do you know of an example where it worked?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should work, but I actually don't know whether it works. The most important thing is to avoid modifying
build.shs in bothturandtur-on-devicein the same PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to fix it so that modifying
build.shin bothturandtur-on-devicein the same PR is possible,because I do not want anyone else to ever encounter the same problem, and the draft PR I opened can do that
However, it does it by disabling the CI reuse for
tur-on-devicePRs.I will try to figure out any possible way to do it without disabling the CI reuse.
I believe that part of the problem is that the CI reuse has never worked properly for
tur-on-devicepackages (which can be seen in the log above), and fixing that might be where I can start, I don't know how to fix it yet but I will tryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See, it appears that the CI reuse still does not ever work in tur-on-device even if only tur-on-device packages are modified in the PR.
I still will continue trying to figure out how to fix it