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

fix: docker ephemeral environment, push only on testenv comment #26473

Merged
merged 8 commits into from
Jan 23, 2024

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Jan 12, 2024

SUMMARY

Currently docker ephemeral env (https://github.com/apache/superset/blob/master/.github/workflows/docker-ephemeral-env.yml) triggers when docker workflow finishes, this changes moves this step to when an actual committer requests for a docker env to be created. Both workflows triggers have secrets access but issue_comment uses current default branch commit SHA so it's no subject to PR changes and validates that only privilege users can execute this step.

I was not able to properly test this change since it run with current master git SHA, so I expect that further changes may be needed.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dpgaspar
Copy link
Member Author

/testenv

1 similar comment
@dpgaspar
Copy link
Member Author

/testenv

@rusackas rusackas added the review:checkpoint Last PR reviewed during the daily review standup label Jan 12, 2024
@john-bodley john-bodley removed the review:checkpoint Last PR reviewed during the daily review standup label Jan 16, 2024
@dpgaspar
Copy link
Member Author

/testenv up

Copy link
Contributor

@dpgaspar Ephemeral environment creation is currently limited to committers.

@dpgaspar dpgaspar changed the title [WIP] fix: docker ephemeral environment, push only on testenv comment fix: docker ephemeral environment, push only on testenv comment Jan 18, 2024
.github/workflows/ephemeral-env.yml Outdated Show resolved Hide resolved
.github/workflows/ephemeral-env.yml Outdated Show resolved Hide resolved
dpgaspar and others added 3 commits January 23, 2024 09:02
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
@dpgaspar dpgaspar requested a review from geido January 23, 2024 12:03
Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Looks good!

@dpgaspar dpgaspar merged commit 74f953d into apache:master Jan 23, 2024
26 checks passed
@dpgaspar dpgaspar deleted the fix/ephemeral-ci-docker-push branch January 23, 2024 15:46
rusackas pushed a commit that referenced this pull request Jan 24, 2024
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
const artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
Copy link
Member

Choose a reason for hiding this comment

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

hey @dpgaspar this change broke the ephemeral envs because the context is different. Before the trigger was a workflow_run, and now being comment created this property is not available in this context.

@dpgaspar dpgaspar mentioned this pull request Jan 29, 2024
9 tasks
eschutho pushed a commit to preset-io/superset that referenced this pull request Jan 31, 2024
…he#26473)

Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
…he#26473)

Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants