-
Notifications
You must be signed in to change notification settings - Fork 97
chore: update dependencies to the latest versions #2016
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
Conversation
d3e7a3c to
340425e
Compare
340425e to
2de584b
Compare
|
/retest |
0ea494f to
f7dd97c
Compare
f7dd97c to
0e0fe88
Compare
95a064d to
e8d1b43
Compare
Signed-off-by: Anatolii Bazko <[email protected]>
Signed-off-by: Anatolii Bazko <[email protected]>
Signed-off-by: Anatolii Bazko <[email protected]>
e8d1b43 to
d59b64b
Compare
.github/workflows/pr-check.yml
Outdated
| check-license-header -f "${LICENSE_TEMPLATE}" ${FILES_TO_CHECK_LICENSE} | ||
| dependencies-md-validation: | ||
| dependencies-validation: | ||
| runs-on: ubuntu-22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, use latest version of ubuntu runner, either use ubuntu-latest or 24.04 or ubuntu-24.04-arm
| runs-on: ubuntu-22.04 | |
| runs-on: ubuntu-24.04 |
.github/workflows/pr-check.yml
Outdated
| env: | ||
| EXCLUDE_DEPS: "github.com/bmizerany/assert, gotest.tools/v3, github.com/dhui/dktest, gotest.tools, github.com/golangplus/testing" | ||
| - name: Checkout source code | ||
| uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/checkout@v3 | |
| uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for naive question,
Is DEPENDENCIES.md intentionally removed due to deprecation, redundancy, or is the information tracked elsewhere now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was intentionally removed and replaced by a PR check.
I've added build/scripts/clear-defined-test.sh to automatically check licenses.
cmd/main.go
Outdated
| os.Exit(1) | ||
| } | ||
|
|
||
| namespacechace := namespacecache.NewNamespaceCache(nonCachingClient) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
| namespacechace := namespacecache.NewNamespaceCache(nonCachingClient) | |
| namespacecache := namespacecache.NewNamespaceCache(nonCachingClient) |
| "github.com/devfile/devworkspace-operator/pkg/infrastructure" | ||
| devworkspaceinfra "github.com/devfile/devworkspace-operator/pkg/infrastructure" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, I see IsOpenShift() getting used in this class with these duplicated packages. Is it okay to delete one?
infrastructure.IsOpenShift()devworkspaceinfra.IsOpenShift()
Signed-off-by: Anatolii Bazko <[email protected]>
.github/workflows/pr-check.yml
Outdated
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the problem, add a permissions block to the workflow file .github/workflows/pr-check.yml. This block should be placed at the top level (before jobs:) to apply to all jobs in the workflow, unless a job requires different permissions. The minimal starting point is contents: read, which allows jobs to read repository contents but not write. If any job requires additional permissions (such as pull-requests: write), those can be added as needed, but based on the current workflow, only read access is required.
Specifically, insert the following block after the name: and on: keys, and before jobs::
permissions:
contents: readNo additional imports, methods, or definitions are required.
-
Copy modified lines R15-R16
| @@ -14,2 +14,4 @@ | ||
| on: pull_request | ||
| permissions: | ||
| contents: read | ||
| jobs: |
.github/workflows/pr-check.yml
Outdated
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the problem, add a permissions block at the top level of the workflow file (.github/workflows/pr-check.yml), just below the name: and before the on: key. This will apply the specified permissions to all jobs in the workflow unless overridden at the job level. The minimal recommended permissions are contents: read, which allows jobs to read repository contents but not write to them. If any job needs to write to pull requests (e.g., to post comments or statuses), you can add pull-requests: write, but based on the provided steps, only contents: read is required. No additional imports or definitions are needed.
-
Copy modified lines R14-R15
| @@ -13,2 +13,4 @@ | ||
| name: PR check | ||
| permissions: | ||
| contents: read | ||
| on: pull_request |
|
Remarks have been fixed. |
|
/retest |
| t.Fatalf("Failed to update the manager in the fake client: %s", err) | ||
| } | ||
| // It is not possible to update readonly field | ||
| //manager.DeletionTimestamp = &metav1.Time{Time: time.Now()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to simulate deletion by calling client.Delete() instead of manually setting .DeletionTimestamp?
Does the fake client automatically set .DeletionTimestamp when Delete() is called, or would we need to mock that behavior manually for finalizer testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the hint.
Fake client does set DeletionTimestamp, the test was updated accordingly.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rohanKanojia, tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: Anatolii Bazko <[email protected]>
|
New changes are detected. LGTM label has been removed. |
|
/retest |
|
It seems |
What does this PR do?
Update project dependencies, specifically
github.com/operator-framework/apito have ability to setuserNamespaceLevelinSCCScreenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
https://issues.redhat.com/browse/CRW-8320
How to test this PR?
OpenShift
on Minikube
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or referenceandHow to test this PRcompletedReviewers
Reviewers, please comment how you tested the PR when approving it.