-
Notifications
You must be signed in to change notification settings - Fork 17
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
[Bug] Command line warnings suggests things going wrong (v0.6.7) #289
Comments
It would have to be checked whether the corresponding tokens expired. As for GitLab. Warning 1 looks to be coming from the way GUI is started. Maybe wasn't done via phone and has no auth to Re Forgejo: I wonder if someone just put in their SPEC |
AFAIU this can only be done by the one who created the token ("token owner"), correct?
I see, that I should have been more concise and have to add additional information:
@jaimeMF, do you have any additional observations to add?
Hmm, I am not sure if I parse this statement correctly. If you mean to ask if the new code was not tested thoroughly: Well, initially this is basically what the author of the code wrote ("tested via OTOH there was an explicit call for reviewing the code. As I was the only one looking at this (I would not call my few checks&balances questions "a review") and there currently is no other user than the code author @nephros himself, I decided after 2½ weeks to ask nephros to self-review his code and merged PR #271 after positive feedback from him. |
I checked and it seems to be expired. Made a new one and set it at OBS (testing and chum). Unfortunately, they let it do for a year in a time. Rebuilds started at OBS. BTW, it can probably be tested by trying to use it for accessing GraphGL API
Hmm, terminal from the phone should be fine. I would have tested by starting from Lipstick itself and traced journal for the messages. But your way should be OK. No idea then
No, I mean that maybe someone managed to put "" in the SPEC of one of the packages at OBS Chum or Testing.
I am sorry for taking so long time or skipping the replies. Its due to allocating too little time to work on SFOS during a last year or more. But its great that you actively maintain Chum GUI and there are new contributors coming in. Thank you for it! |
Thank you, now all the GitLab authentication warnings are gone when using the new build; i.e. only categories 1 and 3 remain from the initial post in this discussion thread.
Because that was my initial suspicion, I triple checked all tokens to be without quotes at the SFOS-OBS and enclosed in double-quotes as GH-secrets (this is why all secrets were dated "7 days ago"):
I assume the fact that there are no GitHub-related authentication warnings means that I did this correctly.
Its my pleasure freeing you and @piggz from tedious tasks as handling issues and PRs, release management, maintaining the infrastructure (CI workflows etc.), documentation etc., so you can take care of maintaining the code you originally wrote (and writing code at other places). Both of you know that writing and properly reviewing C++ and QML code is about the only thing I cannot help you out with, hence we have to implement some mechanism by which I can "summon" ( 😉 ) at least one of you in a timely manner (i.e. a few weeks) to review and reply to questions arising during the review, after I performed the initial handling of a PR (checking that it makes sense, trying to understand what the code exactly does, asking basic Checks&Balances questions). |
I tested the forgejo support using my own token, built with the GH action of my forked repo. What I tested using Please note that when initializing the GH, GL and FJ/gitea support, we iterate URLs given in .spec or Chum metadata. (See the Some of the 'Not found' errors will come from that, when any of the metadata URLs is actually wrong, or the guess is wrong. But. The URL given in the Forgejo error message does seem wrong, it looks like I have a bug in constructing the URL, will check that:
I guess that should be |
Actually no. This has been corrected in the Chum:Testing version via: https://codeberg.org/nephros/sailfish-moreutils/commit/183f6421bf1aeddbdc6da3cde37f1fa791e53cba In such a case the parseUrl method, which splits on "/" characters, will determine the wrong repository 'slug', i.e. username/reponame combination, leading to a try to get metadata for a nonexisting repo, and is correctly reporting the result: While this is an Error on the API side, it's not an error for the Chum GUI, because we can happily continue without the repo metadata having been fetched (so we report a Warning about the error). |
The command line output now is:
So we are down to twice the same error (?!?) from a single package@codeberg. I was just looking at Hence I just slightly wonder, why it was reported twice, but that was also the case for all GitLab repos (when they still failed) in two rounds (iterating over all repos). |
Nice, now we are down to only the single category 1, which remains from the initial post in this discussion thread. To which rinigus replied:
Edit: BS, I can do that, so I did it. Edit 2: But I missed another remaining question to @rinigus and @piggz:
|
One thing that may lead to this is when URLs are given multiple times in the metadata. We try three URLs in order:
If two are e.g. Gitlab URLs but lead to an error, and the third is not a Gitlab URL, you'll see two Warnings about (This does not seem to be the case for the example with Forejo/moreutils here though.) |
When I start it on CLI, I get a polkit popup asking for a security code or fingerprint confirmation ("Authentication is required to change software repository parameters"). This sounds like it is coming from Now, whether you get that prompt, or get the "Use code of fingerprint" prompt on the terminal IME very much depends on how the user session was started. I haven't figured out what exactly makes this difference, but it's definitely different whether the session was started from the phone, or via ssh. |
AFAIU the WRT the only remaining warning ("…
I guess this is why rinigus made me try both, which made no difference. But I do not see a |
Another observationI accidentally hit "Remove" in the pulley menu while having |
I would have to figure out how to start sorting emails from Github. Last night resulted in 32 new emails and it is not trivial to find such ping in them. Sure, try to either ping or request review. I'll try to respond. |
Yes, GH (email) notifications are annoyingly plenty. Jolla Mind2 will sort this out ;) Myself, I use sailfish github integration (shameless plug) while we're waiting. |
With v0.6.7-3 there are only a two warnings of this issue report left, which are:
and
I.e. all warnings, which constituted real errors, appear to be eliminated now. The two aforementioned, remaining warnings may be cosmetic issues, though the second one ("another observation") still has to be tested more thoroughly. |
When the SailfishOS:Chum GUI app is started at the command line, it emits a lot of warnings related to repository authentication. This was observed with
sailfishos-chum-gui-0.6.7-2
on SailfishOS 4.5.0 and 3.2.1. These warnings address three different repository hosters:[W] unknown:0 - Failed to refresh Chum repository "Failed to obtain authentication."
But this does not seem to be true (see section "Next try, …"), at the GUI this refresh appears to be working fine.
[W] unknown:0 - GitLab: Failed to fetch repository data for GitLab "<name>/<repo>"
[W] unknown:0 - GitLab: Error: "Host requires authentication"
[W] unknown:0 - Forgejo: Failed to fetch repository data for Forgejo "<repo>"
[W] unknown:0 - Forgejo: Error: "Error transferring https://codeberg.org/api/v1/repos/<repo> - server replied: Not Found"
Ultimately, either some or all of these warnings are wrong (because on first sight all seems to be working fine, but this assessment lacks thorough scrutinising) or something does go wrong with the repository authentication.
I quickly checked the access tokens and they seem to be correct: at GitHub with quoting (i.e. framed in quotation marks / "double quotes"), at the Sailfish-OBS bare, i.e. without quoting, in both cases occupying a single line without a concluding newline character.
The text was updated successfully, but these errors were encountered: