: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): map agent infra scopes to feature/agent-infra (#114885)
Charles Vien099b68b6a2ec
diff --git a/.github/auto-assign-labels.json b/.github/auto-assign-labels.jsonindex 380d0f247d8b..156141807f25 100644--- a/.github/auto-assign-labels.json+++ b/.github/auto-assign-labels.json@@ -10,8 +10,22 @@"labels": ["team/feature-flags", "feature/cohorts"]},{- "scopes": ["desktop", "tasks", "agent-proxy", "canvas"],+ "scopes": ["desktop", "canvas"],"labels": ["feature/desktop"]+ },+ {+ "scopes": [+ "tasks",+ "tasks-agent",+ "agent-proxy",+ "agent-runner",+ "cloud-agent",+ "sandboxes",+ "gateway",+ "llm-gateway",+ "ai-gateway"+ ],+ "labels": ["feature/agent-infra"]}]}diff --git a/.github/scripts/label-pr-from-title.test.js b/.github/scripts/label-pr-from-title.test.jsindex 84ba438166a8..8e695f49f723 100644--- a/.github/scripts/label-pr-from-title.test.js+++ b/.github/scripts/label-pr-from-title.test.js@@ -150,7 +150,7 @@ for (const scope of ['flag', 'feature-flag', 'feature_flags', 'feature_flag']) {// to the shipped config so an edit that drops or mislabels one regresses// loudly here. Asserts containment rather than the exact list so the rule can// gain labels without breaking.-for (const scope of ['desktop', 'tasks', 'agent-proxy', 'canvas']) {+for (const scope of ['desktop', 'canvas']) {test(`the shipped config maps the ${scope} scope to the desktop label`, () => {assert.ok(labelsForTitle(`feat(${scope}): x`, loadRules()).includes('feature/desktop'),@@ -159,6 +159,30 @@ for (const scope of ['desktop', 'tasks', 'agent-proxy', 'canvas']) {})}+for (const scope of [+ 'tasks',+ 'tasks-agent',+ 'agent-proxy',+ 'agent-runner',+ 'cloud-agent',+ 'sandboxes',+ 'gateway',+ 'llm-gateway',+ 'ai-gateway',+]) {+ test(`the shipped config maps the ${scope} scope to the agent infra label`, () => {+ const labels = labelsForTitle(`feat(${scope}): x`, loadRules())+ assert.ok(labels.includes('feature/agent-infra'), `${scope} scope does not map to feature/agent-infra`)+ assert.ok(!labels.includes('feature/desktop'), `${scope} scope still maps to feature/desktop`)+ })+}++test('the shipped config keeps labels from mixed desktop and agent infra scopes', () => {+ const labels = labelsForTitle('feat(desktop, tasks): x', loadRules())+ assert.ok(labels.includes('feature/desktop'))+ assert.ok(labels.includes('feature/agent-infra'))+})+// ---------------------------------------------------------------------------// Feature flags team only: the `review/low-hanging-fruit` label.// ---------------------------------------------------------------------------