:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): disable the scheduled pr conflict autoresolver (#73966)
Georges-Antoine Assif5e4e6a44767
diff --git a/.agents/skills/autoresolving-pr-conflicts/SKILL.md b/.agents/skills/autoresolving-pr-conflicts/SKILL.mdindex b3dcbae427ae..715997927ac8 100644--- a/.agents/skills/autoresolving-pr-conflicts/SKILL.md+++ b/.agents/skills/autoresolving-pr-conflicts/SKILL.md@@ -53,7 +53,7 @@ Attempt state lives in a sticky PR comment ending with:One sticky comment per PR, upserted (update the existing comment if present, else create).Skip any PR whose latest marker matches the current `(headRefOid, master OID)` pair.-This format is shared with the CI-based implementation proposed in PR #73036, so never assume this loop is the marker's only writer.+This format is shared with the CI-based implementation in `.github/workflows/pr-autoresolve-conflicts.yml`, so never assume this loop is the marker's only writer.Marker state is only trusted from our own App: a commenter could otherwise plant a marker to fake "already attempted" and get a PR skipped.The helper filters to comments authored by `AUTORESOLVE_BOT_LOGIN` (the Loop App's `<slug>[bot]` login), which must be set in the run environment; it fails closed without it.diff --git a/.agents/skills/autoresolving-pr-conflicts/references/loop-setup.md b/.agents/skills/autoresolving-pr-conflicts/references/loop-setup.mdindex c54ccdd3de32..b83e4ec03875 100644--- a/.agents/skills/autoresolving-pr-conflicts/references/loop-setup.md+++ b/.agents/skills/autoresolving-pr-conflicts/references/loop-setup.md@@ -73,6 +73,7 @@ Keep that boundary least-privilege:## Relationship to the CI implementation-PR #73036 proposes the same job as a GitHub Actions workflow.-Both use the same `autoresolve-attempt` marker format, so if both end up deployed they never double-attempt the same `(head, master)` state.-Prefer running exactly one of them long-term; the Loop version keeps API traffic on a dedicated rate-limit bucket and burns no Actions runners.+`.github/workflows/pr-autoresolve-conflicts.yml` runs the same job as a GitHub Actions workflow.+Its schedule is disabled and it stays dispatchable by hand, so it is a fallback rather than a second scheduled sweep.+Both write the same `autoresolve-attempt` marker format, so if both do end up running they never double-attempt the same `(head, master)` state.+Keep exactly one of them scheduled; the Loop version keeps API traffic on a dedicated rate-limit bucket and burns no Actions runners.diff --git a/.github/workflows/pr-autoresolve-conflicts.yml b/.github/workflows/pr-autoresolve-conflicts.ymlindex 9f11601e8dc4..f509eb356f69 100644--- a/.github/workflows/pr-autoresolve-conflicts.yml+++ b/.github/workflows/pr-autoresolve-conflicts.yml@@ -1,20 +1,24 @@name: Auto-resolve PR conflicts-# Resolves conflicts on every open same-repo PR targeting master, on a schedule, before the author-# looks. Forks are skipped (can't be pushed to). Never auto-merges. Graphite-stacked PRs (base-# `graphite-base/*`) can't be merged with master, so they're flagged for the author to restack.+# Resolves conflicts on every open same-repo PR targeting master, before the author looks. Forks are+# skipped (can't be pushed to). Never auto-merges. Graphite-stacked PRs (base `graphite-base/*`)+# can't be merged with master, so they're flagged for the author to restack.+#+# Manual dispatch only — the 15-minute schedule is disabled. The same sweep now runs as a Loop+# (.agents/skills/autoresolving-pr-conflicts), which burns no Actions runners and keeps its GitHub+# API traffic on a dedicated rate-limit bucket. Both write the same `autoresolve-attempt` marker, so+# running both would be redundant rather than harmful. To fall back to this implementation, restore+# the `schedule:` trigger below and pause the Loop.## Deterministic fixes (lockfiles, migration numbering, generated types) skip the model; the backend# stack comes up only for `build:openapi`. A marker comment records the last-attempted (head, master)-# so nothing re-runs on an unchanged conflict. Polling batches conflicts, which is cheaper than a run-# per merge; runs on GitHub-hosted runners (cheapest for a public repo).+# so nothing re-runs on an unchanged conflict. Runs on GitHub-hosted runners (cheapest for a public+# repo).## Token safety (as in pr-resolve-outdated-bot-comments.yml): `resolve` runs PR-controlled code with# NO write token; `finalize` holds the App token but only consumes result DATA via trusted scripts.on:- schedule:- - cron: '*/15 * * * 1-5' # every 15 minutes, weekdays only (no point resolving over the weekend)workflow_dispatch:inputs:pr_number: