mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
gitlab-ci: Fix traces caching in tracie
We are currently comparing a hex string representation of the git lfs OID with a byte array representation of the locally calculated OID, causing detection of valid cached traces to fail. Ensure we are comparing compatible representations (in this case hex strings). Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4300> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4300>
This commit is contained in:
parent
efdce97e4b
commit
05069e1f07
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ def checksum(filename, hash_factory=hashlib.sha256, chunk_num_blocks=128):
|
|||
with open(filename,'rb') as f:
|
||||
for chunk in iter(lambda: f.read(chunk_num_blocks*h.block_size), b''):
|
||||
h.update(chunk)
|
||||
return h.digest()
|
||||
return h.hexdigest()
|
||||
|
||||
def ensure_trace(repo_url, repo_commit, trace):
|
||||
trace_path = TRACES_DB_PATH + trace['path']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue