Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Add support for inspec 5 and drop inspec < 4.25.1 #485

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Add support for inspec 5 and drop inspec < 4.25.1 #485

merged 1 commit into from
Jan 18, 2023

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Jan 5, 2023

Update dependencies to drop support for inspec versions below 4.25.1

Update changelog

Also update inspec link in CONTRIBUTING.md

Fixes #479

@edwardbartholomew
Copy link
Collaborator

Thank you for your interest in kitchen-terraform and your effort adding support for Inspec 5. Per https://docs.chef.io/versions/ Inspec 3 is end of life so that is one argument in favor of us dropping support however it’s also the last “free distribution” as future releases fall under “commercial distribution” and requires accepting the license. I am not sure how that would effect all the users of this tool. Would love to read some discussion around this if relevant point.

@wyardley
Copy link
Contributor Author

wyardley commented Jan 5, 2023

Thanks. I am personally in favor of dropping support for unsupported EOL versions, but what you say also makes sense.
If the maintainers would prefer to keep 3.x support in, it's not difficult to leave the constraint where it is.

@wyardley
Copy link
Contributor Author

wyardley commented Jan 9, 2023

@aaron-lane any thoughts / preferences here?

@aaron-lane
Copy link
Collaborator

Sorry for the delay! If there isn't a technical blocker for maintaining support of InSpec 3 then I think we should do so for now to avoid the need for another major release.

@wyardley
Copy link
Contributor Author

wyardley commented Jan 9, 2023

Looks like the failure is related to junit2 not being a valid reporter type. I am successfully using junit2 in inspec 4 (and looks like the test matrix is still setting up inspec 4.x). Happy to adjust the test if it wasn't already breaking, though seems like junit2 should still be a valid type?

Same error as #426

@aaron-lane aaron-lane self-requested a review January 9, 2023 20:56
@aaron-lane
Copy link
Collaborator

Thanks @wyardley. I just need to find some time to dig into this issue. I'm hoping by the end of the calendar week 🤞🏼

@aaron-lane
Copy link
Collaborator

Based on some testing, it appears that the complex pinning we currently have on the inspec gem is causing a version to be installed which doesn't support junit2. So, I think the cleanest solution is indeed to drop support for InSpec 3 and tighten our support of InSpec 4:

specification.add_runtime_dependency "inspec", ">= 4.25.1", "< 6"

Add support for inspec 5

Update dependencies to drop support for inspec versions below 4.25.1

Update changelog

Also update inspec link in CONTRIBUTING.md

Fixes #479
@wyardley
Copy link
Contributor Author

Appreciate the research, and that makes sense. Let me know if the updated PR looks right to you.

@wyardley wyardley changed the title Add support for inspec 5 and drop inspec 3 Add support for inspec 5 and drop inspec < 4.25.1 Jan 18, 2023
@wyardley
Copy link
Contributor Author

Also, lmk if you can handle everything related to it being a breaking change, or if you want me to add anything to the titles or update the labels or anything.

@aaron-lane
Copy link
Collaborator

Also, lmk if you can handle everything related to it being a breaking change, or if you want me to add anything to the titles or update the labels or anything.

@wyardley all good; the change log update is sufficient!

@aaron-lane aaron-lane merged commit 13fb8bb into newcontext-oss:master Jan 18, 2023
@luckeyca
Copy link

Hi @aaron-lane, when will this merge be release? Thanks

@aaron-lane
Copy link
Collaborator

Hi @luckeyca 👋🏼

Because this is a breaking change, I'm bundling it together with #299 for the next major version. I hope to have that finished in the next couple of weeks, but if you need this feature immediately, you can pin to the latest commit on the master branch as it should be stable for use.

@luckeyca
Copy link

Hi @aaron-lane, Thanks!

@wyardley wyardley deleted the wyardley/issue479 branch February 28, 2023 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Inspec 5.x support
4 participants