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

Move from Azure Pipelines to GitHub Actions #172

Closed
brettcannon opened this issue Apr 17, 2021 · 15 comments · Fixed by #182
Closed

Move from Azure Pipelines to GitHub Actions #172

brettcannon opened this issue Apr 17, 2021 · 15 comments · Fixed by #182

Comments

@brettcannon
Copy link
Contributor

Any interest in moving to GitHub Actions? I noticed the Actions tab is turned on in this repo but isn't being used. I'm willing to do the work to set it up if you're interested.

@danixeee
Copy link
Contributor

Is there any important difference? Anyway, I don't mind.

@dgreisen Any thoughts?

@brettcannon
Copy link
Contributor Author

GitHub Actions is faster and there is way more institutional knowledge from folks in the community compared to Azure Pipelines.

@dgreisen
Copy link
Contributor

I believe the primary reason we went with Azure was so we could test on windows and linux. It appears we can do all that and more with actions. So I'm fine with actions.

@brettcannon
Copy link
Contributor Author

GitHub Actions covers Windows, Linux, and macOS.

@danixeee
Copy link
Contributor

Correct, we wanted to test it on both Windows and Linux platforms. @brettcannon If you are still willing to make the transition to GitHub actions, please feel free to do it.

@brettcannon
Copy link
Contributor Author

Yep, I am still up to do it, just don't have an exact ETA.

Any changes you would want, like testing against Python 3.9?

@danixeee
Copy link
Contributor

Sure. So, we would test it for python 3.6-3.9 on all three major platforms?

@brettcannon
Copy link
Contributor Author

You tell me. 😄 In a lot of projects I see them avoid using macOS simply because it has the greatest chance of holding up results and it often isn't different enough to Linux for Unix-like testing (drawback of Apple not letting people install macOS on anything but a Mac; have to have a literal rack of Mac machines to provide the service).

@danixeee
Copy link
Contributor

Makes sense, but I didn't notice any issues with the macOS builds for another project. We run tests on win32, win64, macOS, and Linux platforms there just fine, but I agree with you that it's maybe not needed. You can just transition what we have now (+python 3.9) and we could always change it later :)

@brettcannon
Copy link
Contributor Author

brettcannon commented Apr 24, 2021

I've hit a snag. In the Azure Pipelines definition you are checking the JSON extension using tslint:

npx tslint client/src/*.ts

But what you're in fact installing is eslint:

"eslint": "^7.23.0",

The problem is that eslint wants a configuration file, so running it fails. How would you like me to handle this?

I also can't turn on Python 3.9 support with this work as mypy fails. I'll leave that as a separate thing.

And if you're curious how this looks so far, see https://github.com/brettcannon/pygls/actions.

@brettcannon
Copy link
Contributor Author

FYI I found out the 3.9 failure is due to mypy being pinned to an old version. I'll worry about fixing it once I found out what you want to do about about eslint and get GitHub Actions working.

@danixeee
Copy link
Contributor

danixeee commented Apr 26, 2021

I removed tslint in #175, but forgot to update pipelines yaml.

The problem is that eslint wants a configuration file, so running it fails. How would you like me to handle this?

Could you please add a configuration file? Use whatever configuration you like.

FYI I found out the 3.9 failure is due to mypy being pinned to an old version. I'll worry about fixing it once I found out what you want to do about eslint and get GitHub Actions working.

I noticed the same issue in #157 where mypy was updated to the latest version. We should probably fix/merge #157 first. I can do that, so you can continue with your PR. If it makes sense you can cherry-pick those commits to your PR, let me know what you think.

@brettcannon
Copy link
Contributor Author

I'm fine with waiting for #157 to be merged before worrying about any PR from me (especially since I asked a question on #157 which might lead to me making another PR 😉 ).

@brettcannon
Copy link
Contributor Author

Got it all working (https://github.com/brettcannon/pygls/actions)! Just let me know when #157 has been merged and then I can do a merge against the default branch and create a PR.

@danixeee
Copy link
Contributor

@brettcannon #157 is merged now, please go ahead and make a PR when you can.

@brettcannon brettcannon mentioned this issue Apr 30, 2021
8 tasks
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 a pull request may close this issue.

3 participants