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

Fix CI failures with Python 2.7 #1521

Conversation

JeanChristopheMorinPerso
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso commented Aug 15, 2023

Fixes #1502

This PR fixes the issues with Python 2.7 in CI. We now use conda to get and install Python 2.7. This is because GitHub decided that it was alright to completely delete their Python 2.7 interpreters from the internet and break the entire world. The funny thing is that they still compile and ship 3.1 and up 🤷.

Note that the csh tests are failing for some reasons. I'm really not sure why. I'm tempted to say that we could ditch csh entirely...

Oh, and I also updated our actions to use more recent versions.

Signed-off-by: Jean-Christophe Morin <[email protected]>
@JeanChristopheMorinPerso
Copy link
Member Author

@Jawabiscuit are you of failures on the csh shell tests? You've been running the tests I guess, so maybe you know?

@maxnbk
Copy link
Contributor

maxnbk commented Aug 15, 2023

I wouldn't be so quick to throw out csh. Autodesk Flame systems default to it, and I know of environments where rez participates in Flame environments.

@Jawabiscuit
Copy link

@JeanChristopheMorinPerso, csh hasn't posed any problems at all in my testing.

Signed-off-by: Jean-Christophe Morin <[email protected]>
@JeanChristopheMorinPerso
Copy link
Member Author

JeanChristopheMorinPerso commented Aug 20, 2023

Alright, I fixed the csh issue. It wasn't related to the tests. I fixed it by simply not using fancy action to install conda. Conda already comes pre-installed on the runners so we don't need to install it. I think the action was injecting stuff into the job environment which I think was messing up rez in some ways (which isn't surprising since mixing environment managers like conda and rez isn't necessarily a good idea).

@JeanChristopheMorinPerso JeanChristopheMorinPerso requested review from a team and removed request for Jawabiscuit August 20, 2023 22:25
Copy link
Contributor

@maxnbk maxnbk left a comment

Choose a reason for hiding this comment

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

Nice work!

@JeanChristopheMorinPerso
Copy link
Member Author

Considering that this is only affecting the CI, I'll go ahead and merge with a single approval.

@JeanChristopheMorinPerso JeanChristopheMorinPerso merged commit 2c7c50d into AcademySoftwareFoundation:master Aug 27, 2023
22 checks passed
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.

Python 2.7 tests in CI failing
3 participants