Skip to content

Fix deadlock issue when following logs#2556

Merged
tekton-robot merged 1 commit intotektoncd:mainfrom
divyansh42:fix-logs-deadlock
Jun 23, 2025
Merged

Fix deadlock issue when following logs#2556
tekton-robot merged 1 commit intotektoncd:mainfrom
divyansh42:fix-logs-deadlock

Conversation

@divyansh42
Copy link
Member

@divyansh42 divyansh42 commented Jun 17, 2025

Changes

Fixes: #2484

Removed eventC channel and used variables with some logic changes to avoid the deadlock condition

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jun 17, 2025
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 17, 2025
@divyansh42 divyansh42 marked this pull request as draft June 17, 2025 12:59
@divyansh42
Copy link
Member Author

/retest

@divyansh42 divyansh42 marked this pull request as ready for review June 17, 2025 14:53
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 19, 2025
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 22, 2025
@divyansh42 divyansh42 changed the title [WIP] Fix deadlock issue when following logs Fix deadlock issue when following logs Jun 23, 2025
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 23, 2025
@veruu
Copy link

veruu commented Jun 23, 2025

We've been hitting the original problem in our team on almost every 3rd run. I've tested @divyansh42 's fixes extensively over the past couple of days, and can confirm I have not hit the problem with them and the runs look correct.

@pratap0007
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2025
@pratap0007
Copy link
Contributor

cc: @piyush-garg @vinamra28

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2025
@tekton-robot tekton-robot merged commit 8651be3 into tektoncd:main Jun 23, 2025
8 checks passed
vinamra28 added a commit that referenced this pull request Jul 14, 2025
#2548 | [dependabot[bot]] Bump the go-docker-dependencies group with 2 updates | 2025/05/30-06:18
#2544 | [vinamra28] Update CLI docs for tkn v0.41.0 | 2025/05/30-07:58
#2525 | [Abhishek Ghosh] Add flag to prefix log lines with log source (task and step name) by default | 2025/06/05-16:57
#2525 | [Abhishek Ghosh] updated the docs | 2025/06/05-16:57
#2525 | [Abhishek Ghosh] Add unit test scripts | 2025/06/05-16:57
#2525 | [Abhishek Ghosh] Adjust pipeline logs test to align with updated output format | 2025/06/05-16:57
#2549 | [dependabot[bot]] Bump the go-docker-dependencies group with 2 updates | 2025/06/10-10:07
#2553 | [Chmouel Boudjnah] fix: update Pending color of PipelineRunPending | 2025/06/11-14:51
#2552 | [dependabot[bot]] Bump github.com/cloudflare/circl from 1.3.7 to 1.6.1 | 2025/06/13-06:33
#2556 | [divyansh42] Fix deadlock issue when following logs | 2025/06/23-17:15
null | [dependabot[bot]] Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 in /tools | 2025/06/30-07:27

Signed-off-by: vinamra28 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deadlock when following logs for pipelineruns and taskruns

5 participants