WindmillWWindmill
Powered by
acharcharA
Windmill•2w ago•
19 replies
acharchar

Git Promotion Obstacle

Background


We are using the Git Promotion workflow with a single repository and two long-lived branches:
staging
staging
and
main
main
.

- The de-staging workspace is linked to the
staging
staging
branch.
- The de-prod workspace is linked to the
main
main
branch.
- In the de-staging workspace, we promote changes by targeting the
main
main
branch.
- In de-prod, developers are set as operators with additional privileges to create resources and variables that are intentionally not managed by Git sync.

Intended Development Flow


1. A developer makes changes in the de-staging workspace UI.
2. Windmill creates a commit on the
staging
staging
branch via "deploy".
3. A GitHub Action opens a PR from
staging
staging
→
main
main
.
4. The PR is reviewed and merged into
main
main
.
5. The
main
main
branch is synced to de-prod using
wmill sync push --workspace de-prod
wmill sync push --workspace de-prod
.

Issue


We are seeing files “ping-pong” between environments. After a change is made in de-staging and merged into
main
main
, the same file appears in de-staging as out of sync. Exposed via the "preview" option.

Questions


1. Is there a reference Git Promotion example repository or a recommended workflow for this pattern? We are currently using push-on-merge found in a repo (possibly incorrect for this workflow). This action does not sync the workspace because the commit message starts with [WM]. We locally sync the workspace after pulling origin/main, hence item 5 (above)
2. Is there a Windmill lock file that may need to be rebased or reset to prevent this drift?
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Cannot add git sync
poptartPpoptart / help
8mo ago
Git Sync with Github Organizations
📹 Doderich�📹 Doderich / help
4mo ago
Git sync doesn't work
DmiriiDDmirii / help
17mo ago