[INFRA] Add k8s pipeline by roryqi · Pull Request #340 · apache/uniffle · GitHub
Skip to content

[INFRA] Add k8s pipeline#340

Merged
roryqi merged 8 commits into
apache:masterfrom
roryqi:k8s
Nov 18, 2022
Merged

[INFRA] Add k8s pipeline#340
roryqi merged 8 commits into
apache:masterfrom
roryqi:k8s

Conversation

@roryqi

@roryqi roryqi commented Nov 18, 2022

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add a github pipeline to run the tests of k8s

Why are the changes needed?

It can help us to verify the k8s patch

Does this PR introduce any user-facing change?

No

How was this patch tested?

No

@roryqi roryqi changed the title [Infra] Add k8s pipeline [INFRA] Add k8s pipeline Nov 18, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why not use golang 1.19 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The operator is implemented by version 1.16 now. If necessary, we can upgrade it.

@codecov-commenter

codecov-commenter commented Nov 18, 2022

Copy link
Copy Markdown

Codecov Report

Merging #340 (413c163) into master (1aa3661) will decrease coverage by 3.20%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #340      +/-   ##
============================================
- Coverage     61.37%   58.17%   -3.21%     
  Complexity     1529     1529              
============================================
  Files           186      192       +6     
  Lines          9445    10606    +1161     
  Branches        924      924              
============================================
+ Hits           5797     6170     +373     
- Misses         3340     4068     +728     
- Partials        308      368      +60     
Impacted Files Coverage Δ
...oy/kubernetes/operator/pkg/controller/util/util.go 9.37% <0.00%> (ø)
deploy/kubernetes/operator/pkg/webhook/manager.go 53.43% <0.00%> (ø)
...rnetes/operator/pkg/webhook/inspector/inspector.go 69.56% <0.00%> (ø)
...y/kubernetes/operator/pkg/webhook/inspector/rss.go 47.70% <0.00%> (ø)
...bernetes/operator/pkg/controller/controller/rss.go 32.48% <0.00%> (ø)
...y/kubernetes/operator/pkg/webhook/inspector/pod.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@roryqi roryqi requested a review from kaijchen November 18, 2022 11:08
@roryqi roryqi linked an issue Nov 18, 2022 that may be closed by this pull request
3 tasks
@roryqi

roryqi commented Nov 18, 2022

Copy link
Copy Markdown
Contributor Author

Could you help me review this patch? @zuston @kaijchen

@zuston zuston left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@roryqi roryqi merged commit d09b40b into apache:master Nov 18, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can set if: ${{ matrix.profile == kubernetes}} here, although it is not required.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could you raise a good first issue about this optimization?

zuston pushed a commit that referenced this pull request Mar 5, 2026
…tting to avoid deadlock in decompression worker (#2737)

### What changes were proposed in this pull request?

Release segmentPermits first to avoid deadlock

### Why are the changes needed?

#2601 caused ShuffleReadClientImplTest to hang, see https://github.com/apache/uniffle/actions/runs/22700481546/job/65816264462?pr=2736

Threads dump:

```
"main" #1 prio=5 os_prio=31 tid=0x0000000152014000 nid=0x1a03 waiting on condition [0x000000016b5a9000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x000000076c844f78> (a java.util.concurrent.CompletableFuture$Signaller)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1707)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3334)
	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1742)
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
	at org.apache.uniffle.client.response.DecompressedShuffleBlock.getByteBuffer(DecompressedShuffleBlock.java:62)
	at org.apache.uniffle.client.response.DecompressedShuffleBlock.getUncompressLength(DecompressedShuffleBlock.java:53)
	at org.apache.uniffle.client.impl.DecompressionWorker.get(DecompressionWorker.java:165)
	at org.apache.uniffle.client.impl.ShuffleReadClientImpl.readShuffleBlockData(ShuffleReadClientImpl.java:329)
	at org.apache.uniffle.client.TestUtils.validateResult(TestUtils.java:55)
	at org.apache.uniffle.client.impl.ShuffleReadClientImplTest.readTest7(ShuffleReadClientImplTest.java:357)
```

```
"decompressionWorker-0" #340 daemon prio=5 os_prio=31 tid=0x000000011b921000 nid=0x1481f waiting on condition [0x0000000329772000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x000000076abc0630> (a java.util.concurrent.Semaphore$NonfairSync)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
	at java.util.concurrent.Semaphore.acquire(Semaphore.java:312)
	at org.apache.uniffle.client.impl.DecompressionWorker.lambda$add$0(DecompressionWorker.java:102)
	at org.apache.uniffle.client.impl.DecompressionWorker$$Lambda$490/0x00000008006a0028.get(Unknown Source)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1604)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
```

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Needn't
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.

[Improvement] Add k8s Operator pipeline

4 participants