Skip to content

Fixes #38768: get rid of grub (not grub2)#10698

Merged
stejskalleos merged 1 commit intotheforeman:developfrom
ATIX-AG:rm_pxegrub
Oct 2, 2025
Merged

Fixes #38768: get rid of grub (not grub2)#10698
stejskalleos merged 1 commit intotheforeman:developfrom
ATIX-AG:rm_pxegrub

Conversation

@sbernhard
Copy link
Contributor

No description provided.

@sbernhard sbernhard marked this pull request as draft September 23, 2025 16:46
@sbernhard sbernhard force-pushed the rm_pxegrub branch 4 times, most recently from 9a10cb3 to 73788df Compare September 23, 2025 19:08
@sbernhard sbernhard changed the title Draft: get rid of grub (not grub2) Fixes #38768: get rid of grub (not grub2) Sep 23, 2025
@sbernhard sbernhard marked this pull request as ready for review September 23, 2025 19:08
@sbernhard
Copy link
Contributor Author

May have a look @stejskalleos

@stejskalleos stejskalleos self-assigned this Sep 24, 2025
@stejskalleos stejskalleos self-requested a review September 24, 2025 12:42
Copy link
Contributor

@stejskalleos stejskalleos left a comment

Choose a reason for hiding this comment

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

Found a few places mentioning old Grub, but otherwise great cleanup!

I went over other repositories to check the status there:

I will take care of the cleanup for the repositories

@sbernhard
Copy link
Contributor Author

Interesting what tests I broke with the last push? Are they related or did something else change?

@sbernhard sbernhard force-pushed the rm_pxegrub branch 2 times, most recently from 3fb8d31 to 9d04383 Compare September 25, 2025 18:36
@stejskalleos
Copy link
Contributor

It looks like you indeed broke the tests, on my local develop tests work fine, but not on your branch.

But it's really weird, why are duplicate_json_keys failing now? I'm looking into it.

@stejskalleos
Copy link
Contributor

Nope, I take back my previous comment. RAILS_ENV=test bundle exec rake test:units is generating the same warning flood as Github CI.

@sbernhard
Copy link
Contributor Author

Nope, I take back my previous comment. RAILS_ENV=test bundle exec rake test:units is generating the same warning flood as Github CI.

I think, wvanbergen/scoped_search@b9a64fc broke this: https://github.com/theforeman/foreman/actions/runs/18006520466/job/51228060554?pr=10698#step:16:28

And this looks like also related to the broken unit test: https://github.com/theforeman/foreman/actions/runs/18011179034/job/51244143760#step:16:149

@adamruzicka is working on it in: #10677

@stejskalleos
Copy link
Contributor

stejskalleos commented Sep 26, 2025

I'm still able to reproduce the issue without the PR you mentioned.

ruby 3.0.7p220 (2024-04-23 revision 724a071175) [x86_64-linux]

playground.rb

require 'facterdb'
filter = "operatingsystemmajrelease=10"
result = FacterDB.get_facts(filter)

Running bundle exec ruby playground.rb works fine.

Then in the /path/to/gems/jgrep-1.5.4/lib/jgrep.rb:27 file, I change:

json = JSON.parse(json)
# TO:
json = JSON.parse(json, {allow_duplicate_key: false})

Running bundle exec ruby playground.rb:

Error. Invalid JSON given
/home/lstejska/.rbenv/versions/3.0.7/lib/ruby/gems/3.0.0/gems/facterdb-1.27.0/lib/facterdb.rb:146:in `get_facts': undefined method `map' for nil:NilClass (NoMethodError)
	from playground.rb:4:in `<main>'` 

So, when we upgrade Rails and its json gem, this will happen anyway.

Suspect: https://github.com/voxpupuli/facterdb/blob/1.27.0/lib/facterdb.rb#L146

stejskalleos added a commit to stejskalleos/foreman_discovery that referenced this pull request Sep 30, 2025
stejskalleos added a commit to stejskalleos/foreman_discovery that referenced this pull request Sep 30, 2025
stejskalleos added a commit to stejskalleos/foreman_theme_satellite that referenced this pull request Sep 30, 2025
@sbernhard
Copy link
Contributor Author

Copy link
Contributor

@stejskalleos stejskalleos left a comment

Choose a reason for hiding this comment

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

🍏 LGTM

@stejskalleos stejskalleos merged commit 08e6b2c into theforeman:develop Oct 2, 2025
64 of 65 checks passed
@stejskalleos
Copy link
Contributor

thanks @sbernhard

stejskalleos added a commit to theforeman/smart-proxy that referenced this pull request Oct 2, 2025
stejskalleos added a commit to stejskalleos/foreman_discovery that referenced this pull request Oct 2, 2025
stejskalleos added a commit to stejskalleos/foreman_discovery that referenced this pull request Oct 7, 2025
stejskalleos added a commit to theforeman/foreman_discovery that referenced this pull request Oct 7, 2025
adamruzicka pushed a commit to RedHatSatellite/foreman_theme_satellite that referenced this pull request Oct 8, 2025
@maximiliankolb maximiliankolb deleted the rm_pxegrub branch November 18, 2025 12:59
arvind4501 pushed a commit to arvind4501/foreman_discovery that referenced this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants