Skip to content

[probes.browser] Add support for storing artifacts in S3. - #865

Merged
manugarg merged 3 commits into
browser_devfrom
browser_dev_artifacts
Sep 30, 2024
Merged

manugarg merged 3 commits into
browser_devfrom
browser_dev_artifacts

Conversation

@manugarg

@manugarg manugarg commented Sep 29, 2024 •

Copy link
Copy Markdown
Contributor
  • Create the abstration of artifacts handler that will be initialized at the time of
    probe initialization. Artifacts handler in turn will initialize various storage backends
    based on the configuration.

  • Probe calls handle() on the artifacts handler in a goroutine after each probe run
    with the output directory path. Artifacts handler will then upload the artifacts to
    all the configured storage backends.

  • Tested with a local minio setup and AWS S3 bucket.

  • Other changes: enable HTML reporter and persist only reports as these reports
    provide a good overview and contain all the assets like screenshots, videos and
    traces.

- Create the abstration of artifacts handler that will be initialized
at the time of probe initialization. Artifacts handler in turn will
initialize various storage backends based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after
each probe run with the output directory path. Artifacts handler will
then upload the artifacts to all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.
@manugarg
manugarg force-pushed the browser_dev_artifacts branch from 0e30b2d to 1ae2f49 Compare September 29, 2024 08:36
- Playwright HTML reports are a good way to get an overview of the test results.
  They include test status, duration, link to screenshots and videos, etc.
- This change enables HTML reporter and instructs artifacts handler to save only
  HTML reports.
@manugarg

Copy link
Copy Markdown
Contributor Author

Example of a test report being served by Cloudprober's web server at:
/artifacts/browser/2024-09-30/1727677463170/report/

image

@manugarg

Copy link
Copy Markdown
Contributor Author

Example of S3 bucket (tested using minio):
image
image
image

@manugarg
manugarg merged commit 44b481a into browser_dev Sep 30, 2024
@manugarg
manugarg deleted the browser_dev_artifacts branch September 30, 2024 06:31
manugarg added a commit that referenced this pull request Oct 3, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Oct 6, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Oct 10, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Oct 16, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Oct 18, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Nov 11, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Nov 16, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Nov 16, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
manugarg added a commit that referenced this pull request Dec 10, 2024
- Create the abstration of artifacts handler that will be initialized at the time of
   probe initialization. Artifacts handler in turn will initialize various storage backends
   based on the configuration.

- Probe calls handle() on the artifacts handler in a goroutine after each probe run
  with the output directory path. Artifacts handler will then upload the artifacts to
  all the configured storage backends.

- Tested with a local minio setup and AWS S3 bucket.

- Other changes: enable HTML reporter and persist only reports as these reports
   provide a good overview and contain all the assets like screenshots, videos and
   traces.
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.

1 participant