From b260e6cd40376e38440ee9a27fe142287533a794 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 26 Sep 2025 16:54:15 +0200 Subject: [PATCH 1/3] [IMP] allow to generate test databases manually --- .github/workflows/generate-analysis-cron.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-analysis-cron.yml b/.github/workflows/generate-analysis-cron.yml index 5c3c10c00565..a1138bc534b0 100644 --- a/.github/workflows/generate-analysis-cron.yml +++ b/.github/workflows/generate-analysis-cron.yml @@ -8,10 +8,22 @@ on: schedule: # every monday at 04:00 - cron: "0 4 * * 1" + workflow_dispatch: + inputs: + version: + description: 'Version' + required: true + type: choice + options: + - all + - 18.0 + - 19.0 jobs: generate-analysis18: - if: github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '18.0') + if: | + github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '18.0') || + github.event_name == 'workflow_dispatch' && (inputs.version == '18.0' || inputs.version == 'all') uses: ./.github/workflows/generate-analysis.yml with: from_version: "17.0" From 7842f254e77f1d77c0ee1973725353fa39f6edaf Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 26 Sep 2025 16:59:13 +0200 Subject: [PATCH 2/3] [UPD] add v19 database generation --- .github/workflows/generate-analysis-cron.yml | 10 ++++++++++ .github/workflows/generate-analysis.yml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/generate-analysis-cron.yml b/.github/workflows/generate-analysis-cron.yml index a1138bc534b0..cd073cc22f26 100644 --- a/.github/workflows/generate-analysis-cron.yml +++ b/.github/workflows/generate-analysis-cron.yml @@ -21,6 +21,7 @@ on: jobs: generate-analysis18: + name: Generate analysis 18.0 if: | github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '18.0') || github.event_name == 'workflow_dispatch' && (inputs.version == '18.0' || inputs.version == 'all') @@ -28,3 +29,12 @@ jobs: with: from_version: "17.0" to_version: "18.0" + generate-analysis19: + name: Generate analysis 19.0 + if: | + github.repository == 'OCA/OpenUpgrade' && (github.event_name == 'schedule' || github.ref_name == '19.0') || + github.event_name == 'workflow_dispatch' && (inputs.version == '19.0' || inputs.version == 'all') + uses: ./.github/workflows/generate-analysis.yml + with: + from_version: "18.0" + to_version: "19.0" diff --git a/.github/workflows/generate-analysis.yml b/.github/workflows/generate-analysis.yml index 00268e00c571..bd07e396e118 100644 --- a/.github/workflows/generate-analysis.yml +++ b/.github/workflows/generate-analysis.yml @@ -101,6 +101,8 @@ jobs: pip install -r openupgrade-$FROM_VERSION/requirements.txt # this is for l10n_eg_edi_eta which crashes without it pip install asn1crypto + # this is for cloud_storage_google + pip install google-auth odoo -s -c odoo-$FROM_VERSION.cfg --addons-path server-tools-$FROM_VERSION,openupgrade-$FROM_VERSION --stop-after-init - name: Install current Odoo run: | From 1648ffa7c918377c14fd817f15ea7465ab9e1f86 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 26 Sep 2025 17:01:46 +0200 Subject: [PATCH 3/3] [IMP] ignore upgrade_general_log.txt when looking for changed modules --- .github/workflows/generate-analysis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-analysis.yml b/.github/workflows/generate-analysis.yml index bd07e396e118..08a48d2dc00b 100644 --- a/.github/workflows/generate-analysis.yml +++ b/.github/workflows/generate-analysis.yml @@ -194,7 +194,9 @@ jobs: " > "$PR_BODY" for module in $( - git -C $OPENUPGRADE_DIR status --short | awk '{print $2}' | awk -F/ '{print $3}' | sort -u + git -C $OPENUPGRADE_DIR status --short | awk '{print $2}' |\ + grep --invert-match upgrade_general_log.txt |\ + awk -F/ '{print $3}' | sort -u ); do if grep -qE "\<$module\>.*\<((Done)|(No))" $OPENUPGRADE_DIR/docsource/modules*; then echo Done module $module was updated