Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

src: Investigate repo archive corruption #39743

@eseliger

Description

@eseliger

During some debugging, I interrupted src-cli and it created a corrupted archive, we should investigate that. Likely we don't write the archive to a tmp file name first before the download is finalized?

✅ Parsing batch spec
✅ Resolving namespace
✅ Preparing container images  █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████  100%
✅ Set workspace type
✅ Resolved 1 repositories
✅ Found 1 workspaces with steps to execute
✅ Found 0 cached changeset specs; 1 task needs to be executed
⠧  Executing... (0/1, 0 errored)                                                                                                                                        0%
│
└── github.com/sourcegraph/sourcegraph  Downloading archive                                                                                                             2s
^C
❌ Error:
   context canceled


💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting


➜  src batch preview -workspace bind -clear-cache -clean-archives -f spec.yml
✅ Parsing batch spec
✅ Resolving namespace
✅ Preparing container images  █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████  100%
✅ Set workspace type
✅ Resolved 1 repositories
✅ Found 1 workspaces with steps to execute
✅ Found 0 cached changeset specs; 1 task needs to be executed
✅ Executing... (1/1, 1 errored)  ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████  100%
│
└── github.com/sourcegraph/sourcegraph  creating workspace: unzipping the repository: unzipping the ZIP archive: zip: not a valid zip file                              0s

❌ Error:
   github.com/sourcegraph/sourcegraph:
   creating workspace: unzipping the repository: unzipping the ZIP archive: zip: not a valid zip file
   Log: /tmp/changeset-github.com-sourcegraph-sourcegraph-b0ecedeea63bab9c93f6c2f6f52accd0f63dcd01.3769720950.log



💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting

Metadata

Metadata

Assignees

Labels

batch-changesIssues related to Batch ChangesbugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.estimate/0.5destimate/1dsrc-cli

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions