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 cache support for Sdk{Runnable|Container}Tasks #122

Merged
merged 10 commits into from
Jul 28, 2022
Merged

Conversation

narape
Copy link
Contributor

@narape narape commented Jul 27, 2022

TL;DR

Add support for caching SdkRunnableTask and SdkContainerTask

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

The attributes:

  • isCached
  • getCacheVersion
  • isCacheSerializable

Where added to SdkRunnableTask and SdkContainerTask, The ProjectClosure is modified to propagate these properties to TaskTemplate and finally ProtoUtil was also modified to translate from (api) TaskTemplate to proto TaskTemplate. The properties isCached and getCacheVersion where renamed in TaskTemplate to discoverable and discoveryVersion to match the one in proto TaskTemplate.

Finally the examples were modified to add caching.

kiarash rezahanjani and others added 7 commits July 27, 2022 13:25
Signed-off-by: kiarash rezahanjani <[email protected]>
to make them more with other properties, they follow
the javabeans naming convention

Signed-off-by: Nelson Arapé <[email protected]>
cache -> discoverable
cacheVersion -> discoveryVersion

Signed-off-by: Nelson Arapé <[email protected]>
Null are more natural default value in Java than
empty string. Make the null <-> "" conversion at
the ProtoUtil boundary

Signed-off-by: Nelson Arapé <[email protected]>
By introducing a common super interface to RunnableTask and ContainerTask

Signed-off-by: Nelson Arapé <[email protected]>
@narape
Copy link
Contributor Author

narape commented Jul 27, 2022

Supersedes #121

@narape narape force-pushed the task-cache-support branch from 9047492 to 938a7a4 Compare July 27, 2022 14:19
@narape
Copy link
Contributor Author

narape commented Jul 27, 2022

@kiarash-rezahanjani I took your PR and expanded. I renamed some things and also added cache to SdkContainerTasks

@narape narape merged commit 37a9acf into master Jul 28, 2022
@narape narape deleted the task-cache-support branch July 28, 2022 11:37
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.

2 participants