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

Support duplicate plugins #419

Merged
merged 6 commits into from
Aug 8, 2023
Merged

Support duplicate plugins #419

merged 6 commits into from
Aug 8, 2023

Conversation

hannahilea
Copy link
Contributor

@hannahilea hannahilea commented Aug 7, 2023

Closes #266.

Re-adds the changes started by @nickrobinson251 in #269, with the addition of tests.

Question: Previously, duplicated plugins would be silently removed. Now, they're silently allowed---even in cases where they could potentially lead to undefined behavior (in cases where only one plugin of a certain type is implicitly expected). Not sure what this means for semver: since it's a change in behavior, perhaps it should be a breaking change? But since it was never an explicitly stated behavior, perhaps it's just unbreaking? ...or maybe we should support a flag for falling back on the old behavior? Or throw a warning if duplicate plugins exist? I have no strong opinion here.

  • TODO: update version once decision on semver status is decided.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #419 (0873f8d) into master (9b6b59d) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #419      +/-   ##
==========================================
+ Coverage   93.56%   93.58%   +0.01%     
==========================================
  Files          23       23              
  Lines         684      686       +2     
==========================================
+ Hits          640      642       +2     
  Misses         44       44              
Files Changed Coverage Δ
src/template.jl 97.69% <100.00%> (+0.03%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nickrobinson251
Copy link
Collaborator

i'm inclined towards saying this isn't breaking; i think duplicate plugins was undefined behaviour before (we never stated which would "win"), so i don't think anyone could safely be relying on passing duplicate plugins.

Copy link
Collaborator

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for picking this up!

@hannahilea
Copy link
Contributor Author

great! i bumped the patch version so that once this is merged we can tag a release (since it looks like this packages makes frequent releases on a per-PR basis anyway).

also i was expecting to have to do a significant testing lift or hunt down edge cases, but it turns out your initial implementation was ready to go, and really did just need the few lines of tests.... so thank you!

@hannahilea
Copy link
Contributor Author

...not sure why codecov dropped here, but it seems unrelated to this PR. I think this is ready to merge!

@nickrobinson251
Copy link
Collaborator

yeah, that's fine -- please could you rebase on master? (another PR went in first, so the version will need bumping one more)

@hannahilea
Copy link
Contributor Author

done!

@nickrobinson251 nickrobinson251 merged commit fd9aedf into JuliaCI:master Aug 8, 2023
@hannahilea hannahilea deleted the hr/support-duplicate-plugins branch August 8, 2023 14:08
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.

Allow multiple plugins of the same type (e.g. GithubActions CI plugins)
2 participants