Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
a3b4bab
[INIT] Full refactor of the OpenUpgrade project
legalsylvain Nov 1, 2020
979a031
[DEL] openupgrade_records -> server-tools/14.0
StefanRijnhart Nov 29, 2020
e6618ab
[RFR] OpenUpgrade framework patches
StefanRijnhart Dec 6, 2020
56e072f
[UPD] README.rst
OCA-git-bot Jan 20, 2021
3ff6271
[ADD] icon.png
OCA-git-bot Jan 20, 2021
7ea4374
[FIX] _logger.warn -> _logger.warning
MiquelRForgeFlow Mar 25, 2021
4a26d43
[FIX] doc: base must be included in --load parameter
MiquelRForgeFlow Mar 25, 2021
6c13a6a
[UPD] README.rst
OCA-git-bot Mar 25, 2021
7f9a67a
[FIX] base: Don't fail uninstalling when missing models
MiquelRForgeFlow Apr 8, 2021
029dcd1
[FIX] openupgrade_framework: _drop_column was in wrong class
MiquelRForgeFlow Apr 12, 2021
63c68fa
[DOC] add banner file, to make this module more visible on the app st…
legalsylvain Jun 10, 2021
d657fbc
[UPD] README.rst
OCA-git-bot Jun 10, 2021
dab9fb5
[FIX] Don't break on missing model in selection _process_ondelete
StefanRijnhart Jul 7, 2021
1e69c87
[REF] Add maintainers
legalsylvain Aug 4, 2021
b2a9590
[UPD] README.rst
OCA-git-bot Aug 5, 2021
73106ec
[IMP] openupgrade_framework: avoid AttributeError in view validation
MiquelRForgeFlow Oct 4, 2021
9c525c0
[MIG][15.0] openupgrade_framework
legalsylvain Nov 15, 2021
94a6f41
[REF] adapt framework, due to renaming handle_view_error into _raise_…
legalsylvain Nov 15, 2021
190e77e
fixup! [WIP][15.0] base module
legalsylvain Nov 15, 2021
1ff2997
fixup! fixup! [WIP][15.0] base module
legalsylvain Nov 15, 2021
20f33bf
Update method _postprocess_view of ir_ui_view by removing the input a…
jcdrubay May 10, 2022
7092c7b
[MIG] remove the odoo_patch on function _postprocess_view which becam…
jcdrubay May 11, 2022
202a30a
Adjustements for code style
jcdrubay May 12, 2022
51af030
[UPD] README.rst
OCA-git-bot May 18, 2022
0c15d32
[OU-FIX] Migration scripts were not run during install
StefanRijnhart Feb 27, 2022
ea663ff
[IMP] openupgrade_framework: to not crash, simply not deactivating the
royle-vietnam Jul 11, 2022
35aee25
[IMP] openupgrade_framework: add environ parameter to force demo
MiquelRForgeFlow Jun 20, 2022
fbf0aae
[UPD] README.rst
OCA-git-bot Jul 18, 2022
dae2d3d
[IMP] base: override to not raise an exception
royle-vietnam May 14, 2022
78bf1ef
[FIX] openupgrade_framework: Proper module dependency resolution
pedrobaeza Jul 24, 2022
d1a5b49
[FIX] framework: monkeypatch needs to patch original method
MiquelRForgeFlow Sep 13, 2022
12c2a35
[FIX] framework: monkeypatch needs to patch original method (fixup)
MiquelRForgeFlow Sep 14, 2022
ef7b593
[MIG] openupgrade_framework v16
hbrunn Jan 10, 2023
f961683
[ADD] implement tests of migrations
hbrunn Jan 17, 2023
d06814a
[FIX] Add openupgradelib dependencies in manifest files
legalsylvain Mar 27, 2023
791cfe6
[UPD] README.rst
OCA-git-bot Sep 3, 2023
74d98c8
[OU-FIX] don't fail when there's an unknown field in a view
hbrunn Dec 22, 2023
4fc77e6
[IMP] openupgrade_framework: pre-commit auto fixes and enable
royle-vietnam May 14, 2024
02a6ab7
[FIX] odoo_patch: don't raise or log exceptions in view validation
royle-vietnam May 14, 2024
e7ac198
[MIG] openupgrade_framework v17
daiduongnguyen-odoo May 22, 2024
1ff6d34
[UPD] README.rst
OCA-git-bot May 23, 2024
e057cf3
[IMP] openupgrade_framework: pre-commit stuff
chienandalu Jul 5, 2024
0e10f66
[UPD] README.rst
OCA-git-bot Jul 8, 2024
928a287
[OU-ADD] enable tests, add decorator to make them convenient to use
hbrunn Nov 18, 2024
ae5412f
[MIG] openupgrade_framework: Migration to 18.0
hbrunn Jan 13, 2025
4cf0174
[OU-ADD] exclude analytic 1.2 migration
hbrunn Mar 3, 2025
3c835b6
[BOT] post-merge updates
OCA-git-bot Mar 21, 2025
801ffde
[IMP] openupgrade_framework: install newly available auto_install addons
hbrunn Jun 30, 2025
53a0fcc
[FIX] openupgrade_framework: manipulate versions to actually run scripts
hbrunn Jun 30, 2025
984f9e5
[FIX] openupgrade_framework: force running pre scripts on installation
hbrunn Jun 30, 2025
cbd9cb3
[BOT] post-merge updates
OCA-git-bot Jun 30, 2025
fac8cb1
Revert "[FIX] openupgrade_framework: manipulate versions to actually …
pedrobaeza Jul 4, 2025
365744d
[FIX] openupgrade_framework: fix return value for update_list method …
kafai-lam Jul 11, 2025
9791ef8
[BOT] post-merge updates
OCA-git-bot Jul 12, 2025
0424110
[FIX] openupgrade_framework: _process_ondelete skip fields without at…
zurbaran Aug 2, 2025
e892a0c
[FIX] openupgrade_framework: Add decorator for method update_list()
quoc-pn Aug 23, 2025
193534f
[BOT] post-merge updates
OCA-git-bot Aug 23, 2025
dfe9b56
[MIG] openupgrade_framework to v19
hbrunn Sep 26, 2025
15b8106
[IMP] add tests for openupgrade_framework
hbrunn Oct 3, 2025
1117355
[FIX] don't set install_filename when loading views from openupgrade_…
hbrunn Nov 7, 2025
5fb3144
[FIX]openupgrade_framework: Fix Nonetype Error when install_filenmae …
javierjcf Nov 10, 2025
d713b1a
[FIX] openupgrade_framework: set upgrade_path only if it exists
hbrunn Dec 24, 2025
2d9195f
[UPD] README.rst
OCA-git-bot Dec 25, 2025
e662bd1
[IMP] openupgrade_framework: minor things
MiquelRForgeFlow Jan 21, 2026
10f253d
[MIG] openupgrade_framework to v20
hbrunn Sep 29, 2026
032dd7c
[IMP] openupgrade_framework: log module a column/table would be dropp…
hbrunn Oct 6, 2026
f233761
[IMP] openupgrade_framework: defuse ir.model#_unlink_related_attachments
hbrunn Nov 3, 2026
68c8d39
[FIX] openupgrade_framework: use cr.savepoint in BaseModel.unlink patch
hbrunn Nov 3, 2026
87dd57e
[IMP] openupgrade_framework: filter for country_ids
hbrunn Nov 3, 2026
dc4f15f
[IMP] openupgrade_framework: disable view validation entirely
hbrunn Nov 3, 2026
aef47fb
[UPD] initial analysis
hbrunn Sep 29, 2026
a3077e1
[MIG] base
hbrunn Oct 6, 2026
66f7707
[MIG] mail dependencies: nothing to do
hbrunn Nov 3, 2026
4a4a68b
[FIX] CI: use OCA docker images
hbrunn Nov 3, 2026
96f34e8
[MIG] mail
hbrunn Nov 10, 2026
19f1ac9
fixup! [MIG] mail
hbrunn Nov 17, 2026
70aab14
fixup! [FIX] CI: use OCA docker images
hbrunn Nov 17, 2026
b530398
fixup! [FIX] CI: use OCA docker images
hbrunn Nov 17, 2026
59960a4
fixup! [FIX] CI: use OCA docker images
hbrunn Nov 17, 2026
d8dd8a0
fixup! [MIG] mail
hbrunn Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
120 changes: 44 additions & 76 deletions .github/workflows/test-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,94 +19,59 @@ jobs:
runs-on: ubuntu-22.04
env:
DB: "openupgrade"
DB_HOST: "localhost"
DB_PASSWORD: "odoo"
DB_PORT: 5432
DB_USERNAME: "odoo"
DOWNLOADS: https://github.com/${{github.repository}}/releases/download/databases
ODOO: "./odoo/odoo-bin"
PGHOST: "localhost"
PGPASSWORD: "odoo"
PGUSER: "odoo"
OPENUPGRADE_USE_DEMO: "yes"
OCA_IMAGE_PREV: ghcr.io/oca/oca-ci/py3.10-ocb19.0:latest
OCA_IMAGE_CURRENT: ghcr.io/oca/oca-ci/py3.12-ocb20.0:latest
services:
postgres:
image: postgres:14.0
image: postgres:16.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
POSTGRES_DB: openupgrade
ports:
- 5432:5432
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Sleep for 10 seconds
run: sleep 10s
- name: DB Creation
run: createdb $DB
- name: DB Restore
- name: Wait for postgres
run: while ! pg_isready; do sleep 1; done
- name: Restore database
run: |
wget -q -O- $DOWNLOADS/19.0.psql | pg_restore -d $DB --no-owner
psql $DB -c "UPDATE ir_module_module SET demo=False"
- name: Check out Odoo
uses: actions/checkout@v4
with:
repository: odoo/odoo
ref: "20.0"
fetch-depth: 1
path: odoo
- name: Check out previous Odoo
uses: actions/checkout@v4
with:
repository: odoo/odoo
ref: "19.0"
fetch-depth: 1
path: odoo-old
- name: Check out OpenUpgrade
uses: actions/checkout@v4
with:
path: openupgrade
- name: Configuration
- name: Download docker images and start containers
run: |
sudo apt update
sudo apt install \
expect \
expect-dev \
libevent-dev \
libldap2-dev \
libsasl2-dev \
libxml2-dev \
libxslt1-dev \
nodejs \
python3-lxml \
python3-passlib \
python3-psycopg2 \
python3-serial \
python3-simplejson \
python3-werkzeug \
python3-yaml \
unixodbc-dev
- name: Requirements Installation
docker pull $OCA_IMAGE_PREV
docker pull $OCA_IMAGE_CURRENT
docker run -e PGHOST=$PGHOST --net=host $OCA_IMAGE_PREV psql -l
docker run -d --net=host --name openupgrade_prev $OCA_IMAGE_PREV sleep infinity
docker run -d --net=host --name openupgrade_current --volume=$(pwd)/openupgrade:/opt/openupgrade $OCA_IMAGE_CURRENT sleep infinity
- name: Install dependencies
run: |
sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" odoo/requirements.txt
pip install -q -r odoo/requirements.txt
pip install -r ./openupgrade/requirements.txt
pip install -U git+https://github.com/oca/openupgradelib
# this is for v18 l10n_eg_edi_eta which crashes without it
pip install asn1crypto
# required by v18
pip install decorator
pip install coverage
# this is for account_peppol
pip install phonenumbers
# install dependencies not available in the oca image
# cloud_storage_google, needs pin to not pull incompatible cryptography version
docker exec openupgrade_prev pip install "google-auth<2.48.0"
# install openupgrade dependencies
docker exec openupgrade_current sh -c "
cd /opt/openupgrade
oca_install_addons
pip install -U git+https://github.com/oca/openupgradelib
"
- name: Test data
run: |
if test -n "$(ls openupgrade/openupgrade_scripts/scripts/*/tests/data*.py 2> /dev/null)"; then
for snippet in openupgrade/openupgrade_scripts/scripts/*/tests/data*.py; do
odoo-old/odoo-bin shell -d $DB < $snippet
docker exec -i -e PGHOST=$PGHOST openupgrade_prev odoo shell -d $DB < $snippet
done
fi
- name: OpenUpgrade test
Expand Down Expand Up @@ -147,25 +112,28 @@ jobs:
echo Execution of Openupgrade with the update of the following modules : $MODULES_NEW
# Silence redundant logs from unlinking records (1 line is enough)
# to prevent log overflow
coverage run \
--source=$GITHUB_WORKSPACE/openupgrade/openupgrade_scripts/scripts \
$ODOO \
--addons-path=`echo $ADDONS_PATHS | awk -v OFS="," '$1=$1'` \
--database=$DB \
--db_host=$DB_HOST \
--db_password=$DB_PASSWORD \
--db_port=$DB_PORT \
--db_user=$DB_USERNAME \
--load=base,web,openupgrade_framework \
--test-enable \
--test-tags openupgrade \
--log-handler odoo.models.unlink:WARNING \
--stop-after-init \
--without-demo=$MODULES_NEW \
--update=$MODULES_NEW
docker exec -e PGHOST=$PGHOST -e OPENUPGRADE_USE_DEMO=yes openupgrade_current sh -c "
cd /opt/openupgrade
coverage run \\
--source=/opt/openupgrade/openupgrade_scripts/scripts \\
\$(which odoo) \\
--load=base,web,openupgrade_framework \\
--database=$DB \\
--test-enable \\
--test-tags openupgrade \\
--log-handler odoo.models.unlink:WARNING \\
--stop-after-init \\
--without-demo=$MODULES_NEW \\
--update=$MODULES_NEW
"
- name: Generate coverage.xml
if: ${{ steps.run_migration.outputs.modules_new != '' }}
run: coverage xml
run: |
docker exec openupgrade_current sh -c "
cd /opt/openupgrade
coverage xml
"
docker cp openupgrade_current:/opt/openupgrade/coverage.xml .
- uses: codecov/codecov-action@v4
if: ${{ steps.run_migration.outputs.modules_new != '' }}
with:
Expand Down
Loading
Loading