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

Convert Smart Proxy Plugin PR testing to a pipeline #258

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Sep 9, 2022

No description provided.

@ekohl ekohl force-pushed the smart-proxy-pr-testing-pipeline branch 2 times, most recently from 5820c11 to ddaba40 Compare September 9, 2022 11:40
@@ -1,40 +1,20 @@
- job-template:
name: 'smart-proxy-{plugin}-pull-request'
name: 'smart_proxy_{plugin}-pr-test'
Copy link
Member Author

Choose a reason for hiding this comment

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

Renaming also helps because Jenkins can't convert a matrix job to a pipeline.

The examples were already correct, but the name itself wasn't.
@ekohl ekohl force-pushed the smart-proxy-pr-testing-pipeline branch 2 times, most recently from ed2eec4 to b0f85e7 Compare September 9, 2022 11:52
@ekohl
Copy link
Member Author

ekohl commented Sep 9, 2022

@ekohl ekohl marked this pull request as draft September 9, 2022 12:11
@ekohl
Copy link
Member Author

ekohl commented Sep 9, 2022

So it needs some work: theforeman/smart_proxy_dns_infoblox#30. It's good work, since it brings the gem up to date and provides proper reporting of failures, but still work.

@ekohl ekohl force-pushed the smart-proxy-pr-testing-pipeline branch from b0f85e7 to 204abd7 Compare September 9, 2022 14:16
- project:
name: smart-proxy-plugin-pull-request
plugin:
- ansible
Copy link
Member Author

Choose a reason for hiding this comment

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

- ansible
- dhcp_infoblox
- dhcp_remote_isc
- dns_infoblox
Copy link
Member Author

Choose a reason for hiding this comment

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

name: smart-proxy-plugin-pull-request
plugin:
- ansible
- dhcp_infoblox
Copy link
Member Author

Choose a reason for hiding this comment

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

plugin:
- ansible
- dhcp_infoblox
- dhcp_remote_isc
Copy link
Member Author

Choose a reason for hiding this comment

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

@ehelms
Copy link
Member

ehelms commented Sep 12, 2022

Generally code looks good

@ekohl
Copy link
Member Author

ekohl commented Sep 12, 2022

@ehelms some Smart Proxy plugins do have Rubocop, others don't. Right now I'm going over them and add them where needed, but I wonder if we should make the pipeline aware of non-Rubocop projects by looking if .rubocop.yml exists (or otherwise, like via some variable). Any thoughts?

- monitoring
- omaha
- openscap
- pulp
Copy link
Member Author

Choose a reason for hiding this comment

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

@ehelms
Copy link
Member

ehelms commented Sep 13, 2022

@ehelms some Smart Proxy plugins do have Rubocop, others don't. Right now I'm going over them and add them where needed, but I wonder if we should make the pipeline aware of non-Rubocop projects by looking if .rubocop.yml exists (or otherwise, like via some variable). Any thoughts?

If that makes it more flexible, and avoids having to sit on this change waiting on projects then I am all for that method.

@ekohl ekohl force-pushed the smart-proxy-pr-testing-pipeline branch from 204abd7 to 1776737 Compare September 15, 2022 10:29
@ekohl ekohl marked this pull request as ready for review September 15, 2022 10:29
This also renames the job names to follow the convention.

It only converts projects which have been updated to be compatible.
@ekohl ekohl force-pushed the smart-proxy-pr-testing-pipeline branch from 1776737 to 625805e Compare September 15, 2022 10:31
@ekohl
Copy link
Member Author

ekohl commented Sep 15, 2022

For now I've updated it to only convert plugins which have been updated, allowing to move forward quicker.

@ekohl ekohl merged commit 625805e into theforeman:master Sep 15, 2022
@ekohl ekohl deleted the smart-proxy-pr-testing-pipeline branch September 15, 2022 10:41
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