Skip to content

Docs/code ocean sync flow#6

Merged
maggiecam merged 7 commits into
mainfrom
docs/code-ocean-sync-flow
Jun 5, 2026
Merged

Docs/code ocean sync flow#6
maggiecam merged 7 commits into
mainfrom
docs/code-ocean-sync-flow

Conversation

@maggiecam

Copy link
Copy Markdown
Member

Summary

Adds automated Code Ocean reverse-sync support so [sync] commits pushed from co/<module> branches can create draft co-sync/* PRs back into the OMIX monorepo.

Changes

  • Adds .github/workflows/auto-cosync-pr.yml

    • Triggers on pushes to co/** when the commit message contains [sync]
    • Creates a fresh co-sync/<module>-* branch from main
    • Reverse-syncs the Code Ocean export into modules/<module>/runtime/
    • Aborts if any changed path falls outside the target module runtime
    • Opens a draft PR to main
  • Adds .github/workflows/block-duplicate-cosync-pr.yml

    • Blocks/warns when another co-sync/* PR is already open against main
  • Updates scripts/code_ocean_sync.sh

    • Supports any module with modules/<module>/runtime/
    • Keeps portable fallback when rsync is unavailable
    • Copies auto-cosync-pr.yml into outbound co/<module> exports
    • Excludes .github/ from reverse sync
  • Updates documentation

    • Makes the [sync] automation the primary workflow
    • Keeps manual reverse sync as a fallback
    • Updates the Mermaid/Lucidchart diagram

Validation

  • bash -n scripts/code_ocean_sync.sh
  • YAML parse check for both new workflows
  • Rscript tests/test-module-contract.R
  • modules/volcano/runtime/tests/test_run_small.sh
  • Tested outbound/reverse sync dry-runs, including portable fallback mode

Note

After this merges to main, each persistent co/<module> export branch should be refreshed once so it receives .github/workflows/auto-cosync-pr.yml. That enables future [sync] commits from Code Ocean to trigger automation.

Closes #5

@maggiecam maggiecam merged commit ea5fc19 into main Jun 5, 2026
4 checks passed
@maggiecam maggiecam deleted the docs/code-ocean-sync-flow branch June 5, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate co-sync reverse sync via CI/CD + update code-ocean-sync.md

2 participants