Skip to content

[probes] Reuse external probe's process running functionality in browser probe - #848

Closed
manugarg wants to merge 3 commits into
browser_devfrom
browser_external_consolidation
Closed

manugarg wants to merge 3 commits into
browser_devfrom
browser_external_consolidation

Conversation

@manugarg

@manugarg manugarg commented Sep 13, 2024 •

Copy link
Copy Markdown
Contributor

No description provided.

@manugarg
manugarg force-pushed the browser_external_consolidation branch from 29133d2 to 3368951 Compare September 23, 2024 05:55
@manugarg
manugarg force-pushed the browser_external_consolidation branch from 3368951 to 68a168e Compare September 23, 2024 06:11
manugarg added a commit that referenced this pull request Sep 23, 2024
- Factor out command execution fuctionality into a common package in
preparation for adding the browser probe. (See #848).
- I want to factor it out sooner so that we can test external prober
changes sooner.
* [probes.external] Factor out command execution.
- Factor out command execution fuctionality into a common package in
preparation for adding the browser probe. (See #848).
- I want to factor it out sooner so that we can test external prober
changes sooner.
- It uses playwright for running browser tests. It expects playwright to be already installed. We'll eventually provide a docker image with playwright installed.
- Probe config takes a test spec. Each test can contain multiple tests and steps. We export metrics for all tests defined in the test spec. We achieve this by defining a custom reporter.
- Config also takes the output directory for generated test assets like screenshots, and traces (need to be enabled through config). If output directory is not defined, a temporary directory will be created. However, we'll strongly encourage users to provide a persistent directory so that screenshots are preserved. More work here:
   - Serve screenshots through cloudprober web server, unless disabled.
   - Implement retention period for assets.

Warning: this is not ready for use right now, that's why integrating into a dev branch for now.
@manugarg
manugarg force-pushed the browser_external_consolidation branch from 68a168e to 78d1ba3 Compare September 23, 2024 08:06
@manugarg manugarg closed this Sep 23, 2024
@manugarg
manugarg deleted the browser_external_consolidation branch September 23, 2024 08:09
@manugarg
manugarg restored the browser_external_consolidation branch September 23, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Refactor browser probe to use more of external probe's functionality to run processes

1 participant