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

refactor: remove parent task key #112

Merged
merged 14 commits into from
Jan 9, 2023
Merged

Conversation

guilhem-barthes
Copy link
Collaborator

@guilhem-barthes guilhem-barthes commented Dec 23, 2022

Companion PR

Description

  • Remove compute_task_parents:
  • in ComputeTask
  • in gRPC communication
  • remove expanded_compute_tasks

How has this been tested?

CI

Checklist

  • changelog was updated with notable changes
  • documentation was updated

@guilhem-barthes
Copy link
Collaborator Author

/e2e --refs substra-backend=feat/remove-parent_task_key

@Owlfred
Copy link
Contributor

Owlfred commented Dec 23, 2022

End to end tests: ❌ FAILURE

Jobs status:

Sorry, try again.

Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
@guilhem-barthes
Copy link
Collaborator Author

/e2e --refs substra-backend=feat/remove-parent_task_key

@Owlfred
Copy link
Contributor

Owlfred commented Jan 2, 2023

End to end tests: ✔️ SUCCESS

“It’s alive! It’s alive!” ― Henry Frankenstein, Frankenstein

Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
@guilhem-barthes guilhem-barthes marked this pull request as ready for review January 2, 2023 14:39
@ThibaultFy
Copy link
Member

/e2e --refs substra-backend=feat/remove-parent_task_key --tests sdk,frontend --mode standalone

@Owlfred
Copy link
Contributor

Owlfred commented Jan 2, 2023

End to end tests: ✔️ SUCCESS

Copy link
Member

@ThibaultFy ThibaultFy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !!

CHANGELOG.md Outdated

## Removed

- field `parent_task_keys` in `ComputeTask`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the PR number

@@ -184,7 +184,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput
}

// loop over parent, only change status if all parents are DONE
for _, parentKey := range child.ParentTaskKeys {
for _, parentKey := range GetParentTaskKeys(child.Inputs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might worth testing if it take too long for big inputs (with 1000 datasamples for instance)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The e2e failes on SubstraFL and Benchmarks, seems to be because of a timeout error....

@ThibaultFy
Copy link
Member

/e2e --refs substra-backend=feat/remove-parent_task_key --tests substrafl --mode standalone

@Owlfred
Copy link
Contributor

Owlfred commented Jan 2, 2023

End to end tests: ❌ FAILURE

Jobs status:

It'll stay between us, no one needs to know.

@ThibaultFy
Copy link
Member

/e2e --refs substra-backend=feat/remove-parent_task_key --tests NONE --mode standalone --benchmark mnist,camelyon

@Owlfred
Copy link
Contributor

Owlfred commented Jan 2, 2023

Something happened while processing your message: error: unknown option '--benchmark'
(Did you mean --benchmarks?)

@ThibaultFy
Copy link
Member

/e2e --refs substra-backend=feat/remove-parent_task_key --tests NONE --mode standalone --benchmarks mnist,camelyon

@Owlfred
Copy link
Contributor

Owlfred commented Jan 2, 2023

End to end tests: ❌ FAILURE

Jobs status:

“Houston, we have a problem.” ― Jim Lovell, Apollo 13

Copy link
Member

@ThibaultFy ThibaultFy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E tests fail on SubstraFL and Benchmarks 😞

@@ -184,7 +184,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput
}

// loop over parent, only change status if all parents are DONE
for _, parentKey := range child.ParentTaskKeys {
for _, parentKey := range GetParentTaskKeys(child.Inputs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The e2e failes on SubstraFL and Benchmarks, seems to be because of a timeout error....

@ThibaultFy
Copy link
Member

ThibaultFy commented Jan 3, 2023

End to end tests: ❌ FAILURE

Jobs status:

Epic fail.

For the Mnist benchmark, the performances are impacted:
Expected: [0.8118, 0.7792, 0.9042, 0.8814, 0.9176, 0.9348, 0.9434, 0.9456, 0.9564, 0.9556]
Actual perf: [0.8118, 0.7792, 0.8388, 0.788, 0.869, 0.797, 0.8556, 0.8084, 0.866, 0.819]

It would be interested to launch a CP locally and check how the graph of tasks is build.

Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
@guilhem-barthes
Copy link
Collaborator Author

/e2e --refs substra-backend=feat/remove-parent_task_key --tests sdk,substrafl,frontend --benchmarks mnist,camelyon

@Owlfred
Copy link
Contributor

Owlfred commented Jan 3, 2023

End to end tests: ✔️ SUCCESS

“Carpe diem. Seize the day, boys.” ― John Keating, Dead Poets Society

Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Copy link
Member

@ThibaultFy ThibaultFy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, can't wait to see it in action ;)

## Removed

- field `parent_task_keys` in `ComputeTask` ([#112](https://github.com/Substra/orchestrator/pull/112))
- view `expanded_compute_tasks` ([#112](https://github.com/Substra/orchestrator/pull/112))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just put #112, github does the link to the PR automatically :)

@@ -204,7 +199,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput
return nil
}
}
err := s.applyTaskAction(child, transitionTodo, fmt.Sprintf("Last parent task %s done", triggeringParent.Key))
err = s.applyTaskAction(child, transitionTodo, fmt.Sprintf("Last parent task %s done", triggeringParent.Key))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For my info: why remove the ":" here ?

@guilhem-barthes guilhem-barthes merged commit 5fc8d1c into main Jan 9, 2023
@guilhem-barthes guilhem-barthes deleted the feat/remove-parent_task_key branch January 9, 2023 11:07
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

3 participants