Skip to content

GH sync won't work with v2 project files #1185

@josephjclark

Description

@josephjclark
  • add projects: state to serialize to an old state file
  • will this work with gh sync? I guess I need config too?
  • alternatively, modify the old deploy to load from a new project file, if it exists

Acceptance criteria

  • I have a v2 project locally set up (ie, I ran openfn project pull <uuid> from some lightning instance)
  • I can run the GH sync pull command: openfn pull $OPENFN_PROJECT_ID --config-path $OPENFN_CONFIG_PATH --no-confirm and it will work
  • I can run the GH sync deploy command: openfn deploy -c $OPENFN_CONFIG_PATH --no-confirm and it will work

We don't need to run a full github sync in production - we just need these two commands to work

Expected Issues

We have discovered a major constraint in this solution

If you have a v2 folder system using github sync, it'll work, but you can only have a single sync between a repo and lightning.

You cannot have multiple config files.

The reason for this is that we can only maintain one workflows/ folder. The whole concept of syncing your repo to an app breaks down because of how we use the file system.

So if you want to use github sync with the v2 folder structure, you can only sync one project.

There is a separate story for a v2 github sync action which will resolve this comprehnsively.

We could also explore a version of github sync which only pulls, deploys and commits the project.yaml file and ignores the workflows folder. Its just that I don't know what the point of this is - your working tree is always out of sync with the app, and you don't know the relationship between the project source and the connected app.

Pinned by josephjclark

Metadata

Metadata

Assignees

Labels

GH SyncRelated to Github sync improvements

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions