Skip to content

Commit

Permalink
chore: Failing postgresql-pre-aggregations E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Jan 9, 2022
1 parent 3e62ba5 commit a1832de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/birdbox.yml
Expand Up @@ -10,6 +10,12 @@ on:
workflows: [ "Release" ]
types:
- completed
push:
paths:
- '.github/workflows/birdbox.yml'
- 'packages/cubejs-testing/**'
branches:
- 'master'

jobs:
cli:
Expand Down
Expand Up @@ -49,7 +49,7 @@ services:

cubestore:
container_name: birdbox-cubestore
image: cubejs/cubestore:${BIRDBOX_CUBESTORE_VERSION:-edge}
image: cubejs/cubestore:${BIRDBOX_CUBESTORE_VERSION:-latest}
# Possible workaround for next version of testcontainers
# environment:
# # Workaround for Error during processing MySQL connection: peer terminated connection
Expand Down
7 changes: 5 additions & 2 deletions packages/cubejs-testing/src/birdbox.ts
Expand Up @@ -41,15 +41,18 @@ export async function startBirdBoxFromContainer(options: BirdBoxTestCaseOptions)
};
}

const composeFile = `${options.name}.yml`;
const dc = new DockerComposeEnvironment(
path.resolve(path.dirname(__filename), '../../birdbox-fixtures/'),
`${options.name}.yml`
composeFile
);

console.log(`[Birdbox] Using ${composeFile} compose file`);

const env = await dc
.withStartupTimeout(30 * 1000)
.withEnv('BIRDBOX_CUBEJS_VERSION', process.env.BIRDBOX_CUBEJS_VERSION || 'latest')
.withEnv('BIRDBOX_CUBESTORE_VERSION', process.env.BIRDBOX_CUBESTORE_VERSION || 'edge')
.withEnv('BIRDBOX_CUBESTORE_VERSION', process.env.BIRDBOX_CUBESTORE_VERSION || 'latest')
.up();

const host = '127.0.0.1';
Expand Down

0 comments on commit a1832de

Please sign in to comment.