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

tests: Test on all os platforms #32

Merged
merged 2 commits into from
Dec 25, 2022
Merged

Conversation

jcs090218
Copy link
Contributor

I reckon it's better to test on all platforms? Just a suggestion.

Copy link
Owner

@andorsk andorsk left a comment

Choose a reason for hiding this comment

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

Requested some changes. Thanks for the PR! Lmk if you have any questions.


steps:
- uses: actions/checkout@v3

- name: Setup Emacs
uses: purcell/setup-emacs@master
uses: jcs090218/setup-emacs@master
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason you changed the setup action. I appreciate the fact you're building your own custom action, but purcell/setup-emacs seems in wider use ( currently ). Happy to change if it there's a good reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

purcell's action don't support windows, and I don't think it will ever going to support it.

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Copy link
Owner

Choose a reason for hiding this comment

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

Need to check out if free tier on github can run macos and windows jobs. Can you confirm they can?

Copy link
Contributor Author

@jcs090218 jcs090218 Dec 12, 2022

Choose a reason for hiding this comment

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

I think they can! I have been using it since 2019? 2020? (Sorry, don't remember the exact year) Example repo, see https://github.com/emacs-sideline/sideline.

- 26.3
- 27.2
- 28.2
- snapshot
Copy link
Owner

Choose a reason for hiding this comment

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

This is good. Agreed, this is a good call.

@andorsk
Copy link
Owner

andorsk commented Dec 13, 2022

Looks like the windows checks are failing? Any thoughts here @jcs090218. The only other comment is I need to review the action you've built in more detail, as it's a young project and not a lot of eyes have hit it yet AFAIK.

@jcs090218
Copy link
Contributor Author

The issue is due to the DST Root CA X3 certificate, see jcs090218/setup-emacs-windows#156 (comment). I have added the workaround.

@jcs090218
Copy link
Contributor Author

jcs090218 commented Dec 13, 2022

I will recommend you use something like Eask or Eldev since you can test your package locally on your machine and not only on GHA. ;)

@andorsk
Copy link
Owner

andorsk commented Dec 19, 2022

@jcs090218 I took a further look at https://github.com/jcs090218/setup-emacs-windows/blob/master/action.yml and I had a few questions:

  • I noticed typescript-action, where this repo was generated and setup-emacs-windows are quite different. Is there a good reason? Same with jcs-emacs-setup. I haven't build any custom github actions, so sorry if this is a novice question.
  • Your package seems like a better version of purcell/setup-emacs@master, but it concerns me that there's so little community eyes on it so far ( using stars as a proxy ). I don't have the time to vet this entire package. Anything you can do to help me clear this? I want to trust your work here, but I also don't want to introduce a new dep that may have some weird consequence, with such a minor reason such as adding windows support. If I can get some support with why this should clear, I don't fundamentally have any issues with the PR otherwise. An alternative would be to use the old purcell with the switches you've suggested, but to remove the windows and osx support. Thanks again for the PR, and looking forward to adding this in if there's a better way to tell if this is safe to add.

@andorsk
Copy link
Owner

andorsk commented Dec 19, 2022

Also @jcs090218 wanted to thank you for sponsoring https://github.com/emacs-eask/cli. Open source patreons are wonderful and really appreciated!

@jcs090218
Copy link
Contributor Author

No worries! I am happy to answer you questions! 👍

I noticed typescript-action, where this repo was generated and setup-emacs-windows are quite different. Is there a good reason? Same with jcs-emacs-setup. I haven't build any custom github actions, so sorry if this is a novice question.

typescript-action is the template repo, so it's meant to be use as the template. If you go to their repo page, you should see Use this template green button where it should be the Clone button in the normal repo. More information, see https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository.

Your package seems like a better version of purcell/setup-emacs@master, but it concerns me that there's so little community eyes on it so far ( using stars as a proxy ). I don't have the time to vet this entire package. Anything you can do to help me clear this?

I am not 100% sure, but here are my best guesses.

  1. Emacser don't tend to support Native Windows, mostly on Linux > macOS > Windows + WSL.
  2. If we compare the Used by sections from each GitHub repo page,
jcs090218/setup-emacs-windows purcell/setup-emacs
Image 1 Image 2

purcell/setup-emacs (2.7k) has 5 times more usage than jcs090218/setup-emacs-windows (488).

  1. There is no need to change. purcell/setup-emacs already supports Linux and macOS, there is no reason to change it to jcs090218/setup-emacs and they don't even think to support it.
  2. Since jcs090218/setup-emacs is only 8 months old, it's a bit too late to introduce to the Emacs world. (purcell/setup-emacs is 3+more years)

I want to trust your work here, but I also don't want to introduce a new dep that may have some weird consequence, with such a minor reason such as adding windows support. If I can get some support with why this should clear, I don't fundamentally have any issues with the PR otherwise. An alternative would be to use the old purcell with the switches you've suggested, but to remove the windows and osx support. Thanks again for the PR, and looking forward to adding this in if there's a better way to tell if this is safe to add.

Thank you for trusting my work! ❤️ Many large projects have used jcs090218/setup-emacs-windows for a year or two and have no issue with it. Here is a list of project that uses the action,

For more, see https://github.com/jcs090218/setup-emacs-windows/network/dependents?dependents_after=MTk5NzU4MjA3NzI.

My intention for jcs090219/setup-emacs and Eask is to make Emacs development easier, esp. on the cross-platform part! 😄

Hope these information help!

@andorsk
Copy link
Owner

andorsk commented Dec 25, 2022

@jcs090218 sorry for the delay, and thank you for answering. I'm going to merge this into master and thank you again for the contribution!

The fact that some of these large projects ( spacemacs and lsp ) are using your package is really encouraging! Sorry if I had so many questions on this, but I wanted to be sure there was support enough to justify merging this into the mode.

I've starred your repo personally to help add some visibility to it.

@andorsk andorsk merged commit 40cdf48 into andorsk:main Dec 25, 2022
@jcs090218 jcs090218 deleted the tests/platforms branch December 25, 2022 10:34
@jcs090218
Copy link
Contributor Author

Sorry if I had so many questions on this, but I wanted to be sure there was support enough to justify merging this into the mode.

No problem! That's reasonable, and thank you for this awesome package! :D

I've starred your repo personally to help add some visibility to it.

Oh, nice! Thank you very much! 😁 ❤️ 🚀 🎉

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.

2 participants