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

Github Workflow #69

Merged
merged 6 commits into from
Feb 12, 2021
Merged

Github Workflow #69

merged 6 commits into from
Feb 12, 2021

Conversation

dominykas
Copy link
Member

@dominykas dominykas commented Dec 31, 2020

See https://github.com/pkgjs/wiby/pull/69/files#diff-00505182d7d4129a98ee7fb7b652a1ef6b608d7620a681914db3a7a4903eee9f for usage details.

Marking this ready for review to get feedback, but we can't merge this without the following:

I have also added a bunch of notes on #56 (comment) on how to move this forward, but I figure I'll want to make some changes to the wiby CLI first, rather than the GH actions, and I'd also like to start getting this to a more demoable place and also to start test driving this on wiby itself, even if it still requires some manual interaction (namely deleting the wiby-wiby branch in the wiby-test org).

@ghinks
Copy link
Contributor

ghinks commented Jan 6, 2021

I'm going to review to the best of my abilities here. The instructions are clear and I could follow and understand them. I am still getting up to speed on github actions and am learning from reading the wiby.yaml file. So will not review that section.

I did however release these changes as a module under my own organization @gvhinks/wiby so I could test with it. I could not quite work out what was required in order to trigger the wiby action.

@dominykas
Copy link
Member Author

A "wiby test" comment in a PR, and then a "wiby result" comment to check for results. Less, then ideal :( but best I could come up with (and build in short time to get a PoC).

@ghinks
Copy link
Contributor

ghinks commented Jan 9, 2021

I carried out a bit of experimentation by taking the changes and releasing a wiby module in a private namespace. When updating a dependency using the instructions in the PR the wiby action does the push to the dependent repo but does not get marked as completed.

Screen Shot 2021-01-09 at 11 30 11 AM

@dominykas
Copy link
Member Author

If you comment "wiby result" after all the tests completed - it should go green.

Do you have a link to the PR? I can take a look at the output...

@ghinks
Copy link
Contributor

ghinks commented Jan 12, 2021

yes, ( apologies , work got in the way ).

PR dependency

@ghinks
Copy link
Contributor

ghinks commented Jan 12, 2021

Screen Shot 2021-01-12 at 3 06 11 PM

did as suggested ( still getting up to speed on actions ) , seemed to do the trick.

@dominykas dominykas marked this pull request as ready for review January 27, 2021 14:09
@dominykas
Copy link
Member Author

Thanks for the reviews and test here @ghinks 🙇


0. This assumes `.wiby.json` is already configured and that you're an owner or a contributor on the dependency repo
1. Open a PR against the dependency repository
2. Post a comment saying `wiby test` in the PR
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be a label instead? It’s cleaner and only permissioned people can do it.

Copy link
Member Author

@dominykas dominykas Jan 27, 2021

Choose a reason for hiding this comment

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

The issue with the label is that it's unclear how to re-run the job. Remove the label and add it again? Automatically remove the label on new push or when the job succeeds?

And there's still the need to wiby results... (which could alternatively be achieved with scheduled builds or smth)

Happy to iterate on this in the upcoming versions - would like to get this into some real life usage though.

Copy link
Member

@ljharb ljharb Jan 27, 2021

Choose a reason for hiding this comment

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

Starting the job would remove the label, so you'd just "add the label".

I also think that posting the results should be automatic, in a single updated-in-place comment, rather than requested (like codecov results, for example)

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be automatic, yes, but there is no simple way to achieve it with what is available. Ideally you'd be able to schedule a job or to have a sleep routine which doesn't count against your minutes, but short of that - there's a significant amount of work needed, hence why I started with a comment.

Copy link
Member

Choose a reason for hiding this comment

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

ah, gotcha. (either way this is fine for now, just offering thoughts)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, ideas most welcome.

@dominykas
Copy link
Member Author

@pkgjs/wiby-collaborators can I get some ✅ here please?

Base automatically changed from master to main January 31, 2021 09:40
@dominykas dominykas merged commit ca6f9c9 into pkgjs:main Feb 12, 2021
@dominykas dominykas deleted the master branch February 12, 2021 13:11
@dominykas
Copy link
Member Author

🎉 This PR is included in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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