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

Test on ubuntu-18.04, not 16.04 #889

Merged
merged 5 commits into from
Nov 9, 2021
Merged

Test on ubuntu-18.04, not 16.04 #889

merged 5 commits into from
Nov 9, 2021

Conversation

rahulporuri
Copy link
Contributor

@rahulporuri rahulporuri commented Nov 8, 2021

This PR updates the CI to use ubuntu-18.04, not ubuntu-16.04 as it is no longer available on GitHub Actions CI. Accordingly, we also install the necessary libsdl.

ubuntu-16.04 is no longer available on GitHub Actions CI
Poruri Sai Rahul added 4 commits November 8, 2021 14:11
	modified:   .github/workflows/test-with-edm.yml
	modified:   ci/edmtool.py
	modified:   .github/workflows/test-with-edm.yml
	modified:   .github/workflows/test-with-edm.yml
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

LGTM

test suite is happy

@@ -27,7 +27,7 @@ jobs:
- name: Install Wx dependencies for Linux
run: |
sudo apt-get update
sudo apt-get install libsdl2-2.0-0
sudo apt-get install libsdl1.2-dev
Copy link
Contributor

Choose a reason for hiding this comment

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

I notice there was an old open and closed PR #865 that I believe was closed because of wx failures.

Are those still present if we try to use ubuntu-latest - hence the use of 18.04 in this PR instead? Does this wx dependency change have any impact on those failures?

Copy link
Contributor

Choose a reason for hiding this comment

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

EDIT: looks like in the commit history on this PR you tried ubuntu-latest, then came back - so I'm assuming latest still has some issues and that is a can of worms for a future day

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are those still present if we try to use ubuntu-latest

I haven't tested with ubuntu-latest (ubuntu-20.04 at the moment)

Does this wx dependency change have any impact on those failures?

I'm not sure. I didn't investigate it further.

so I'm assuming latest still has some issues

No. I realized that I made a mistake when using ubuntu-18.04, which is why i reverted the change to ubuntu-latest. I will investigate later what happens when we use ubuntu-latest.

@rahulporuri rahulporuri merged commit cd708e9 into main Nov 9, 2021
@rahulporuri rahulporuri deleted the rahulporuri-patch-2 branch November 9, 2021 09:11
rahulporuri pushed a commit that referenced this pull request Nov 9, 2021
* FIX : Test on ubuntu-18.04, not 16.04

ubuntu-16.04 is no longer available on GitHub Actions CI

* FIX : Use ubuntu-latest instead of ubuntu-18.04

* FIX : Use ubuntu-18.04 with the right package repository

	modified:   .github/workflows/test-with-edm.yml
	modified:   ci/edmtool.py

* FIX : Install libsdl2-dev using the ubuntu package manager

	modified:   .github/workflows/test-with-edm.yml

* FIX : Use libsdl1.2, not libsdl2

	modified:   .github/workflows/test-with-edm.yml
rahulporuri pushed a commit that referenced this pull request Nov 9, 2021
* Fix svg backend issue with pyparsing version >= 3 (#888)

* FIX : Fix issue with pyparsing version >= 3

fixes #887 

This PR fixes an issue because of an upstream change with
the pyparsing CaselessLiteral class, where the name attribute became
a read-only property in version >= 3. We now use the new public
set_name method instead of directly setting the attribute.

* FIX : Handle pyparsing versions 2 and 3 accordingly

the new set_name API is only available on pyparsing version >= 3 so we
use packaging to handle the behavior according to the version

this commit makes packaging a dependency of the svg backend

and this commit adds a regression test

	modified:   enable/__init__.py
	modified:   enable/savage/svg/pathdata.py
	modified:   enable/savage/svg/tests/test_pathdata.py

* REF : Go with a simpler solution of checking for the method name

instead of manually parsing and checking the pyparsing version and
calling the relevant method depending on the version, we simply check
for the existence of the set_name method now and use it if it exists. If
it doesnt, we fall back to the old setName method

The dependence of packaging has now been removed because we dont need to
parse the version anymore

	modified:   enable/__init__.py
	modified:   enable/savage/svg/pathdata.py

* Test on ubuntu-18.04, not 16.04 (#889)

* FIX : Test on ubuntu-18.04, not 16.04

ubuntu-16.04 is no longer available on GitHub Actions CI

* FIX : Use ubuntu-latest instead of ubuntu-18.04

* FIX : Use ubuntu-18.04 with the right package repository

	modified:   .github/workflows/test-with-edm.yml
	modified:   ci/edmtool.py

* FIX : Install libsdl2-dev using the ubuntu package manager

	modified:   .github/workflows/test-with-edm.yml

* FIX : Use libsdl1.2, not libsdl2

	modified:   .github/workflows/test-with-edm.yml
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