You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(crafter): avoid redundant SHA256 pass when uploading materials to CAS
uploadAndCraft already computes the artifact's SHA256 via fileStats, then
called Uploader.UploadFile which re-opened the file and re-hashed it before
streaming. Switch to Uploader.Upload with the reader and digest from
fileStats so the file is opened once and hashed once per material.
Also fix a file-handle leak in fileStats when SHA256 or Seek fails.
Chainloop-Trace-Sessions: 70c6c792-4598-426b-9e75-482bcb10498f
Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
0 commit comments