Skip to content

Commit

Permalink
Bump max repo size to 10GB (#3345)
Browse files Browse the repository at this point in the history
* Bump max repo size to 10GB

* comment
  • Loading branch information
spolu authored Jan 20, 2024
1 parent 5c2ebc8 commit 15f5bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/src/connectors/github/lib/github_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,14 @@ export async function processRepository({
"Retrieved repository info"
);

// `data.size` is the whole repo size in KB, we use it to filter repos > 2GB download size. There
// `data.size` is the whole repo size in KB, we use it to filter repos > 10GB download size. There
// is further filtering by file type + for "extracted size" per file to 1MB.
if (data.size > 2 * 1024 * 1024) {
if (data.size > 10 * 1024 * 1024) {
// For now we throw an error, we'll figure out as we go how we want to handle (likely a typed
// error to return a syncFailed to the user, or increase this limit if we want some largers
// repositories).
throw new Error(
`Repository is too large to sync (size: ${data.size}KB, max: 2GB)`
`Repository is too large to sync (size: ${data.size}KB, max: 10GB)`
);
}

Expand Down

0 comments on commit 15f5bc6

Please sign in to comment.