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

React warning fixes #19503

Merged
merged 4 commits into from
Oct 19, 2023
Merged

React warning fixes #19503

merged 4 commits into from
Oct 19, 2023

Conversation

passwd, and thus the accounts list can have duplicate UIDs, with
different user names. TestAccounts.testCustomUID covers that case.

Avoid this by consitently using user and group names, as the other
places of the code already do.
This property can specify a custom failure message, but there's a
default one. The SELinux page uses the default.
The property is required, and from the component's PoV that is right as
it gets called unconditionally. In the host selector we don't use
jumps/links, but React's property check cannot know that.

To quiesce these warnings, add a dummy jump property to the host
selector instantiation.
@martinpitt martinpitt marked this pull request as draft October 18, 2023 08:34
@martinpitt
Copy link
Member Author

martinpitt commented Oct 18, 2023

Oh, this failure is interesting:

Traceback (most recent call last):
  File \"<string>\", line 6, in <module>
  File \"/usr/lib/python3.6/site-packages/tracer/query.py\", line 72, in get
    return self._method(**self._kwargs)
  File \"/usr/lib/python3.6/site-packages/tracer/resources/tracer.py\", line 126, in trace_affected
    if not self._applications.find('kernel').ignore and self._has_updated_kernel():
  File \"/usr/lib/python3.6/site-packages/tracer/resources/tracer.py\", line 134, in _has_updated_kernel
    running = System.running_kernel_package()
  File \"/usr/lib/python3.6/site-packages/tracer/resources/system.py\", line 119, in running_kernel_package
    return System.package_manager().find_package(System.kernel_package_name(), os.uname()[3])
AttributeError: 'NoneType' object has no attribute 'find_package'"

I reported this a https://issues.redhat.com/browse/RHEL-14082 , this should become a naughty.

The other failures are easy, fixed.

pkg/packagekit/updates.jsx Fixed Show resolved Hide resolved
@martinpitt
Copy link
Member Author

one more common tracer exit which we should ignore. Same thing here.

@martinpitt martinpitt added the blocked Don't land until something else happens first (see task list) label Oct 18, 2023
ModuleNotFoundError happens every time on every non-Fedora OS, and
there are common problem codes which don't need to make noise.
@martinpitt
Copy link
Member Author

We should ignore UnsupportedDistribution as well

@martinpitt
Copy link
Member Author

Meh, one more tracer bug on RHEL 9.3 and RHEL 9.4:

I reported this to https://issues.redhat.com/browse/RHEL-14094 , will add naughty.

@martinpitt martinpitt removed the blocked Don't land until something else happens first (see task list) label Oct 18, 2023
@martinpitt martinpitt marked this pull request as ready for review October 18, 2023 12:32
@martinpitt martinpitt requested a review from jelly October 18, 2023 12:32
@martinpitt
Copy link
Member Author

The accounts tests are very flaky with 3x affected retries, but the remaining ones are unrelated to the changes here. @jelly perhaps you can hit the retry button later tonight, as I'll be AFK for a while.

exception.problem !== "access-denied" &&
// or the session goes away while checking
exception.problem !== "terminated")
console.error(`Tracer failed: "${JSON.stringify(exception)}", data: "${JSON.stringify(data)}"`);
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test. Details

sorting={(a, b) => true}
filtering={this.filterHosts}
current={label}
jump={() => console.error("internal error: jump not supported in hosts selector")}
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test. Details

@martinpitt martinpitt merged commit f64e3d6 into cockpit-project:main Oct 19, 2023
36 checks passed
@martinpitt martinpitt deleted the key-fixes branch October 19, 2023 04:29
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.

3 participants