-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(backend): add the option to enable/disable cache globally #11831
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
Conversation
Skipping CI for Draft Pull Request. |
7e2b253
to
d4957a3
Compare
774c968
to
0683e55
Compare
kubernetes_platform/python/test/snapshot/data/create_mount_delete_existing_pvc.py
Show resolved
Hide resolved
kubernetes_platform/python/test/snapshot/data/create_mount_delete_existing_pvc.yaml
Show resolved
Hide resolved
...etes_platform/python/test/snapshot/data/create_mount_delete_existing_pvc_from_task_output.py
Show resolved
Hide resolved
...es_platform/python/test/snapshot/data/create_mount_delete_existing_pvc_from_task_output.yaml
Show resolved
Hide resolved
@rimolive regarding the changes in the PVC name, I added them because I ran all the tests with cache disabled just to see if I had done all the needed changes. When cache is disabled the PVC names conflict with each other. |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested as per PR instructions, including running a Pipeline and then cloning the run, with CACHEENABLED
env var in API Server Deployment set to false
, true
, and unset (defaults to caching enabled). Verified expected behavior in all cases.
/lgtm
@mprahl all comments addressed/answered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Co-authored-by: Giulio Frasca <giulio.m.frasca@gmail.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Co-authored-by: Matt Prahl <mprahl@users.noreply.github.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Co-authored-by: Matt Prahl <mprahl@users.noreply.github.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mprahl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
…low#11831) * feat(backend): add the option to enable/disable cache globally Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chore(backend): added logging when cache is disabled globally Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * Update backend/src/apiserver/resource/resource_manager.go Co-authored-by: Giulio Frasca <giulio.m.frasca@gmail.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chore(backend): Fixed Scheduled Workflows Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chrore(backend): Added integration tests Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chrore(backend): Removed container arg when --cache_enabled is true Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * Update backend/src/v2/cmd/driver/main.go Co-authored-by: Matt Prahl <mprahl@users.noreply.github.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * Update backend/src/v2/cmd/compiler/main.go Co-authored-by: Matt Prahl <mprahl@users.noreply.github.com> Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chrore(backend): Renamed to CacheDisabled and removed pointers Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> * chrore(backend): Added Argo compiler unit test with the cache disabled Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> --------- Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com> Co-authored-by: Giulio Frasca <giulio.m.frasca@gmail.com> Co-authored-by: Matt Prahl <mprahl@users.noreply.github.com> (cherry picked from commit 9aebb62) Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Description of your changes:
Resolves: #11840
This PR adds the option to enable/disable cache globally.
How to test
Deploy KFP with the
CACHEENABLED
environment variable set to"false"
in the API Server deployment.Run a pipeline twice. The second run should not use the cache.
Checklist: