Skip to content

Commit 229d922

Browse files
authored
Merge branch 'main' into main
2 parents 87821d3 + 946d809 commit 229d922

20 files changed

+178
-506
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Install docker-compose
21-
run: sudo apt update && sudo apt install -y docker-compose
21+
run: sudo apt-get update && sudo apt-get install -y docker-compose
2222
- name: Build the Docker images
2323
run: docker compose -f docker-compose.test.yml build
2424
- name: Run sanity tests
@@ -29,7 +29,7 @@ jobs:
2929
# steps:
3030
# - uses: actions/checkout@v4
3131
# - name: Install docker-compose
32-
# run: sudo apt update && sudo apt install -y docker-compose
32+
# run: sudo apt-get update && sudo apt-get install -y docker-compose
3333
# - name: Build the Docker images
3434
# run: docker compose -f docker-compose.test.yml build
3535
# - name: Run webservice tests
@@ -40,7 +40,7 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v4
4242
- name: Install docker-compose
43-
run: sudo apt update && sudo apt install -y docker-compose
43+
run: sudo apt-get update && sudo apt-get install -y docker-compose
4444
- name: Build the Docker images
4545
run: docker compose -f docker-compose.test.yml build
4646
- name: Run bmo specific tests
@@ -51,29 +51,29 @@ jobs:
5151
steps:
5252
- uses: actions/checkout@v4
5353
- name: Install docker-compose
54-
run: sudo apt update && sudo apt install -y docker-compose
54+
run: sudo apt-get update && sudo apt-get install -y docker-compose
5555
- name: Build the Docker images
5656
run: docker compose -f docker-compose.test-mariadb.yml build
5757
- name: Run bmo specific tests
5858
run: docker compose -f docker-compose.test-mariadb.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
5959

6060
test_bugzilla6_pg:
61-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-latest
6262
steps:
6363
- uses: actions/checkout@v4
6464
- name: Install docker-compose
65-
run: sudo apt update && sudo apt install -y docker-compose docker.io
65+
run: sudo apt-get update && sudo apt-get install -y docker-compose
6666
- name: Build the Docker images
67-
run: docker-compose -f docker-compose.test-pg.yml build
67+
run: docker compose -f docker-compose.test-pg.yml build
6868
- name: Run bmo specific tests
69-
run: docker-compose -f docker-compose.test-pg.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
69+
run: docker compose -f docker-compose.test-pg.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
7070

7171
test_bugzilla6_sqlite:
7272
runs-on: ubuntu-latest
7373
steps:
7474
- uses: actions/checkout@v4
7575
- name: Install docker-compose
76-
run: sudo apt update && sudo apt install -y docker-compose
76+
run: sudo apt-get update && sudo apt-get install -y docker-compose
7777
- name: Build the Docker images
7878
run: docker compose -f docker-compose.test-sqlite.yml build
7979
- name: Run bmo specific tests

.github/workflows/release.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ on:
1515
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1616
jobs:
1717
ubuntu:
18-
name: Release Tests on Ubuntu 20.04
19-
runs-on: ubuntu-20.04
18+
name: Release Tests on Ubuntu 24.04
19+
runs-on: ubuntu-24.04
2020
steps:
2121
- name: Checkout the repository
2222
uses: actions/checkout@v4
@@ -27,42 +27,46 @@ jobs:
2727
~/.perl-cpm/cache
2828
~/.perl-cpm/builds
2929
**/local/
30-
key: ${{ runner.os }}-ubuntu-20.04
30+
key: ${{ runner.os }}-ubuntu-24.04
3131
restore-keys: |
32-
${{ runner.os }}-ubuntu-20.04
32+
${{ runner.os }}-ubuntu-24.04
3333
- name: apt install
3434
run: |
3535
sudo apt-get update
3636
sudo apt-get -y dist-upgrade
3737
sudo apt-get install --ignore-hold --allow-downgrades -y \
3838
apache2 \
39-
mariadb-client-10.3 \
40-
netcat \
39+
cpanminus \
40+
mariadb-client \
41+
netcat-traditional \
4142
build-essential \
4243
libapache2-mod-perl2 \
4344
libapache2-mod-perl2-dev \
45+
libgd3 \
46+
libgd-dev \
4447
perlmagick \
4548
graphviz \
4649
curl libssl-dev zlib1g-dev openssl \
4750
libexpat-dev cmake git libcairo-dev \
48-
unzip wget
49-
- name: cpm install
51+
unzip wget
52+
- name: Run Makefile.PL
5053
run: |
5154
perl Makefile.PL
52-
#make cpanfile GEN_CPANFILE_ARGS='-A'
53-
perl -I$GITHUB_WORKSPACE/.github/cpm/lib/perl5 $GITHUB_WORKSPACE/.github/cpm/bin/cpm install \
54-
&& tar -C $GITHUB_WORKSPACE \
55+
cpanm --notest --quiet --local-lib="$GITHUB_WORKSPACE/.github/cpm/lib/perl5" Module::CPANfile
56+
make cpanfile GEN_CPANFILE_ARGS='-A -U oracle'
57+
- name: cpm install
58+
run: |
59+
perl -I"$GITHUB_WORKSPACE/.github/cpm/lib/perl5" "$GITHUB_WORKSPACE/.github/cpm/bin/cpm" install \
60+
&& tar -C "$GITHUB_WORKSPACE" \
5561
--exclude 'local/cache/*' \
5662
--exclude 'local/man/*' \
5763
--exclude '*.pod' \
5864
-zcvf local-lib.tar.gz local
5965
- name: Save dependencies
6066
uses: actions/upload-artifact@v4
6167
with:
62-
name: ubuntu-20.04-local-lib.tar.gz
68+
name: ubuntu-24.04-local-lib.tar.gz
6369
path: local-lib.tar.gz
64-
- name: Run Makefile.PL
65-
run: 'perl Makefile.PL'
6670
- name: Run checksetup
6771
run: 'perl checksetup.pl --no-database --default-localconfig --no-templates'
6872
- name: Run tests

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG BZDB="-mysql8"
2-
FROM bugzilla/bugzilla-perl-slim${BZDB}:20240419.1
1+
ARG BZDB="-mysql"
2+
FROM bugzilla/bugzilla-perl-slim${BZDB}:20250925.1
33

