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

Fixes for CI failures #141

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Fixes for CI failures #141

merged 3 commits into from
Jan 3, 2025

Conversation

brenns10
Copy link
Member

@brenns10 brenns10 commented Jan 3, 2025

Two fixes to recent changes - one in the kernfs_memcg code, and one in the sysctl code. Both of these are only present in the main branch so no backport is required. Since they're fixes to such recent code, I haven't created a bug for them.

The proc_do_large_bitmap() function prints a bitmap in a string
representation, but the bitmap is not stored as a string. Treating it as
such results in FaultErrors.

Fixes: 2385230 ("kernfs,memcg: Fix CI failure for UEK4.")

Signed-off-by: Stephen Brennan <[email protected]>
The CSS_DYING flag was only introduced in 33c35aa481786 ("cgroup:
Prevent kill_css() from being called more than once"), which was
introduced in v4.12, but present in some backports. Since we only need
to refer to this constant in order to get the enum type, use CSS_ONLINE,
which has been present since v3.8.

Fixes: 30e57f6 ("kernfs,memcg: Add helpers to get memcg info")

Signed-off-by: Stephen Brennan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 3, 2025
The max_scan parameter of dump_page_cache_pages_pinning_cgroups() only
allows limiting the number of matching pages which are printed. For
systems or vmcores where there are (a) many pages, and (b) no matching
pages, this means that all pages (or nearly all) are scanned before the
function can terminate.

This isn't really a problem for the corelens module: users must run it
manually (not as part of any report). If it runs too long, they may
interrupt it with Ctrl-C. But for CI testing, the function runs too
long in some cases.

So, introduce a max_scan parameter that limits the number of pages
considered. The test limits the scan count to a million, which seems
more than enough. The max_scan parameter is not exposed to the corelens
module, but it can be at a later date if a need arises.

Signed-off-by: Stephen Brennan <[email protected]>
@brenns10
Copy link
Member Author

brenns10 commented Jan 3, 2025

CI passed on Github and Gitlab!

@brenns10 brenns10 merged commit 7ae115f into oracle-samples:main Jan 3, 2025
4 checks passed
@brenns10 brenns10 deleted the ci_fixes branch January 3, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants