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

[YUNIKORN-1956] Add wildcard user/group limit e2e tests #738

Closed
wants to merge 2 commits into from

Conversation

FrankYang0529
Copy link
Member

What is this PR for?

Specific user/group limits + wild card user/group limits to ensure order of precedence:

  1. set user limit & wild card user limit only and ensure it has been honoured.
    5a) When the user limit is specified, it should be considered for that specific user
    5b) When the user limit is not specified, the wild card user limit should be considered for that specific user
  2. set group limit & wild card group limit only and ensure it has been honoured.
    6a) When the group limit is specified, it should be considered for that specific group
    6b) When the group limit is not specified, the wild card group limit should be considered for that specific group
  3. Repeat the above for max resources and max applications individually and together as well

What type of PR is it?

  • - Improvement

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-1956

Signed-off-by: PoAn Yang <payang@apache.org>
@FrankYang0529 FrankYang0529 self-assigned this Nov 28, 2023
Signed-off-by: PoAn Yang <payang@apache.org>
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (779450c) 69.52% compared to head (ec57ad7) 69.46%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #738      +/-   ##
==========================================
- Coverage   69.52%   69.46%   -0.07%     
==========================================
  Files          50       50              
  Lines        7993     7993              
==========================================
- Hits         5557     5552       -5     
- Misses       2248     2252       +4     
- Partials      188      189       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FrankYang0529 FrankYang0529 marked this pull request as ready for review November 30, 2023 14:48
Copy link
Contributor

@manirajv06 manirajv06 left a comment

Choose a reason for hiding this comment

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

looks good.

ginkgo.By("Update config")
annotation = "ann-" + common.RandSeq(10)
// The wait wrapper still can't fully guarantee that the config in AdmissionController has been updated.
yunikorn.WaitForAdmissionControllerRefreshConfAfterAction(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it so? If it is known issue, Do we have any jira to track this? I remember some one else too raised this issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is introduced from https://issues.apache.org/jira/browse/YUNIKORN-1998. I just copy-paste from previous test cases.

@manirajv06 manirajv06 self-requested a review December 3, 2023 14:20
@manirajv06 manirajv06 closed this in dd02f2e Dec 3, 2023
@FrankYang0529 FrankYang0529 deleted the YUNIKORN-1956 branch December 12, 2023 03:28
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