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

Prebuild trigger checks #20228

Merged
merged 16 commits into from
Sep 23, 2024
Merged

Prebuild trigger checks #20228

merged 16 commits into from
Sep 23, 2024

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Sep 17, 2024

Description

This change introduces the following functionality around activity-based prebuilds:

  • Adds a warning for repositories that have received a webhook event for the most recent commit about considering an update to activity-based prebuilds
  • Automatically changes prebuild trigger strategy from activity-based to webhook-based when we receive a webhook event
  • Automatically changes prebuild trigger strategy from webhook-based to activity-based when creating a workspace and the repository not sending a webhook push event for the last commit

Related Issue(s)

Fixes ENT-601

How to test

https://ft-webhook870fa6143a.preview.gitpod-dev.com/workspaces

  1. Import a repo
  2. Enable prebuilds on it
  3. See warning
  4. Remove the webhook and push a new commit
  5. Observe that the warning disappears

@filiptronicek filiptronicek force-pushed the ft/webhook-prebuilds-checks branch from 967dea7 to b2ef975 Compare September 17, 2024 17:04
@geropl
Copy link
Member

geropl commented Sep 18, 2024

@filiptronicek It would be great to align on the goals in sync. I feel I'm a bit lost on the "make webhook the new/old" default, but might also be mis-reading things. 👍

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested and works! ✔️

(please revert the debug commit before merge 😇 )

@roboquat roboquat merged commit cfe795c into main Sep 23, 2024
18 checks passed
@roboquat roboquat deleted the ft/webhook-prebuilds-checks branch September 23, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants