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

Add dynamic agent collections to test matrix generation #357

Merged
merged 2 commits into from
Dec 11, 2020

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Dec 11, 2020

This PR adds the ability for matrix_from_metadata to generate the agent collections portion of the test matrix from the module's metadata.json. This way, modules that don't support certain Puppet versions won't have tests run against those versions.

This supersedes #356.

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #357 (8f6a172) into main (703b834) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #357   +/-   ##
=======================================
  Coverage   61.46%   61.46%           
=======================================
  Files           7        7           
  Lines         846      846           
=======================================
  Hits          520      520           
  Misses        326      326           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 703b834...8f6a172. Read the comment docs.

* Change version_requirement check to use Gem::Requirement instead of eval
* use COLLECTION_TABLE.values instead of a loop
* sort the resulting collections for deterministic run-order
* add some comments to existing code
* output a warning on regex match fail
* allow no-space between op and ver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants