From c1b4c5bff6dceacf96d8017a1bf08bafe2a87879 Mon Sep 17 00:00:00 2001 From: Tej Magar <38379046+tejmagar@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:29:05 +0545 Subject: [PATCH 1/4] fix: python CI failure CI build was failing while installing codespell package in latest ubuntu. Fixed pip installation with --break-system-packages flag. --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 781fddff57d7..3e0c740eed40 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: spell check run: | - pip install codespell==2.1.0 + pip install codespell==2.1.0 --break-system-packages # codespell considers some repo name in go.sum are misspelled git grep --cached -l '' | grep -v go.sum |xargs codespell --ignore-words=.ignore_words - name: Merge conflict From 85f329b7051a187319abd1bc374a57d157b74b3a Mon Sep 17 00:00:00 2001 From: Tej Magar Date: Wed, 16 Oct 2024 19:49:34 +0545 Subject: [PATCH 2/4] fix: python CI failure CI build was failing while installing requests package in latest ubuntu. Fixed pip installation with --break-system-packages flag. --- ci/linux_apisix_current_luarocks_runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/linux_apisix_current_luarocks_runner.sh b/ci/linux_apisix_current_luarocks_runner.sh index 39b9df8d0107..fdff0cd04aef 100755 --- a/ci/linux_apisix_current_luarocks_runner.sh +++ b/ci/linux_apisix_current_luarocks_runner.sh @@ -64,7 +64,7 @@ script() { set_coredns # install test dependencies - sudo pip install requests + sudo pip install requests --break-system-packages # dismiss "maximum number of open file descriptors too small" warning ulimit -n 10240 From 8a34021ef18a3ffd5a51fe8d5c16656f355e2100 Mon Sep 17 00:00:00 2001 From: Tej Magar Date: Wed, 16 Oct 2024 21:57:37 +0545 Subject: [PATCH 3/4] fix: python CI failure Remove --break-system-packages flag from pip installation script. --- ci/linux_apisix_current_luarocks_runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/linux_apisix_current_luarocks_runner.sh b/ci/linux_apisix_current_luarocks_runner.sh index fdff0cd04aef..39b9df8d0107 100755 --- a/ci/linux_apisix_current_luarocks_runner.sh +++ b/ci/linux_apisix_current_luarocks_runner.sh @@ -64,7 +64,7 @@ script() { set_coredns # install test dependencies - sudo pip install requests --break-system-packages + sudo pip install requests # dismiss "maximum number of open file descriptors too small" warning ulimit -n 10240 From dd961126c94d54af251197b15e8f2b4cb59f96cf Mon Sep 17 00:00:00 2001 From: Abhishek Choudhary Date: Thu, 17 Oct 2024 11:46:55 +0545 Subject: [PATCH 4/4] pip -> pip3 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e0c740eed40..8525efa75422 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: spell check run: | - pip install codespell==2.1.0 --break-system-packages + pip3 install codespell==2.1.0 --break-system-packages # codespell considers some repo name in go.sum are misspelled git grep --cached -l '' | grep -v go.sum |xargs codespell --ignore-words=.ignore_words - name: Merge conflict