Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spec and workflow diff utils #422

Merged
merged 1 commit into from
Jun 24, 2024
Merged

add spec and workflow diff utils #422

merged 1 commit into from
Jun 24, 2024

Conversation

essweine
Copy link
Contributor

This adds some utilities for

  • comparing workflow specs
  • identifying tasks in a workflow instance affected by changes to the spec

The spec comparison utility uses a serializer to compare two versions of a spec; the serializer already knows about all the attributes of a particular ask spec so it can be leveraged to avoid implementing attribute comparisons for each type of spec.

The comparisons provides lists of

  • specs added in the later version
  • specs removed in the later version (or tasks that use removed specs)
  • specs that changed between versions (or tasks that use the changed specs)
  • an alignment mapping specs from the original to the later version (or from a task to the later version of a task's spec)

This is intended to provide information about whether a spec can be updated on an existing workflow.

@essweine essweine merged commit ed6c428 into main Jun 24, 2024
5 checks passed
@essweine essweine deleted the feature/spec-comparisons branch June 24, 2024 19:10
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.

None yet

2 participants