Opened 2 months ago
Last modified 10 days ago
#24234 new task
Update tag2link component
Reported by: | leni | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 25.06 |
Component: | Core tag2link | Version: | |
Keywords: | Cc: | taylor.smock |
Description
It seems to me that the Automatic update for 2025.2.21 has not been taken into account :
My JOSM version is 19342
I can't find the changes to the Key:ref:UAI
(see screenshot)
Attachments (1)
Change History (32)
by , 2 months ago
Attachment: | ref_UAI.png added |
---|
comment:1 by , 2 months ago
Milestone: | → 25.05 |
---|
See also https://github.com/JOSM/tag2link/issues/12
Problem is that I really have no idea where and how the jar files have been created and pushed, so I need to reinvent it if nobody else does.
comment:2 by , 2 months ago
Ah, seems in principle it should work, but the GitHub action is broken ATM.
comment:3 by , 2 months ago
That's my ticket btw. I've looked at the pipeline and it has weird logic so I started rewriting to make it simpler. I have a fork for the PR, but these changes haven't been commited yet.
comment:4 by , 2 months ago
I've seen that the release jar contains stuff not belonging (like the .git and .github folders), but yesterday didn't even find the exact place where the file is created.
comment:5 by , 2 months ago
I'm sorry I don't have the technical knowledge to help: I talked about it on the French forum.
comment:6 by , 2 months ago
Cc: | added |
---|
@leni:
Didn't expect that you can solve the issue. ;-)
@gaben:
From the workflow run it seems that in "release.yaml" the git stays on the previous git version instead of the newly created. Looks like an issue with parallel execution when going from scheduled_update.yaml to release.yaml. Then the exit function to prevent a bad upload kicks in.
comment:7 by , 2 months ago
Yes, there are some issue with parallel execution.
I always meant to make changes and see if I could fix it, but never got around to it.
I think I needed to make another workflow, and just have it triggered by the auto update. Either that or a git pull
/git checkout master
should do it in the tag
action, and then checkout that tag in the next steps.
EDIT: To be clear, I'll look into it right now.
comment:8 by , 2 months ago
@taylor, can you make a PR before merging? I'll try to add my changes from last month.
comment:10 by , 2 months ago
I now added a manual change to trigger release and that worked. ;-) Should be useful in case of future trouble...
@taylor:
Solving the automatic would be fine. The "git pull/git checkout master" would also have been my next try although it feels like a workaround. ;-)
I'm not really an GitHub workflow expert and also don't want to become one.
comment:11 by , 2 months ago
Fair. What I'm probably actually going to do is set a variable for the new HEAD, pass it to the tag action, and set a variable for that tag which I can use later. I'll have to read the GH Action docs again, but it is possible to do.
comment:12 by , 2 months ago
P.S. publish-npm-registry-github fails, but with the strange message that This command requires you to be logged in to https://registry.npmjs.org/
instead of npm.pkg.github.com
which I would expect for that action.
follow-up: 14 comment:13 by , 2 months ago
That is funny; it looks like it worked ( https://www.npmjs.com/package/tag2link ).
When I took over the repo from simon04, I tried to make certain that the package locations stayed the same.
I might have to update the NPM publishing key for GH actions.
EDIT: NVM. publish-npm-registry-github, not publish-npm-registry-npmjs. Yeah. I never got that working. It was on my list of things to do, but I was only trying to make a change once per month (if I remembered).
comment:14 by , 2 months ago
Replying to taylor.smock:
That is funny; it looks like it worked ( https://www.npmjs.com/package/tag2link ).
When I took over the repo from simon04, I tried to make certain that the package locations stayed the same.
I might have to update the NPM publishing key for GH actions.
EDIT: NVM. publish-npm-registry-github, not publish-npm-registry-npmjs. Yeah. I never got that working. It was on my list of things to do, but I was only trying to make a change once per month (if I remembered).
It is redundant I assume. So disabling would also be an option.
comment:16 by , 2 months ago
@gaben: https://github.com/JOSM/tag2link/pull/13
It should checkout the right ref now. We'll see the month after I merge the changes. :)
I think it will work with @stoecker's manual action change.
comment:17 by , 2 months ago
Thanks, I've added what I've done so far: https://github.com/JOSM/tag2link/pull/14
I'm in the middle of an import, but soon I can look into it. I think the build step can be put in a separate "reusable" step, in which case the version numbering across three files can be avoided.
comment:18 by , 2 months ago
Milestone: | 25.05 → 25.04 |
---|
comment:19 by , 6 weeks ago
Milestone: | 25.04 → 25.05 |
---|
comment:20 by , 2 weeks ago
Automatic upload failed. I added a missing "fi" in the action.
Manual build also fails:
https://github.com/JOSM/tag2link/actions/runs/15188164276/job/42713707151
Run git describe --all git describe --all shell: /usr/bin/bash -e {0} fatal: No names found, cannot describe anything. Error: Process completed with exit code 128.
comment:21 by , 2 weeks ago
No clue why the describe is there -- I assume you added it for debug purposes.
comment:22 by , 2 weeks ago
No idea as well. Removed it.
Waiting another month for auto job...
Is there any way to either disable the github npm deploy without removing it or fix it?
follow-up: 24 comment:23 by , 2 weeks ago
I think #
will comment it out. But it looks like you already dropped it.
comment:24 by , 2 weeks ago
Replying to taylor.smock:
I think
#
will comment it out. But it looks like you already dropped it.
Yes. I think enough time was spent to fix an unused feature.
My research yesterday indicated it anyway will only work with workarounds.
comment:25 by , 2 weeks ago
It may be ‘little used’, but ‘used’ nonetheless: the update was not made https://forum.openstreetmap.fr/t/mettre-a-jour-les-url-dans-josm-pour-la-ref-uai/30681/11, and then after your intervention in March the change in the value for ref:UAI was taken into account in JOSM https://forum.openstreetmap.fr/t/mettre-a-jour-les-url-dans-josm-pour-la-ref-uai/30681/19.
follow-up: 27 comment:26 by , 2 weeks ago
I think there might be a communication issue here.
stoecker killed the script that was trying to publish to github packages. To the best of my knowledge, that never worked.
What you are talking about is "merely" just an update to the dependency in JOSM. That is fairly easy to do, if a bit manual (we need to bump a version number in the build scripts).
The bit of the release process that needs to work is the publish-webjar
step; that is what we then use in JOSM. It depends upon the step that publishes to the NPM registry, which does work.
We do not currently have a process which automatically bumps "known good" dependencies to their latest version. The tag2link component would be the one dependency which would be "ok" to automatically bump. Everything else needs (at least) minimal testing before commit.
I should have some time this weekend to look into it -- I started a new job recently which also involved a move.
The problem here is we are interacting with other people's systems. Yes, we could change the script so that it attempts to publish daily, but that seems like it will be excessive as far as other people's systems go.
TBH, I should probably look into detecting the already published package and skipping the remainder of the step.
follow-up: 29 comment:27 by , 2 weeks ago
Replying to taylor.smock:
What you are talking about is "merely" just an update to the dependency in JOSM.
Yes, I think that's it,
I'm sorry, I'm not good enough at English and I don't know the technique and development, I'm a neophyte; but if the automation is complicated and doesn't need to work often, it's perhaps not necessary to spend time developing/repairing it, a text in the wiki would perhaps be enough explaining it and asking you to be warned when an update is needed.
comment:29 by , 2 weeks ago
Replying to leni:
but if the automation is complicated and doesn't need to work often, it's perhaps not necessary to spend time developing/repairing it
Not really complicated, but only run once a month and thus fixing bugs takes loooooooong ;-)
But I'm sure there will be a day when it works...
ref:UAI