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

Cache packages' dependencies #520

Closed
2 of 3 tasks
Tracked by #485
AlexRuiz7 opened this issue Nov 6, 2024 · 0 comments
Closed
2 of 3 tasks
Tracked by #485

Cache packages' dependencies #520

AlexRuiz7 opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
level/task Task issue request/operational Operational requests type/enhancement Enhancement issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Nov 6, 2024

Description

The packages' builder downloads the required dependencies, such as the OpenSearch plugins, on each run, considerably slowing down its execution. The process can be fastened by caching these dependencies on GH Workflow.

The goal of this issue is to reuse these dependencies on each run, as they only change when we move to a different version of OpenSearch.

Functional requirements

  • The packages builder workflow caches OpenSearch plugins by version.
  • The packages builder workflow uses the cache to speed up the building (does not download the plugins on each run, unless required).
  • The process to manage cache entries is documented, describing when and how cache entries should be deleted.

Implementation restrictions

  • GH Workflow cache mechanism must be used.
  • Workflow inputs must not change.
  • Workflow executions using cache must be faster than those not using cache.

Plan

  • Update the build.yml workflow to cache OpenSearch plugins
  • Update the build.yml workflow to install OpenSearch plugins from cache, if it exists.
  • Create a Cache Management User Manual, describing when cache entries are considered obsolete and how they can be deleted.
@AlexRuiz7 AlexRuiz7 added level/task Task issue request/operational Operational requests type/enhancement Enhancement issue labels Nov 6, 2024
@wazuhci wazuhci moved this to Triage in Release 5.0.0 Nov 6, 2024
@wazuhci wazuhci moved this from Triage to Backlog in Release 5.0.0 Nov 7, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 5.0.0 Nov 7, 2024
@mcasas993 mcasas993 linked a pull request Nov 9, 2024 that will close this issue
3 tasks
@AlexRuiz7 AlexRuiz7 linked a pull request Nov 12, 2024 that will close this issue
3 tasks
@wazuhci wazuhci moved this from In progress to In review in Release 5.0.0 Nov 15, 2024
@AlexRuiz7 AlexRuiz7 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@wazuhci wazuhci moved this from In review to Done in Release 5.0.0 Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue request/operational Operational requests type/enhancement Enhancement issue
Projects
Status: Done
2 participants