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

Make migrations compatible with settings category removal #80

Merged
merged 4 commits into from
May 11, 2023

Conversation

stejskalleos
Copy link
Contributor

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

It still fails. Looks like this also needs a change:

setting = Setting.where(category: 'Setting::Puppetdb', name: 'puppetdb_api_version').first_or_create

@stejskalleos
Copy link
Contributor Author

Migrations fixed, but now it's failing on webpack:

Can't find our webpack executable at /home/jenkins/workspace/puppetdb_foreman-pull-request/label/fast/ruby/2.7/foreman/node_modules/.bin/webpack - have you run `npm install`?
/home/jenkins/workspace/puppetdb_foreman-pull-request/label/fast/ruby/2.7/foreman/lib/tasks/webpack_compile.rake:19:in `block (2 levels) in <top (required)>'

Why is webpack involved?

@ekohl
Copy link
Member

ekohl commented May 2, 2023

That's a good question, since there is no package.json it shouldn't have any webpack resources. It's probably fallout from
theforeman/jenkins-jobs@ebfdda2 where $database was previously undefined, but now rake jenkins:integration is run unconditionally. And jenkins:integration pulls in webpack:compile: https://github.com/theforeman/foreman/blob/4381a7bb7fadf5c3c11f0976343b1b025edf5039/lib/tasks/jenkins.rake#L6

@ekohl
Copy link
Member

ekohl commented May 11, 2023

I opened theforeman/jenkins-jobs#337 which I think should fix it.

@ekohl
Copy link
Member

ekohl commented May 11, 2023

[test puppetdb_foreman]

1 similar comment
@ekohl
Copy link
Member

ekohl commented May 11, 2023

[test puppetdb_foreman]

@ekohl ekohl changed the title Update 20221026123754_fix_puppetdb_settings_category_to_dsl.rb Make migrations compatible with settings category removal May 11, 2023
@ekohl ekohl merged commit 412372d into theforeman:master May 11, 2023
2 checks passed
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.

None yet

3 participants