WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
227709
[webkitscmpy] Handle failed `git log` process
https://bugs.webkit.org/show_bug.cgi?id=227709
Summary
[webkitscmpy] Handle failed `git log` process
Aakash Jain
Reported
2021-07-06 09:26:04 PDT
Incorrect commit identifier on igalia-jsc32-armv7-ews (
https://ews-build.webkit.org/#/workers/81
). Earlier this bot was having issues with git (e.g.:
https://ews-build.webkit.org/#/builders/38/builds/31141
). After the issue was fixed, the commit identifiers incorrectly started from
2@main
. e.g.:
https://ews-build.webkit.org/#/builders/38/builds/31142
,
https://ews-build.webkit.org/#/builders/38/builds/31234
Attachments
Patch
(2.56 KB, patch)
2021-07-13 08:37 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(2.54 KB, patch)
2021-07-13 11:06 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(2.54 KB, patch)
2021-07-13 15:44 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2021-07-12 08:07:01 PDT
This is fallout from
https://bugs.webkit.org/show_bug.cgi?id=225616
, we have a bad cache. This cache is trivial to clear (it's in .git/identifiers.json), but I don't know how to access this bot. I'll need to explore a bit to understand how we got a bad cache, because that's clearly a bug. But now that we have a bad one, this behavior is not surprising.
Angelos Oikonomopoulos
Comment 2
2021-07-13 02:35:34 PDT
(In reply to Jonathan Bedard from
comment #1
)
> This is fallout from
https://bugs.webkit.org/show_bug.cgi?id=225616
, we have > a bad cache. This cache is trivial to clear (it's in .git/identifiers.json), > but I don't know how to access this bot.
Thanks for the tip, I just deleted .git/identifiers.json in igalia-jsc32-armv7-ews-02.
> I'll need to explore a bit to understand how we got a bad cache, because > that's clearly a bug. But now that we have a bad one, this behavior is not > surprising.
FWIW the issue that Aakash linked to above caused git to exit early for lots of operations, so perhaps this broke some assumption about a git operation that "cannot possibly fail" in the code that manages the identifier cache?
Jonathan Bedard
Comment 3
2021-07-13 08:09:34 PDT
(In reply to Angelos Oikonomopoulos from
comment #2
)
> (In reply to Jonathan Bedard from
comment #1
) > > This is fallout from
https://bugs.webkit.org/show_bug.cgi?id=225616
, we have > > a bad cache. This cache is trivial to clear (it's in .git/identifiers.json), > > but I don't know how to access this bot. > > Thanks for the tip, I just deleted .git/identifiers.json in > igalia-jsc32-armv7-ews-02. > > > I'll need to explore a bit to understand how we got a bad cache, because > > that's clearly a bug. But now that we have a bad one, this behavior is not > > surprising. > > FWIW the issue that Aakash linked to above caused git to exit early for lots > of operations, so perhaps this broke some assumption about a git operation > that "cannot possibly fail" in the code that manages the identifier cache?
Almost certainly `git log`, I guess I need to start checking exit codes for that process
Radar WebKit Bug Importer
Comment 4
2021-07-13 08:33:19 PDT
<
rdar://problem/80520002
>
Jonathan Bedard
Comment 5
2021-07-13 08:37:53 PDT
Created
attachment 433406
[details]
Patch
Jonathan Bedard
Comment 6
2021-07-13 11:06:59 PDT
Created
attachment 433422
[details]
Patch
Aakash Jain
Comment 7
2021-07-13 15:02:12 PDT
Comment on
attachment 433422
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=433422&action=review
rs=me
> Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:166 > + return
what is the consequence of returning here?
Jonathan Bedard
Comment 8
2021-07-13 15:39:12 PDT
(In reply to Aakash Jain from
comment #7
)
> Comment on
attachment 433422
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=433422&action=review
> > rs=me > > > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:166 > > + return > > what is the consequence of returning here?
By returning here, we basically throw out the whole result of `git log`, since we don't cache it until after we finish the commands (because we essentially need to cache it backwards). If we don't have a cache, we compute things the way we did before the cache.
Aakash Jain
Comment 9
2021-07-13 15:41:49 PDT
(In reply to Jonathan Bedard from
comment #8
)
> By returning here, we basically throw out the whole result of `git log`, > since we don't cache it until after we finish the commands (because we > essentially need to cache it backwards). If we don't have a cache, we > compute things the way we did before the cache.
ok, sounds good.
Jonathan Bedard
Comment 10
2021-07-13 15:44:09 PDT
Created
attachment 433452
[details]
Patch for landing
EWS
Comment 11
2021-07-13 16:58:21 PDT
Committed
r279898
(
239648@main
): <
https://commits.webkit.org/239648@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 433452
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug