Skip to content

Commit

Permalink
Increase docker build pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
Huakun Shen committed May 26, 2024
1 parent 63cb505 commit 111986b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
build:
upload-extensions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 2 additions & 3 deletions ci/build-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import {
parsePackageJson,
uploadTarballToS3,
uploadTarballToSupabaseStorage,
type BuildResult,
} from "./src/utils";
import { supabase } from "./src/supabase";
import { type Database, type Tables } from "./supabase/types/supabase";
import { type Tables } from "./supabase/types/supabase";

type SupabaseExtensionTable = Tables<"extensions">;
// iterate over all files in extensions directory
Expand Down Expand Up @@ -48,7 +47,7 @@ for (const extPath of extensionsCandidateFolders) {
/* -------------------------------------------------------------------------- */
/* Build All Extensions With Docker */
/* -------------------------------------------------------------------------- */
const PoolSize = 1;
const PoolSize = 4;
// split toBuildExt into chunks of PoolSize, run multiple docker builds in parallel
const toBuildExtChunks = [];
for (let i = 0; i < toBuildExt.length; i += PoolSize) {
Expand Down
4 changes: 1 addition & 3 deletions ci/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ export function buildWithDocker(extPath: string): Promise<{
console.log("Parsed tarball:", stderrTarballFilename);
}
} else if (dataStr.includes("filename:")) {
const tarballFilename = dataStr.match(
/filename:\s+([^\s]+)/,
);
const tarballFilename = dataStr.match(/filename:\s+([^\s]+)/);
if (tarballFilename) {
stderrTarballFilename = tarballFilename[1];
console.log("Parsed tarball:", stderrTarballFilename);
Expand Down

0 comments on commit 111986b

Please sign in to comment.