Skip to content
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

Add test seed upload workflow. #1117

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Add test seed upload workflow. #1117

merged 3 commits into from
Jul 10, 2024

Conversation

goodov
Copy link
Member

@goodov goodov commented Jul 9, 2024

Add workflows for upload and removal of test seed.
Add a single study to test these workflows.

@goodov goodov force-pushed the upload-seed-in-pr branch 18 times, most recently from 8f885a5 to 6b81f9d Compare July 10, 2024 06:15
@brave brave deleted a comment from github-actions bot Jul 10, 2024
@brave brave deleted a comment from github-actions bot Jul 10, 2024
Copy link
Contributor

github-actions bot commented Jul 10, 2024

✅ Test Seed Generated Successfully

To test the new seed, launch the browser with the following command line:

--accept-empty-variations-seed-signature --variations-server-url=https://griffin.brave.com/pull/1117/seed

Seed Details

  • Serial Number: 4ba514b964487e2f27ae79dd49fea16a
  • Uploaded: 2024-07-10T12:45:49.068Z

@goodov goodov force-pushed the upload-seed-in-pr branch 8 times, most recently from 99fe40e to 78094f7 Compare July 10, 2024 07:19
@goodov goodov requested a review from atuchin-m July 10, 2024 07:31
@goodov goodov force-pushed the upload-seed-in-pr branch 2 times, most recently from 69bed89 to 86cf705 Compare July 10, 2024 07:39
const comment = require('.github/workflows/scripts/comment.js')
await comment(github, context, commentBody)

- name: Install dependencies and run tests
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: could we split it into?

  1. npm install
  2. build proto & typecheck
  3. tests

const comment = require('.github/workflows/scripts/comment.js')
await comment(github, context, commentBody)

- name: Comment "Upload Failed"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer to move this up and rename to "Upload skipped due to a build/lint/test failure".

Not sure that we should make a fallback for s3 uploading / invalidation, because it's a very small chance of failure here. IMHO, if it happens it's enough to have "Upload In Progress" comment and the failed job in the list.

REMOTE_SEED_PATH: 'pull/${{ github.event.pull_request.number }}/seed'

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: do we need this?

@goodov goodov force-pushed the upload-seed-in-pr branch 14 times, most recently from cebc893 to e961aaf Compare July 10, 2024 12:32
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
Copy link
Collaborator

Choose a reason for hiding this comment

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

what if the PR is declined?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, we don't need this check at all.

@goodov goodov requested a review from a team as a code owner July 10, 2024 12:43
@goodov goodov merged commit f1e866c into main Jul 10, 2024
12 checks passed
@goodov goodov deleted the upload-seed-in-pr branch July 10, 2024 12:48
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