44
ENV DEBIAN_FRONTEND noninteractive
55

Makefile.PL

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ my %requires = (
9090
'Role::Tiny' => '2.000003',
9191
'Scope::Guard' => '0.21',
9292
'Sereal' => '4.004',
93+
'Sub::Identify' => 0,
9394
'Sub::Quote' => '2.005000',
9495
'Template' => '3.008',
9596
'Text::CSV_XS' => '1.26',
@@ -199,7 +200,7 @@ my %optional_features = (
199200
jsonrpc => {
200201
description => 'JSON-RPC Interface',
201202
prereqs => {
202-
runtime => {requires => {'JSON::RPC' => '== 1.01', 'Test::Taint' => '1.06'}}
203+
runtime => {requires => {'JSON::RPC' => '1.01', 'Test::Taint' => '1.06'}}
203204
}
204205
},
205206
linux_pdeath => {
@@ -283,7 +284,7 @@ my %optional_features = (
283284
rest => {
284285
description => 'REST Interface',
285286
prereqs => {
286-
runtime => {requires => {'Test::Taint' => '1.06', 'JSON::RPC' => '==1.01',}}
287+
runtime => {requires => {'Test::Taint' => '1.06', 'JSON::RPC' => '1.01',}}
287288
}
288289
},
289290
s3 => {

cpanfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ requires 'Role::Tiny', '2.000003';
6868
requires 'SOAP::Lite', '0.712';
6969
requires 'Scope::Guard', '0.21';
7070
requires 'Sereal', '4.004';
71+
requires 'Sub::Identify';
7172
requires 'Sub::Quote', '2.005000';
7273
requires 'Sys::Syslog';
7374
requires 'Template', '3.008';

docker-compose.test-mariadb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
bugzilla6.test:
99
build:
1010
args:
11-
- BZDB=-mariadb106
11+
- BZDB=-mariadb
1212
context: .
1313
dockerfile: Dockerfile
1414
command: dev_httpd

docker-compose.test-pg.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
bugzilla6.test:
99
build:
1010
args:
11-
- BZDB=-pg9
11+
- BZDB=-pg
1212
context: .
1313
dockerfile: Dockerfile
1414
command: dev_httpd
@@ -18,7 +18,7 @@ services:
1818
environment:
1919
- 'BMO_inbound_proxies=*'
2020
- BMO_db_driver=pg
21-
- BMO_db_host=bugzilla6.pgsql9
21+
- BMO_db_host=bugzilla6.pgsql13
2222
- BMO_db_name=bugs
2323
- BMO_db_pass=bugs
2424
- BMO_db_user=bugs
@@ -40,12 +40,12 @@ services:
4040
- TWD_HOST=selenium
4141
- TWD_PORT=4444
4242
depends_on:
43-
- bugzilla6.pgsql9
43+
- bugzilla6.pgsql13
4444
- memcached
4545
- selenium
4646

47-
bugzilla6.pgsql9:
48-
image: postgres:9.0
47+
bugzilla6.pgsql13:
48+
image: postgres:13.22
4949
tmpfs:
5050
- /tmp
5151
logging:

docker-compose.test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ services:
4343
- selenium
4444

4545
bugzilla6.mysql8:
46-
build:
47-
context: .
48-
dockerfile: docker/images/Dockerfile.mysql8
46+
image: mysql:8
47+
command:
48+
- '--max_allowed_packet=64M'
4949
tmpfs:
5050
- /tmp
5151
logging:

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ services:
9595
# - memcached
9696

9797
bugzilla6.mysql8:
98-
build:
99-
context: .
100-
dockerfile: docker/images/Dockerfile.mysql8
98+
image: mysql:8
99+
command:
100+
- '--max_allowed_packet=64M'
101101
volumes:
102102
- bugzilla6-mysql-db:/var/lib/mysql
103103
tmpfs:

docker/gen-bugzilla-perl-slim.sh

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)