Summary: | [results.webkit.org] Refresh S3 context when token expires | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jonathan Bedard <jbedard> | ||||||
Component: | Tools / Tests | Assignee: | Jonathan Bedard <jbedard> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | aakash_jain, dewei_zhu, ryanhaddad, slewis, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Jonathan Bedard
2020-10-19 15:22:37 PDT
Created attachment 411806 [details]
Patch
Comment on attachment 411806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411806&action=review > Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/s3_archiver.py:92 > + if self._cached_token != self.credentials.aws_session_token: Maybe adding a null check here or assert on constructor to make sure self.credentials is not None? Comment on attachment 411806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411806&action=review >> Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/s3_archiver.py:92 >> + if self._cached_token != self.credentials.aws_session_token: > > Maybe adding a null check here or assert on constructor to make sure self.credentials is not None? I can put this check in the __init__, because (although the review hides it), line 63 will raise an exception first. Created attachment 411811 [details]
Patch
Comment on attachment 411806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=411806&action=review >>> Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/s3_archiver.py:92 >>> + if self._cached_token != self.credentials.aws_session_token: >> >> Maybe adding a null check here or assert on constructor to make sure self.credentials is not None? > > I can put this check in the __init__, because (although the review hides it), line 63 will raise an exception first. Got it. r=me Committed r268702: <https://trac.webkit.org/changeset/268702> All reviewed patches have been landed. Closing bug and clearing flags on attachment 411811 [details]. |