Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Enforce timeouts outside of resyncs #563

Merged
merged 7 commits into from
Feb 19, 2019

Conversation

tzununbekov
Copy link
Member

Related to tektoncd/pipeline#456
Unblocks #543

Probably should be merged after #562

Proposed Changes

Timeout checks removed from resync:

  • Each new build starts goroutine that waits for either stop signal, build finish or build timeout
  • On controller restart new goroutines are being created to track build timeouts
  • Mutexes added to safely update build statuses

Release Note

NONE

@imjasonh
Copy link
Member

/ok-to-test

@imjasonh imjasonh changed the title Enforce timeouts Enforce timeouts outside of resyncs Feb 19, 2019
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-build-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/build/build.go 76.1% 69.5% -6.6
pkg/reconciler/build/timeout_handler.go Do not exist 67.3%

@imjasonh
Copy link
Member

/lgtm
/approve

@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ImJasonH, tzununbekov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit fa84c19 into knative:master Feb 19, 2019
vdemeester pushed a commit to vdemeester/knative-build that referenced this pull request Apr 3, 2019
* Use podName from build Status to create new pod

* Error on empty pod name. Remove pod name if validation fails

* Added timeout handler goroutines and build status locks

* Timeout value in build status message

* Resync period set to 10 hours. Fix build tests

* Sync lock on channel and status read/write. Test update
vdemeester pushed a commit to vdemeester/knative-build that referenced this pull request Apr 3, 2019
* Use podName from build Status to create new pod

* Error on empty pod name. Remove pod name if validation fails

* Added timeout handler goroutines and build status locks

* Timeout value in build status message

* Resync period set to 10 hours. Fix build tests

* Sync lock on channel and status read/write. Test update
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants