Skip to content

Take and populate screenshot #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 29, 2024
Merged

Take and populate screenshot #114

merged 6 commits into from
Mar 29, 2024

Conversation

adamfweidman
Copy link
Collaborator

@adamfweidman adamfweidman commented Mar 20, 2024

Changes:

  • getting and passing request headers check-id and execution-id to the runBrokenLinks() function -- handlers.ts and handlers.spec.ts
  • shouldTakeScreenshot() function added.
  • Some updates to uploadScreenshotToGCS(), mainly refactored out logic into: getStoragePathToExecution()
  • add logic to increment number in screenshot_ when file to GCS.

@adamfweidman adamfweidman force-pushed the pass-args branch 3 times, most recently from cf3f967 to 768eeef Compare March 20, 2024 18:33
@adamfweidman adamfweidman force-pushed the prop-screenshots branch 3 times, most recently from 88936e6 to 5c0b27d Compare March 21, 2024 18:32
@adamfweidman adamfweidman changed the base branch from prop-screenshots to final-blc-storage March 21, 2024 18:36
@adamfweidman adamfweidman changed the title Pass args Take and populate screenshot Mar 21, 2024
@adamfweidman adamfweidman force-pushed the pass-args branch 2 times, most recently from eaf4a86 to d2a6cb4 Compare March 21, 2024 18:44
@adamfweidman adamfweidman requested a review from jdurelli March 21, 2024 18:44
writeDestination += '/';
}

writeDestination = path.join(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want a slash between checkId and executionId?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this question was getting at - if the path.join function adds a slash by are we doing it manually for write destination above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I see, yes I think that may be redundant

@adamfweidman adamfweidman merged commit ccf9f78 into final-blc-storage Mar 29, 2024
adamfweidman added a commit that referenced this pull request Apr 19, 2024
* get-cloud-region (#100)

Add functionality to synthetics-sdk-api to extract cloud region during GCF execution

* stoage proto api (#101)

* expose resolveProjectId (#104)

* update to capture_condition (#109)

* chore(deps): bump ip from 1.1.8 to 1.1.9 (#105)

* chore(deps): bump ip from 1.1.8 to 1.1.9

Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9.
- [Commits](indutny/node-ip@v1.1.8...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Empty-Commit

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Weidman <[email protected]>

* add samples tags (#108)

* blc-api-integration-def (#102)

* resolveProjectId present (#106)

* take-screenshots (#107)

* rebase-capture-condition (#110)

* refactor-integrations (#112)

* sanitize strings (#113)

* Take and populate screenshot (#114)

* screenshots-prop

* broken_links.spec working

* fix naming

* pass-args

* response to comments

* change default (#118)

* update synthetics-sdk-api to point to new npm pkg

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
adamfweidman added a commit that referenced this pull request Apr 19, 2024
* screenshots-prop

* broken_links.spec working

* fix naming

* pass-args

* response to comments
adamfweidman added a commit that referenced this pull request Apr 19, 2024
* blc-api-integration-def (#102)

* resolveProjectId present (#106)

* take-screenshots (#107)

* rebase-capture-condition (#110)

* refactor-integrations (#112)

* sanitize strings (#113)

* Take and populate screenshot (#114)

* screenshots-prop

* broken_links.spec working

* fix naming

* pass-args

* response to comments

* change default (#118)

* update synthetics-sdk-api to point to new npm pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants