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

explicitly install swig 3.0.12 for cron job #1652

Merged
merged 7 commits into from
May 11, 2021
Merged

Conversation

aaronayres35
Copy link
Contributor

@aaronayres35 aaronayres35 commented May 7, 2021

This PR is in response to the failing cron job https://github.com/enthought/traitsui/runs/2514003659?check_suite_focus=true

I believe failure was a result of enthought/enable#360

This PR explicitly installs swig 3.0.12 before trying to run tests EDIT: I now follow the lead of this comment / PR https://github.com/enthought/enable/pull/637/files#r583560231
by running the tests on ubuntu 18 not 20 which defaults to the old swig

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst)

Comment on lines 7 to 9
on: pull_request
#schedule:
# - cron: '0 0 * * 4'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will revert this before merging. Needed to verify the changes made

@aaronayres35
Copy link
Contributor Author

Run sudo apt-get install swig
  sudo apt-get install swig
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.6.13/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.6.13/x64/lib
Reading package lists...
Building dependency tree...
Reading state information...
swig is already the newest version (4.0.1-5build1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Still using swig 4, i still need to look into this more

@aaronayres35 aaronayres35 requested a review from rahulporuri May 7, 2021 13:47
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

Mostly LGTM with one question about swig version vs ubuntu version

Comment on lines +15 to +16
# Note that Ubuntu 20 cannot be used because its SWIG version is 4.0
# (enthought/enable#360)
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd be surprised if we can't explicitly install swig 3 on ubuntu 20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I felt the same way but struggled a bit to do so and then saw this from enable so just copied it here. I will look into this more to try and get swig 3 on ubuntu 20.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am going to push this through and open a follow up issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've opened #1660

@aaronayres35 aaronayres35 merged commit 123ec73 into master May 11, 2021
@aaronayres35 aaronayres35 deleted the use-swig-3-cronjob branch May 11, 2021 14:49
aaronayres35 added a commit that referenced this pull request May 11, 2021
* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request
aaronayres35 added a commit that referenced this pull request May 11, 2021
* skip a couple wx test failures (#1656)

* skip test failing on wx

* skip failing button editor test on wx

* update changelog with backports

* explicitly install swig 3.0.12 for cron job (#1652)

* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request
aaronayres35 added a commit that referenced this pull request May 11, 2021
* skip a couple wx test failures (#1656)

* skip test failing on wx

* skip failing button editor test on wx

* update changelog with backports

* explicitly install swig 3.0.12 for cron job (#1652)

* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request
aaronayres35 added a commit that referenced this pull request May 12, 2021
* Backport recent PRs and update changelog for 7.2.0 (#1661)

* skip a couple wx test failures (#1656)

* skip test failing on wx

* skip failing button editor test on wx

* update changelog with backports

* explicitly install swig 3.0.12 for cron job (#1652)

* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request

* specify we require traits 6.2+ and pyface 7.2+
aaronayres35 added a commit that referenced this pull request May 12, 2021
* Backport recent PRs and update changelog for 7.2.0 (#1661)

* skip a couple wx test failures (#1656)

* skip test failing on wx

* skip failing button editor test on wx

* update changelog with backports

* explicitly install swig 3.0.12 for cron job (#1652)

* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request

* specify we require traits 6.2+ and pyface 7.2+
aaronayres35 added a commit that referenced this pull request May 12, 2021
* explicitly require traits 6.2 and pyface 7.2 (#1666)

* Update changelog to match maint/7.2 (#1665)

* Backport recent PRs and update changelog for 7.2.0 (#1661)

* skip a couple wx test failures (#1656)

* skip test failing on wx

* skip failing button editor test on wx

* update changelog with backports

* explicitly install swig 3.0.12 for cron job (#1652)

* explicitly install swig 3.0.12

* new command is ubuntu specific

* typo

* follow enables lead

* missed an ubuntu-latest

* keep mattrix os and runs on in sync

* go back to scheduled not on  pull request

* specify we require traits 6.2+ and pyface 7.2+

* update changelog to include 1666
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