Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930035 - app-portage/nattka: 'sanity-check' seems to update bugs by default, but claims otherwise
Summary: app-portage/nattka: 'sanity-check' seems to update bugs by default, but claim...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 23:54 UTC by Joshua Kinard
Modified: 2024-04-15 02:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2024-04-14 23:54:07 UTC
I *think* this is a bug in NATTkA?  I recently created a new 'stablereq' bug for net-dns/nsd-4.8.0-r1, Bug #930033, and then ran this command:
> nattka sanity-check 930033
NATTkA output the following text:
> WARNING:nattka:Running in pretend mode.
> WARNING:nattka:(pass --update-bugs to enable bug updates)
> INFO:nattka:NATTkA starting at 2024-04-14 23:04:07.026521
> INFO:nattka:Found 1 bugs
> INFO:nattka:Bug 930033 (STABLEREQ)
> gentoo -- updating profiles cache: x86
> INFO:nattka:All good
> INFO:nattka:CC arches: amd64@gentoo.org x86@gentoo.org
> INFO:nattka:Expanding package list
> INFO:nattka:New package list: =net-dns/nsd-4.8.0-r1 amd64 x86
> 
> INFO:nattka:New comment: None
> INFO:nattka:NATTkA exiting at 2024-04-14 23:04:22.982823
> INFO:nattka:Total time elapsed: 0:00:15.956302
The first two lines suggest that no changes are made to the bug, but about ~4mins after running the command, changes appeared on the bug.  I can't tell if they are from some server-side component of NATTkA or just Bugzilla being sluggish.

I would assume that if NATTkA is saying it's running in "pretend" mode by default, that no changes should happen to the bug at all, but it looks like NATTkA made changes anyways.
Comment 1 Ionen Wolkens gentoo-dev 2024-04-15 00:40:22 UTC
That update was done with the "NATTkA bot" bugzilla account (which runs automatically), unless you have + using the api key for it you can't do that yourself.

If used your own api key and without pretend mode, it'd show your own account.

Or am I misunderstanding something here?
Comment 2 Joshua Kinard gentoo-dev 2024-04-15 01:53:57 UTC
(In reply to Ionen Wolkens from comment #1)
> That update was done with the "NATTkA bot" bugzilla account (which runs
> automatically), unless you have + using the api key for it you can't do that
> yourself.
> 
> If used your own api key and without pretend mode, it'd show your own
> account.
> 
> Or am I misunderstanding something here?

So the "NATTkA bot" is a completely separate thing from app-portage/nattka?  I thought they were related.  Does this bot account do stablereq processing entirely on its own shortly after such a bug is created?
Comment 3 Ionen Wolkens gentoo-dev 2024-04-15 02:07:05 UTC
The nattka bot *is* using app-portage/nattka, just without pretend running on our infra. So I wouldn't call them unrelated -- but you can use it locally yourself (useful to confirm and the like), it just won't be using the same account if you were to actually update bugs.

...which is not something you normally need to do given infra's nattka checks all open keywording/stablereq bugs for updates. Usually pretty fast (few short minutes at most) to pickup changes. Like if added CC-ARCHES keyword, then it'll go ahead and cc amd64@g.o and friends for you after a short wait.

Anyhow, the command you ran locally did nothing to the bug.
Comment 4 Joshua Kinard gentoo-dev 2024-04-15 02:48:32 UTC
(In reply to Ionen Wolkens from comment #3)
> The nattka bot *is* using app-portage/nattka, just without pretend running
> on our infra. So I wouldn't call them unrelated -- but you can use it
> locally yourself (useful to confirm and the like), it just won't be using
> the same account if you were to actually update bugs.
> 
> ...which is not something you normally need to do given infra's nattka
> checks all open keywording/stablereq bugs for updates. Usually pretty fast
> (few short minutes at most) to pickup changes. Like if added CC-ARCHES
> keyword, then it'll go ahead and cc amd64@g.o and friends for you after a
> short wait.
> 
> Anyhow, the command you ran locally did nothing to the bug.

Yup, so this boils down to a misunderstanding on my part, then.  I thought the tool being used locally triggered the bot to do something to a bug.  Would explain why there seemed to be a time lag between when I ran the command locally and then the bug got modified by the bot -- automated action on the server.  Okay, TIL!