-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
V2 of the action #21
V2 of the action #21
Conversation
While testing the draft of new action on GitHub
@obi1kenobi do you think it is a problem with the setup done by the action? Or might it be an issue with the |
This looks like a bug in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to see this coming together nicely! 🎉
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
I've found another (and the last) issue causing the tool to fail on Windows - the directory @obi1kenobi, I've seen that you were successful in debugging the previous issue and fixing it in frewsxcv/rust-crates-index#94. Could you have a look at this problem too? I believe it shouldn't take you much time, as it is probably another simple fix in BTW, I'm back to work and hope to get v2 of the action finished soon! |
This seems like it probably means Once we have that minimal test case, it will be easy to figure out whether it's something that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely moving in the right direction! Just a few "setting ourselves up for future success" suggestions.
Sure, I'm currently working on that :). |
Needs a bit of polish on the README, otherwise looks in pretty good shape! What else does it need before it's ready to merge? I know we wanted to add baseline rustdoc caching, but we can do that in a separate PR and it'll be easier to review that way. |
Thank you for all the comments and remarks, they are really valuable! I think the action is ready itself. I still want to add some workflow testing the action inputs (none of them is used at the moment). And then I think that polishing README and adding caching will be the only things remaining. |
Sounds great! Thanks for all the awesome work you've been putting in! |
I polished the README, please take a look and let me know what do you think now :) In the meanwhile, I'll start to work on rustdoc caching in a separate PR and notify you once it is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor polish items, I think this should be the last iteration before we merge this 🚀
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some lint-level nitpicks, otherwise looks ready to merge. I'm sure I only spotted them because I was looking at this in the PR diff view instead of an editor. consider doing a self-review of the PR to catch these yourself and reduce the number of back-and-forth iterations we need over tiny issues.
Once you've had a chance for that final tiny round of polish, just mark the PR as no longer a draft and I'd be happy to merge.
I have to admit, I was using the editor and not looked at the PR diff view, my mistake. Sorry for all these issues! I try to double-check everything, but this PR is quite huge and I'm looking at it for a week now, so finding such mistakes becomes increasingly difficult... I'll correct what you found in a moment and then self-review everything as you suggested. |
No worries and no need to apologize. Every experience is something we can learn from, and the top objective is the learning itself much more so than the artifact being produced in the PR itself. I also feel the same way about the PR being huge and difficult to (re-)review over and over. In retrospect, both of us could probably have predicted this as a risk and structured it differently so we don't have to merge it all-or-nothing like this. We'll do better next time! |
Hope this is finally it... ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good enough to merge, let's do that and move forward. I'm highlighting two small additional issues that we should try to fix in a subsequent PR.
description: 'Git reference (branch name, tag or commit hash) of the ref_slice test fork to checkout' | ||
required: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be required: true
? Otherwise, what's the behavior if this input value isn't supplied?
Any time we make something optional, we're adding more modes of operation -- which means more things to test, and more things that can fail. Are we losing anything if we make this value required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My aim was to make the default behavior the same as for the checkout
action, but you're right - since we don't use it, it's better to make the input required then wonder what the default behavior exactly is and try documenting it here.
@@ -7,11 +7,9 @@ inputs: | |||
package: | |||
description: 'The package whose API to check for semver (in Package Id Specification format, see https://doc.rust-lang.org/cargo/reference/pkgid-spec.html for reference). If not set, all packages in the workspace are processed.' | |||
required: false | |||
default: '' | |||
manifest-path: | |||
description: 'Path to Cargo.toml of crate or workspace to check.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inputs here are generally great at documenting what the default behavior is when a required: false
input isn't set. Let's document that behavior here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done this and the above one in #25
Uses
cargo-semver-checks
built-in logic instead of the bash scripts (closes #23).Introduces option
manifest-path
(closes #18).Introduces option
verbose
(closes #16).Uses pre-built binaries (closes #8).
Because the default behavior is changed and inputs
crate-target
andversion-tag-prefix
are removed, a version bump to v2 is necessary.