Skip to content

Commit

Permalink
chore: more logging, less testing
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Feb 7, 2024
1 parent 3caf719 commit b98ecd8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:

- wait

- command: .buildkite/scripts/steps/build_kibana.sh
- command: echo "skipped" # .buildkite/scripts/steps/build_kibana.sh
label: Build Kibana Distribution and Plugins
agents:
provider: gcp
Expand All @@ -31,7 +31,7 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/quick_checks.sh
- command: echo "skipped" # .buildkite/scripts/steps/quick_checks.sh
label: 'Quick Checks'
agents:
provider: gcp
Expand Down Expand Up @@ -84,7 +84,7 @@ steps:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/lint.sh
- command: echo "skipped" # .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
provider: gcp
Expand All @@ -99,7 +99,7 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/lint_with_types.sh
- command: echo "skipped" # .buildkite/scripts/steps/lint_with_types.sh
label: 'Linting (with types)'
agents:
provider: gcp
Expand All @@ -115,7 +115,7 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/checks.sh
- command: echo "skipped" # .buildkite/scripts/steps/checks.sh
label: 'Checks'
agents:
provider: gcp
Expand All @@ -130,7 +130,7 @@ steps:
- exit_status: '-1'
limit: 3

- command: .buildkite/scripts/steps/build_api_docs.sh
- command: echo "skipped" # .buildkite/scripts/steps/build_api_docs.sh
label: 'Check Types and Build API Docs'
agents:
queue: n2-4-spot
Expand Down
25 changes: 20 additions & 5 deletions packages/kbn-es/src/utils/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,11 @@ export async function runServerlessEsNode(
image
);

process.stdout.write('--- Running elasticsearch\n');
process.stdout.write(
log.info('--- Running elasticsearch\n');
log.info(
JSON.stringify(
{
image,
whoami: process.env.USER,
pwd: process.env.PWD,
argv: process.argv,
Expand All @@ -696,9 +697,23 @@ export async function runServerlessEsNode(
2
)
);
await execa('id', [], {
stdio: ['inherit', 'inherit', 'inherit'],
});
const { stdout: idOutput } = await execa('id', []);
log.info(`id: ${idOutput}`);
try {
const { stdout: dockerOut } = await execa('docker', [
'run',
'--rm',
'--entrypoint',
'sh',
image,
'-c',
'"set +xe; umask; id; cd ~; echo $PWD > hello.txt; ls -la;"',
]);
log.info(dockerOut);
} catch (e) {
log.error('Error running docker command');
log.error(e);
}

log.info(chalk.bold(`Running serverless ES node: ${name}`));
log.indent(4, () => log.info(chalk.dim(`docker ${dockerCmd.join(' ')}`)));
Expand Down

0 comments on commit b98ecd8

Please sign in to comment.