public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2021-01-02  6:00 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2021-01-02  6:00 UTC (permalink / raw
  To: gentoo-commits

commit:     aa9de9f3509700b1b049d2e7d15ecfeb571fc938
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 03:17:57 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 03:20:09 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=aa9de9f3

ci: upgrade workflow to ubuntu-20.04

This will be the new default soon.

See: https://github.com/actions/virtual-environments/issues/1816
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2ec4c57aa..09c944ba1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,7 +9,7 @@ on:
 jobs:
   build:
 
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-20.04
     strategy:
       matrix:
         python-version:


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2021-08-07 16:44 Michał Górny
  0 siblings, 0 replies; 24+ messages in thread
From: Michał Górny @ 2021-08-07 16:44 UTC (permalink / raw
  To: gentoo-commits

commit:     1d3bc260fe01bad66f3b6a3c7f267b2e8fd10964
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  7 16:33:10 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug  7 16:33:10 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1d3bc260

ci: Test using the newest available version of py3.10

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 78e4f428b..ec2091810 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,7 +17,7 @@ jobs:
         - '3.7'
         - '3.8'
         - '3.9'
-        - '3.10.0-alpha.3'
+        - '3.10.0-alpha - 3.10.0'
         - 'pypy-3.7-v7.3.3'
 
     steps:


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2021-09-20  3:58 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2021-09-20  3:58 UTC (permalink / raw
  To: gentoo-commits

commit:     71dbd16c41e68bc31a1c7d2e7ba90c7eee5138b7
Author:     Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com>
AuthorDate: Mon Sep 20 02:38:20 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Sep 20 03:57:30 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=71dbd16c

Add github action to check black formatting

Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/black.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
new file mode 100644
index 000000000..b04fb15cb
--- /dev/null
+++ b/.github/workflows/black.yml
@@ -0,0 +1,10 @@
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: psf/black@stable


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2021-10-28  5:01 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2021-10-28  5:01 UTC (permalink / raw
  To: gentoo-commits

commit:     2567ca20f214f4e44bdc1e229c73434a5de17443
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 28 05:01:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 28 05:01:44 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2567ca20

.github: test against Python 3.10 final

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a8466e0f1..581b2d04d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,7 +17,7 @@ jobs:
         - '3.7'
         - '3.8'
         - '3.9'
-        - '3.10.0-alpha - 3.10.0'
+        - '3.10'
         - 'pypy-3.7'
 
     steps:


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-02-21  3:51 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2022-02-21  3:51 UTC (permalink / raw
  To: gentoo-commits

commit:     ea97f7d77fd80ff9c380f77c64ffa9060e6a41cb
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 10 01:48:10 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 21 03:50:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ea97f7d7

CI: also lint python files that Black doesn't automatically detect

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/787
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/black.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
index b04fb15cb..d3c3fa3e1 100644
--- a/.github/workflows/black.yml
+++ b/.github/workflows/black.yml
@@ -7,4 +7,12 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+      - name: "Collect stragglers that Black misses"
+        id: stragglers
+        run: |
+          echo "::set-output name=missed::$(
+          find bin repoman runtests -type f -not -name '*.py' -not -name '*.sh' | \
+          xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')"
       - uses: psf/black@stable
+        with:
+            src: . ${{ steps.stragglers.outputs.missed }}


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-03-15 22:39 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2022-03-15 22:39 UTC (permalink / raw
  To: gentoo-commits

commit:     0480258c13997a5eb468692b85edca2ee56cfdd9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 15 22:39:09 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 22:39:09 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0480258c

.github/workflows/ci.yml: run 'apt update'

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 581b2d04d..c6b96a8f0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,7 @@ jobs:
     - name: Install python dependencies
       run: |
         set -xe
+        sudo apt-get update
         sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libxml2-utils zstd
         python -VV
         python -m site


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-04-12  3:12 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2022-04-12  3:12 UTC (permalink / raw
  To: gentoo-commits

commit:     ebe8265dc2b41822e6a9e809cb079fdd76e14a29
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 12 02:03:48 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 03:12:53 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ebe8265d

.github: add pypy3.8, pypy3.9 to CI

Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/808
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c6b96a8f0..03cf1fc7f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,6 +19,8 @@ jobs:
         - '3.9'
         - '3.10'
         - 'pypy-3.7'
+        - 'pypy-3.8'
+        - 'pypy-3.9'
 
     steps:
     - uses: actions/checkout@v2


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-05-20 11:14 Michał Górny
  0 siblings, 0 replies; 24+ messages in thread
From: Michał Górny @ 2022-05-20 11:14 UTC (permalink / raw
  To: gentoo-commits

commit:     29cb8eb012017aac6bd38088c0a6cbd2a6bcebdb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 20 11:13:54 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 20 11:13:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=29cb8eb0

.github: Disable fail-fast on CI

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .github/workflows/ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ad1633a3d..adeb41a77 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,6 +22,7 @@ jobs:
         - 'pypy-3.7'
         - 'pypy-3.8'
         - 'pypy-3.9'
+      fail-fast: false
 
     steps:
     - uses: actions/checkout@v2


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-06-06 17:01 Mike Gilbert
  0 siblings, 0 replies; 24+ messages in thread
From: Mike Gilbert @ 2022-06-06 17:01 UTC (permalink / raw
  To: gentoo-commits

commit:     3b3a5ba45aa8e72464125e55882c19814343c82c
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  6 15:33:33 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Jun  6 15:33:33 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3b3a5ba4

Remove Python 3.6 in github workflow

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .github/workflows/ci.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index adeb41a77..5869114d8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,7 +13,6 @@ jobs:
     strategy:
       matrix:
         python-version:
-        - '3.6'
         - '3.7'
         - '3.8'
         - '3.9'


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2022-12-03  1:40 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2022-12-03  1:40 UTC (permalink / raw
  To: gentoo-commits

commit:     8722c453536f76c398e7a098006c0534c37adbf2
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 18:12:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  3 01:39:53 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=8722c453

update Actions versions

We've started getting warnings about the versions of our Actions [1]:

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2

[1] https://github.com/gentoo/portage/actions/runs/3595151962

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/953
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/black.yml | 2 +-
 .github/workflows/ci.yml    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
index 1d6f1378c..977f62d89 100644
--- a/.github/workflows/black.yml
+++ b/.github/workflows/black.yml
@@ -6,7 +6,7 @@ jobs:
   lint:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: "Collect stragglers that Black misses"
         id: stragglers
         run: |

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5869114d8..2e6861b6c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,9 +24,9 @@ jobs:
       fail-fast: false
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
     - name: Set up Python ${{ matrix.python-version }}
-      uses: actions/setup-python@v2
+      uses: actions/setup-python@v4
       with:
         python-version: ${{ matrix.python-version }}
     - name: Install python dependencies


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-01-10 15:12 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-01-10 15:12 UTC (permalink / raw
  To: gentoo-commits

commit:     783983d20df87377a644d6c7779468940fc38554
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 10 14:25:39 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 15:12:39 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=783983d2

CI: add pre-commit Github Action

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/pre-commit.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
new file mode 100644
index 000000000..ad71791c0
--- /dev/null
+++ b/.github/workflows/pre-commit.yml
@@ -0,0 +1,14 @@
+name: pre-commit
+
+on:
+  pull_request:
+  push:
+    branches: [main]
+
+jobs:
+  pre-commit:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/setup-python@v4
+    - uses: pre-commit/action@v3.0.0


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-03-11 18:54 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-03-11 18:54 UTC (permalink / raw
  To: gentoo-commits

commit:     6b6ca068df16acb13e7e109b6355bc398dbbdeb1
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 10 16:24:21 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 11 18:52:06 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6b6ca068

github ci: bump Ubuntu to 22.04

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Closes: https://github.com/gentoo/portage/pull/1006
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2e6861b6c..f113a5c4d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,7 +9,7 @@ on:
 jobs:
   build:
 
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     strategy:
       matrix:
         python-version:


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-03-20  4:03 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-03-20  4:03 UTC (permalink / raw
  To: gentoo-commits

commit:     d58f064bee3f7ae57fe826da94a1e8b0f1df1573
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 20 03:49:00 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 20 04:03:51 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=d58f064b

CI: add Python 3.12 alphas

Per https://github.com/actions/setup-python/issues/150, we can just do
3.12-dev and such.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 244262c2e..12d01dd1d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,6 +18,7 @@ jobs:
         - '3.9'
         - '3.10'
         - '3.11'
+        - '3.12-dev'
         - 'pypy-3.7'
         - 'pypy-3.8'
         - 'pypy-3.9'


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-03-20  4:03 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-03-20  4:03 UTC (permalink / raw
  To: gentoo-commits

commit:     28fd649ebc1c106dfc9111f0e487e8f9033e7654
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 20 03:48:13 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 20 04:03:51 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=28fd649e

CI: fix Python 3.11 workflow/job

Use the latest Python 3.11 release.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f113a5c4d..244262c2e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,7 +17,7 @@ jobs:
         - '3.8'
         - '3.9'
         - '3.10'
-        - '3.11.0-alpha - 3.11.0'
+        - '3.11'
         - 'pypy-3.7'
         - 'pypy-3.8'
         - 'pypy-3.9'


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-03-23  6:59 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-03-23  6:59 UTC (permalink / raw
  To: gentoo-commits

commit:     4d1ee70e843a19d3f5c0d31f29fae8141e7c6572
Author:     Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com>
AuthorDate: Wed Mar 22 05:35:38 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 23 06:59:11 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=4d1ee70e

actions: rename black.yml to lint.yml

Signed-off-by: Oskari Pirhonen <xxc3ncoredxx <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/{black.yml => lint.yml} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/black.yml b/.github/workflows/lint.yml
similarity index 100%
rename from .github/workflows/black.yml
rename to .github/workflows/lint.yml


^ permalink raw reply	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-05-23 10:08 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-05-23 10:08 UTC (permalink / raw
  To: gentoo-commits

commit:     9817637785ecfa6bf73c2f9f35c877d7fbdf15d0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 23 08:58:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 23 10:08:50 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=98176377

CI: add setuptools

Needed for >= Python 3.12 which drops distutils. This is the
codepath we're using in Gentoo anyway.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 29a5a60c1..c17e74e91 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,7 +36,7 @@ jobs:
           python -VV
           python -m site
           python -m pip install --upgrade pip
-          python -m pip install tox tox-gh-actions
+          python -m pip install tox tox-gh-actions setuptools
       - name: Test ./setup.py install --root=/tmp/install-root
         run: |
           printf "[build_ext]\nportage_ext_modules=true" >> setup.cfg


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-08-02  6:31 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-08-02  6:31 UTC (permalink / raw
  To: gentoo-commits

commit:     85e69ccec067b1b7be688d7de677638acf79510c
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 25 08:07:46 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug  2 06:31:20 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=85e69cce

Patch Meson in GitHub CI to fix pypy-3.9 detection

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 519bf92c4..bf36ad19d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,10 @@ jobs:
           set -xe
           sudo apt-get update
           sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libxml2-utils meson zstd
+
+          # Patch Ubuntu's old Meson to fix pypy-3.9 detection.
+          curl -s -f https://github.com/mesonbuild/meson/commit/2540ad6e9e08370ddd0b6753fdc9314945a672f0.patch | sudo patch -d /usr/lib/python3/dist-packages -p1 --no-backup-if-mismatch
+
           python -VV
           python -m site
           python -m pip install --upgrade pip


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-10-11 19:08 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2023-10-11 19:08 UTC (permalink / raw
  To: gentoo-commits

commit:     01245d7149703c4cfd84c7acf0baab83cafe38fc
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 10 02:25:16 2023 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Oct 11 19:05:03 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=01245d71

CI: Upgrade pypy from 3.9 to 3.10

This solves an error I'm seeing just in
portage.utf8_mode CI runs for pypy-3.9:

/home/runner/work/portage/portage/lib/portage/tests/emerge/test_config_protect.py:294: AssertionError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/home/runner/work/portage/portage/bin/emerge", line 59, in <module>
    retval = emerge_main()
  File "/home/runner/work/portage/portage/lib/_emerge/main.py", line 1265, in emerge_main
    emerge_config = load_emerge_config(action=myaction, args=myfiles, opts=myopts)
  File "/home/runner/work/portage/portage/lib/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/home/runner/work/portage/portage/lib/_emerge/actions.py", line 2914, in load_emerge_config
    setconfig = load_default_config(settings, root_trees)
  File "/home/runner/work/portage/portage/lib/portage/_sets/__init__.py", line 382, in load_default_config
    return SetConfig(_getfiles(), settings, trees)
  File "/home/runner/work/portage/portage/lib/portage/_sets/__init__.py", line 63, in __init__
    read_configs(self._parser, paths)
  File "/home/runner/work/portage/portage/lib/portage/util/configparser.py", line 49, in read_configs
    for p in paths:
  File "/home/runner/work/portage/portage/lib/portage/_sets/__init__.py", line 377, in _getfiles
    if not f.startswith(dot) and not f.endswith(tilde):
TypeError: startswith first arg must be str or a tuple of str, not bytes

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fc7ab93a2b..d2abc31cd0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,7 @@ jobs:
           - '3.10'
           - '3.11'
           - '3.12-dev'
-          - 'pypy-3.9'
+          - 'pypy-3.10'
       fail-fast: false
     steps:
       - uses: actions/checkout@v3


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-10-30  8:47 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-10-30  8:47 UTC (permalink / raw
  To: gentoo-commits

commit:     4ec6db2a428cd1db9cad3443f15f5b260aa369ac
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 30 05:35:20 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 08:47:22 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=4ec6db2a

CI: Use epytest-style options for pytest, including xdist

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 61ca83d503..fd901fee96 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,7 +37,7 @@ jobs:
           python -m site
           python -m pip install --upgrade pip
           # setuptools needed for 3.12+ because of https://github.com/mesonbuild/meson/issues/7702.
-          python -m pip install pytest setuptools
+          python -m pip install pytest pytest-xdist setuptools
 
           # symlink /bin/true to /usr/bin/getuto (or do we want to grab the script from github?)
           sudo ln -s /bin/true /usr/bin/getuto
@@ -48,4 +48,5 @@ jobs:
           meson install -C /tmp/build --destdir /tmp/install-root
       - name: Run tests for ${{ matrix.python-version }}
         run: |
-          meson test -C /tmp/build --verbose
\ No newline at end of file
+          export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
+          meson test -C /tmp/build --verbose


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2023-11-02 14:37 Sam James
  0 siblings, 0 replies; 24+ messages in thread
From: Sam James @ 2023-11-02 14:37 UTC (permalink / raw
  To: gentoo-commits

commit:     25813f730f661590bae5cc67747cf15502a0e084
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 30 05:48:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov  2 14:37:07 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=25813f73

CI: quieten apt, try suppress fsync

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fd901fee96..eedbe2f6e4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,8 +27,9 @@ jobs:
       - name: Install dependencies
         run: |
           set -xe
-          sudo apt-get update
-          sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libxml2-utils meson zstd
+          echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io
+          sudo apt-get update -q
+          sudo apt-get install -qy --no-install-recommends libxslt-dev libxml2-dev libxml2-utils meson zstd
 
           # Patch Ubuntu's old Meson to fix pypy-3.9 detection.
           curl -s -f https://github.com/mesonbuild/meson/commit/2540ad6e9e08370ddd0b6753fdc9314945a672f0.patch | sudo patch -d /usr/lib/python3/dist-packages -p1 --no-backup-if-mismatch


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2024-02-07  0:32 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2024-02-07  0:32 UTC (permalink / raw
  To: gentoo-commits

commit:     b419577c2e5219af9d10c9856449e23fa4d87b24
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  6 05:56:57 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Feb  6 08:05:01 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b419577c

actions: Add muliprocessing start-method to matrix

Add multiprocessing start-method to matrix so that we are prepared
for when python changes to default to spawn. Exclude all python
versions except 3.12-dev for now.

This adds a conditional ci step that patches the sources just for
the spawn start-method. It patches all bin/* scripts with python
shebangs, and also patches the test command in meson.build.

Bug: https://bugs.gentoo.org/914876
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3a897dbeec..15da507238 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,6 +11,9 @@ jobs:
     runs-on: ubuntu-22.04
     strategy:
       matrix:
+        start-method:
+          - 'fork'
+          - 'spawn'
         python-version:
           - '3.9'
           - '3.10'
@@ -18,6 +21,17 @@ jobs:
           - '3.12-dev'
           - '3.13-dev'
           - 'pypy-3.10'
+        exclude:
+          - python-version: '3.9'
+            start-method: 'spawn'
+          - python-version: '3.10'
+            start-method: 'spawn'
+          - python-version: '3.11'
+            start-method: 'spawn'
+          - python-version: '3.13-dev'
+            start-method: 'spawn'
+          - python-version: 'pypy-3.10'
+            start-method: 'spawn'
       fail-fast: false
     steps:
       - uses: actions/checkout@v3
@@ -43,6 +57,32 @@ jobs:
 
           # symlink /bin/true to /usr/bin/getuto (or do we want to grab the script from github?)
           sudo ln -s /bin/true /usr/bin/getuto
+      - name: Patch python scripts to set spawn start method
+        if: ${{ matrix.start-method == 'spawn' }}
+        run: |
+          IFS=''
+          while read -r bin_file; do
+            if [[ $(head -n1 "${bin_file}") == '#!/usr/bin/env python' ]]; then
+              mode=top
+              while read -r line; do
+                if [[ ${mode} == top ]]; then
+                  if [[ ${line} == \#* ]]; then
+                    echo "${line}"
+                  else
+                    echo "import multiprocessing"
+                    echo 'multiprocessing.set_start_method("spawn", force=True)'
+                    echo "${line}"
+                    mode=bottom
+                  fi
+                else
+                  echo "${line}"
+                fi
+              done < "${bin_file}" > "${bin_file}.new"
+              chmod +x "${bin_file}.new"
+              mv "${bin_file}"{.new,}
+            fi
+          done < <(find bin -maxdepth 1 -type f)
+          sed -i meson.build -e "s|'-m', 'pytest'|'-c', 'import multiprocessing, sys, pytest; multiprocessing.set_start_method(\"spawn\", force=True); sys.exit(pytest.console_main())'|"
       - name: Test meson install --destdir /tmp/install-root
         run: |
           echo -e "[binaries]\npython = '$(command -v python)'" > /tmp/native.ini


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2024-02-13 10:01 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2024-02-13 10:01 UTC (permalink / raw
  To: gentoo-commits

commit:     86f92dae52382fd6b7fac8ced1d4e5e6456ce68b
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 13 09:04:40 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Feb 13 09:42:36 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=86f92dae

actions: disable pytest-xdist for spawn start-method (workers crash)

Bug: https://bugs.gentoo.org/924416
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5bffd97206..762999b7cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -90,5 +90,8 @@ jobs:
       - name: Run tests for ${{ matrix.python-version }}
         run: |
           [[ "${{ matrix.start-method }}" == "spawn" ]] && export PORTAGE_MULTIPROCESSING_START_METHOD=spawn
-          export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
+          # spawn start-method crashes pytest-xdist workers (bug 924416)
+          [[ "${{ matrix.start-method }}" == "spawn" ]] && \
+            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count" || \
+            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
           meson test -C /tmp/build --verbose


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2024-02-14 19:09 Zac Medico
  0 siblings, 0 replies; 24+ messages in thread
From: Zac Medico @ 2024-02-14 19:09 UTC (permalink / raw
  To: gentoo-commits

commit:     ffcb1eb3ded0dbd244836ab3020fdc5244407298
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 14 03:37:08 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Feb 14 19:07:57 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ffcb1eb3

actions: Use pytest-rerunfailures for pytest-xdist worker crash

Since pytest-xdist workers crash intermittently for the multiprocessing
spawn start method, use pytest-rerunfailures to detect and handle this
case. Only use pytest-rerunfailures for the spawn start-method since
that is the only case where we've observed intermittent pytest-xdist
worker crashes, and use --only-rerun 'worker .* crashed while running'
to ensure that rerun only triggers for worker crashes.

Bug: https://bugs.gentoo.org/924416
See: https://github.com/pytest-dev/execnet/issues/96
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .github/workflows/ci.yml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 762999b7cc..e4168203d4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,7 +53,7 @@ jobs:
           python -m site
           python -m pip install --upgrade pip
           # setuptools needed for 3.12+ because of https://github.com/mesonbuild/meson/issues/7702.
-          python -m pip install pytest pytest-xdist setuptools
+          python -m pip install pytest pytest-rerunfailures pytest-xdist setuptools
 
           # symlink /bin/true to /usr/bin/getuto (or do we want to grab the script from github?)
           sudo ln -s /bin/true /usr/bin/getuto
@@ -90,8 +90,7 @@ jobs:
       - name: Run tests for ${{ matrix.python-version }}
         run: |
           [[ "${{ matrix.start-method }}" == "spawn" ]] && export PORTAGE_MULTIPROCESSING_START_METHOD=spawn
-          # spawn start-method crashes pytest-xdist workers (bug 924416)
-          [[ "${{ matrix.start-method }}" == "spawn" ]] && \
-            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count" || \
-            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
+          export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
+          # Use pytest-rerunfailures to workaround pytest-xdist worker crashes with spawn start-method (bug 924416).
+          [[ "${{ matrix.start-method }}" == "spawn" ]] && PYTEST_ADDOPTS+=" --reruns 5 --only-rerun 'worker .* crashed while running'"
           meson test -C /tmp/build --verbose


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [gentoo-commits] proj/portage:master commit in: .github/workflows/
@ 2024-03-15 21:57 Mike Gilbert
  0 siblings, 0 replies; 24+ messages in thread
From: Mike Gilbert @ 2024-03-15 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     b276077666c2fca47c91eae19669f1bf6c0c702f
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 20:27:06 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 21:34:16 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b2760776

github: update actions to avoid deprecation warnings

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .github/workflows/ci.yml         |  6 +++---
 .github/workflows/lint.yml       | 13 ++++++-------
 .github/workflows/pre-commit.yml |  8 +++++---
 3 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e4168203d4..2ac66970e5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
           - '3.9'
           - '3.10'
           - '3.11'
-          - '3.12-dev'
+          - '3.12'
           - '3.13-dev'
           - 'pypy-3.10'
         exclude:
@@ -34,9 +34,9 @@ jobs:
             start-method: 'spawn'
       fail-fast: false
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 2091796b7c..ddcd9d486d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -6,13 +6,13 @@ jobs:
   black:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: "Collect stragglers that Black misses"
         id: stragglers
         run: |
-          echo "::set-output name=missed::$(
+          echo "missed=$(
           find bin -type f -not -name '*.py' -not -name '*.sh' | \
-          xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')"
+          xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')" >> $GITHUB_OUTPUT
       - uses: psf/black@24.1.1
         with:
             src: . ${{ steps.stragglers.outputs.missed }}
@@ -25,13 +25,12 @@ jobs:
           - '3.9'
           - '3.10'
           - '3.11'
-          # pylint currently broken under 3.12
-          # - '3.12-dev'
+          - '3.12'
       fail-fast: false
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install python dependencies

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index ad71791c0b..1c3fbc48b0 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -9,6 +9,8 @@ jobs:
   pre-commit:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v3
-    - uses: actions/setup-python@v4
-    - uses: pre-commit/action@v3.0.0
+    - uses: actions/checkout@v4
+    - uses: actions/setup-python@v5
+      with:
+        python-version: '3.x'
+    - uses: pre-commit/action@v3.0.1


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-03-15 21:57 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-23  6:59 [gentoo-commits] proj/portage:master commit in: .github/workflows/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-03-15 21:57 Mike Gilbert
2024-02-14 19:09 Zac Medico
2024-02-13 10:01 Zac Medico
2024-02-07  0:32 Zac Medico
2023-11-02 14:37 Sam James
2023-10-30  8:47 Sam James
2023-10-11 19:08 Zac Medico
2023-08-02  6:31 Sam James
2023-05-23 10:08 Sam James
2023-03-20  4:03 Sam James
2023-03-20  4:03 Sam James
2023-03-11 18:54 Sam James
2023-01-10 15:12 Sam James
2022-12-03  1:40 Sam James
2022-06-06 17:01 Mike Gilbert
2022-05-20 11:14 Michał Górny
2022-04-12  3:12 Sam James
2022-03-15 22:39 Sam James
2022-02-21  3:51 Sam James
2021-10-28  5:01 Sam James
2021-09-20  3:58 Zac Medico
2021-08-07 16:44 Michał Górny
2021-01-02  6:00 Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox