chore: promote 5 staging-only feature PRs to main (Phase 3 of internal#81) #108
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/promote-staging-features-to-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 3a of internal#81 — molecule-core trunk-based migration.
What
Merges
stagingintomainvia--no-ffto bring 5 staging-only feature PRs forward atomically. auto-promote-staging.yml has not been firing reliably on Gitea since the post-suspension migration; main has been silently missing these for up to 9 days.What's in the merge
Net diff: 1681 insertions, 0 deletions. New files in
workspace-server/internal/handlers/:local_e2e_dev_dept_test.goorg_external.goorg_external_integration_test.goorg_external_test.goorg_include_symlink_test.goPlus 6 lines added to
org_include.goand 15 lines toprovisioner.go.Why a single mega-merge
Each PR was already independently reviewed and CI-green at staging-merge time. Re-PRing each as a separate cherry-pick onto main means re-running CI 5×, lengthens the queue, and obscures the fact that these features all relate to the org-import / external-resolver line of work and travel together. Single atomic promote with
--no-ffpreserves the original PR-merge commits in main's history (drill in viagit logif a future reader needs per-PR context).Phase 3 sequence
branches: [staging]tobranches: [main]across e2e-staging-canvas / e2e-staging-external / e2e-staging-saas / e2e-staging-sanity / canary-staging / redeploy-tenants-on-stagingstagingbranch + update agent promptsRisk + rollback
Reversible: revert this single merge commit to put main back where it was. The original PR-merge commits stay in
stagingref untouched.Phase 4 (local-only) of internal#77 (dev-department extraction). Adds TestLocalE2E_DevDepartmentExtraction that exercises the FULL platform import path against the real molecule-ai-org-template-molecule-dev (post-slim) and molecule-ai/molecule-dev-department (post-atomize) repos cloned as siblings under /tmp/local-e2e-deploy/. What it proves end-to-end: - The dev-lead symlink at parent's template root is followed by resolveYAMLIncludes (filepath.Abs/Rel-style security check passes, os.ReadFile follows the link). - Recursive !include chain through the symlinked subtree resolves: parent's org.yaml → !include dev-lead/workspace.yaml (symlinked) → !include ./core-lead/workspace.yaml → !include ./core-be/workspace.yaml (atomized children: paths, no '..'). - 39 workspaces enumerate after resolution: 5 PM-tree + 6 Marketing-tree + 28 dev-tree (Dev Lead + 5 sub-team leads + 18 leaf workspaces + 3 floaters + 1 triage-operator). - Q1+Q2 placements verified by sentinel name check: 'Documentation Specialist' is reachable (under app-lead via app-docs sub-team), 'Triage Operator' is reachable (direct child of Dev Lead). Test skips with t.Skipf if the local-e2e fixture isn't present on the host — won't block CI on hosts that haven't set it up. To set up locally: TESTROOT=/tmp/local-e2e-deploy mkdir -p $TESTROOT && cd $TESTROOT git clone https://git.moleculesai.app/molecule-ai/molecule-ai-org-template-molecule-dev.git molecule-dev git clone https://git.moleculesai.app/molecule-ai/molecule-dev-department.git cd /Users/<you>/molecule-core/workspace-server go test -v -run TestLocalE2E_DevDepartmentExtraction ./internal/handlers/ Verified locally 2026-05-08: --- PASS: TestLocalE2E_DevDepartmentExtraction (0.01s) total workspaces (recursive): 39 Refs: internal#77 — extraction RFC molecule-core PR #102 — symlink-resolution contract test molecule-ai/molecule-dev-department PRs #1, #2, #3 (scaffold + extract + atomize) molecule-ai/molecule-ai-org-template-molecule-dev PR #5 (parent slim + symlink wire) Hongming GO 2026-05-08 ('lets not go for staging right now, we do local test first') SOP Phase 4 (local) — task #226!externalcross-repo subtree resolver (Phase 3a, internal#77 / task #222)LGTM (post-rebase onto #111 fix). Phase 3A of internal#81 — promotes 5 staging-only feature PRs to main as part of the trunk-based migration. Required check Secret scan green; Platform (Go) green now that #111 fixed the test isolation flake.