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

Update GTK stack for use in CI/CD #466

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Lord-Kamina
Copy link
Contributor

Ok @cas--, you win; I'll split it.

I also opted to make a new PR that will supersede #454, to make it easier to keep track of the discussion, were there to be any.

After this, I will make another PR for unpinning pytest (I might include the change from gtkreactor to gireactor in this latter one because I genuinely think it would make everybody's lives easier, but you tell me)

This is just the bit updating the GTK stack. As you can see, I've reverted the changes to libtorrent and such (although I maintain it should be somewhat of a priority to address this sooner rather than later)

@Lord-Kamina Lord-Kamina mentioned this pull request Sep 18, 2024
@Lord-Kamina
Copy link
Contributor Author

@cas-- anything that needs to change here before this can be merged? (The CI fails should be resolved by triggering a manual run at the gvsbuild-release repo)

@cas-- cas-- added the package A label to force the CI packaging job label Feb 2, 2025
@@ -89,6 +97,24 @@ jobs:
cache: "pip"
cache-dependency-path: "requirements*.txt"

- name: Determine gvsbuild release URL
Copy link
Member

Choose a reason for hiding this comment

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

If we are not running the gtkui tests then we should not be installing gtk here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to enable the gtk tests though. I think that might have gotten cut onto another PR though.

@@ -29,7 +29,7 @@ jobs:
run: |
pip install --upgrade pip wheel
pip install tox
sudo apt-get install enchant-2
sudo apt-get install enchant-2 libgirepository1.0-dev
Copy link
Member

Choose a reason for hiding this comment

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

Why are we installing this for docs?

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 honestly can't remember 100% but it is possible that it failed somewhere without it. Would have to look it up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed as well.

@@ -1,4 +1,4 @@
libtorrent
libtorrent==2.0.7
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't need pinned?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes because things in newer libtorrent made tests fail, so until tests are updated, it has to be.

python: ["3.9"]
libtorrent: [2.0.7, 1.2.19]
python: ["3.7", "3.10"]
libtorrent: [2.0.8, 1.2.19]
Copy link
Member

Choose a reason for hiding this comment

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

Is 2.0.8 available?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I think this was a typo or possibly I missed this when reverting. I can't find it now so it should go back to 2.0.7 (for now)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed back to 2.0.7

@@ -36,6 +42,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get install libcairo2-dev libgirepository1.0-dev
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem right to be installing these dev dependencies, everything should have been built already?

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 removed it for now.

@@ -74,7 +81,8 @@ jobs:
runs-on: windows-2022
strategy:
matrix:
python-version: ["3.7", "3.10"]
python-version: ["3.7", "3.9", "3.10"]
Copy link
Member

Choose a reason for hiding this comment

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

Why are we including 3.9 here and removing it from package build?

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'm including it due to some differences in the importlib module. It's not relevant now but I think it will be to test against with some PR I've yet to submit.

@@ -77,7 +88,6 @@ jobs:
working-directory: deluge_src
run: |
python -m pip install .
python setup.py install_scripts
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure removing this is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. I think it might be with something I did on another branch but I'll cross that bridge when I get there.
Reverted for now.

.github/workflows/cd.yml Outdated Show resolved Hide resolved
Comment on lines -15 to +25
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.10"]

python-version: ["3.9", "3.10"]
os: ["ubuntu-24.04"]
include:
- os: ubuntu-22.04
python-version: 3.7
runs-on: ${{ matrix.os }}
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep these Linux CI changes separate from the Windows GTK changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That'll just prolong this whole thing. The linux changes are just: keep 22.04 (which needs an older python) and add a build on a newer version of ubuntu.

@Lord-Kamina Lord-Kamina force-pushed the update_ci branch 7 times, most recently from 3bdf92d to 4401d33 Compare February 2, 2025 20:11
Clarified a little what this commit actually does.
@Lord-Kamina
Copy link
Contributor Author

BTW @cas-- I have pinned twisted here because of the issue with the maybe_coroutine test, until we can figure out what changed/is going on.
Other than that, I think most comments have been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package A label to force the CI packaging job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants