Skip to content

Commit

Permalink
[Obs Onboarding] [Ensemble Test] Run OTel collector in the background (
Browse files Browse the repository at this point in the history
…elastic#212255)

Right now OTel test fails in Ensemble because it waits for the collector
to exit before proceeding which never happens because collector runs on
the foreground. This change forces the collector to run in the
background and also redirects its logs into a dedicated file to make the
test output more clear.

[Successful run of the Nightly
job](https://github.com/elastic/ensemble/actions/runs/13500977832/job/37719065877)
🔒
  • Loading branch information
mykolaharmash authored Feb 28, 2025
1 parent a5c35b8 commit 8fe5d7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('Otel Host', async ({ page, onboardingHomePage, otelHostFlowPage, hostsOver
await otelHostFlowPage.copyCollectorStartSnippetToClipboard();
const collectorStartSnippet = (await page.evaluate('navigator.clipboard.readText()')) as string;

const codeSnippet = `${collectorDownloadSnippet}\n${collectorStartSnippet}`;
const codeSnippet = `${collectorDownloadSnippet}\n${collectorStartSnippet} > collector-output.log 2>&1 &`;

/**
* Ensemble story watches for the code snippet file
Expand Down

0 comments on commit 8fe5d7f

Please sign in to comment.