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

feat: make Test Workflow processing more stable #5814

Merged
merged 73 commits into from
Sep 5, 2024

Conversation

rangoo94
Copy link
Member

@rangoo94 rangoo94 commented Sep 4, 2024

Pull request description

  • Make execution signature available in Pod spec as label
  • Replace Control Server from HTTP to bare faster TCP
  • Avoid reading all logs into memory
  • Rewrite watching the Test Workflows execution
  • Handle EPIPE, connection lost and other edge case errors in the containers and cluster
  • Reuse Execution Controllers when it is possible (to avoid duplicated Kubernetes watchers)
  • Retry saving the logs when it is possible
  • Retry fetching the tarball

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Fixes

@rangoo94 rangoo94 marked this pull request as ready for review September 4, 2024 17:01
@rangoo94 rangoo94 requested a review from a team as a code owner September 4, 2024 17:01
Copy link
Collaborator

@vsukhin vsukhin left a comment

Choose a reason for hiding this comment

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

lgtm

@rangoo94 rangoo94 merged commit be04923 into develop Sep 5, 2024
35 checks passed
@rangoo94 rangoo94 deleted the sandbox/watchers-refactor branch September 5, 2024 13:47
rangoo94 added a commit that referenced this pull request Sep 6, 2024
* feat: add new individual Events and Job Watchers
* feat: add individual pod watcher
* fix: resuming concurrency problems in parallel operations
* feat: add multiple fallbacks for fetching important execution properties from resources
* chore: get rid of Peek(ctx) and Exists() from PodWatcher and JobWatcher
* chore: get rid of Stop() from PodWatcher, JobWatcher and EventsWatcher
* chore: rename `hook` to `listener`, delete IsStarted()
* chore: store watcher's error directly in the context
* chore: extract code for reading the job/pod latest timestamp
* chore: add boolean to determine if the watcher is actually watching
* chore: make pod events watcher immediately available when pod name is received
* feat: reimplement watching
* fix: handle case when the job is aborted before the pod is started
* fix: building unique references on the layer
* fix: deadlock while watching the execution
* feat: make the control server lightweight and faster (small TCP packets instead of HTTP)
* fix: add retrying mechanism for resuming the parallel workflows
* chore: delete Merge() from TestWorkflowStepResult
* feat: implement refined way to build Test Workflow's result
* feat: speed up aborting job
* chore: get rid of part of Notifier functionality
* fix: make sending the results more stable
* chore: optimize getting container error from Pod
* chore: optimize reading container name from event
* chore: optimize building result state by caching actions and sequence
* chore: delete some logs and avoid sending finishedAt without status
* fix: handle edge case with node resources issue (EPIPE)
* chore: move RecomputeTimestamps implementation to TestWorkflowResult
* chore: move more healing functions to TestWorkflowResult
* chore: move another set of healing functions to TestWorkflowResult
* fix: adjust a bit completion timestamp
* fix: handle GOAWAY in logs
* fix: handle connection to control plane lost in logs
* fix: retry fetching tarball on failure
* fix: retry fetching parallel/service logs
* fix: retry saving the logs to Minio
* fix: reduce number of FS operations in Init Process
* fix: avoid negative periods in results
* fix: processing tests with massive logs, align completion time to the newest logs/events
exu pushed a commit that referenced this pull request Sep 6, 2024
* feat: add new individual Events and Job Watchers
* feat: add individual pod watcher
* fix: resuming concurrency problems in parallel operations
* feat: add multiple fallbacks for fetching important execution properties from resources
* chore: get rid of Peek(ctx) and Exists() from PodWatcher and JobWatcher
* chore: get rid of Stop() from PodWatcher, JobWatcher and EventsWatcher
* chore: rename `hook` to `listener`, delete IsStarted()
* chore: store watcher's error directly in the context
* chore: extract code for reading the job/pod latest timestamp
* chore: add boolean to determine if the watcher is actually watching
* chore: make pod events watcher immediately available when pod name is received
* feat: reimplement watching
* fix: handle case when the job is aborted before the pod is started
* fix: building unique references on the layer
* fix: deadlock while watching the execution
* feat: make the control server lightweight and faster (small TCP packets instead of HTTP)
* fix: add retrying mechanism for resuming the parallel workflows
* chore: delete Merge() from TestWorkflowStepResult
* feat: implement refined way to build Test Workflow's result
* feat: speed up aborting job
* chore: get rid of part of Notifier functionality
* fix: make sending the results more stable
* chore: optimize getting container error from Pod
* chore: optimize reading container name from event
* chore: optimize building result state by caching actions and sequence
* chore: delete some logs and avoid sending finishedAt without status
* fix: handle edge case with node resources issue (EPIPE)
* chore: move RecomputeTimestamps implementation to TestWorkflowResult
* chore: move more healing functions to TestWorkflowResult
* chore: move another set of healing functions to TestWorkflowResult
* fix: adjust a bit completion timestamp
* fix: handle GOAWAY in logs
* fix: handle connection to control plane lost in logs
* fix: retry fetching tarball on failure
* fix: retry fetching parallel/service logs
* fix: retry saving the logs to Minio
* fix: reduce number of FS operations in Init Process
* fix: avoid negative periods in results
* fix: processing tests with massive logs, align completion time to the newest logs/events
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