pscload V2 Component to load RASS data in psc db
Please note that psc-rass-loader
depends on deprecated JDK APIs, and the build
breaks from JDK 21 on.
This can be addressed by :
- Installing a JDK-11 or 17 version (this can be done locally instead of system-wide)
- Setting up the JAVA_HOME variable to this JDK version.
This ecosystem uses many independant components, some of which live an independant life in distinct repositories.
For each release of psc-ps-api
, the psc-compoents' distribution history
file will need to be updated with the new version, so that we can keep track of compatible component versions,
and go back to a previous working distribution if need be.
Whenever a version is ready for release, run the following commands on the main
branch (or on the maintenance branch if we're about to issue a production FIX). This should run on any shell, be it bash
, cmd
or if needed gitbash
.
mvn release:prepare -DautoVersionSubmodules=true -DtagNameFormat=@{version}
git push
git push origin <new_version_tag>
where <new_version_tag>
stands for the new version.
Eg to relase 1.0.1
:
mvn release:prepare -DautoVersionSubmodules=true -DtagNameFormat=@{version}
git push
git push origin 1.0.1
For trouble shooting see the DEBUG section.
To help qualification, two test datasets have been added (see below).
To use extract files from these datasets, set the psload key extract_download_url
in Vault for the instance to https://raw.githubusercontent.com/ansforge/psc-rass-loader/main/pscload/src/test/resources/<dataset_name>/<extract name>
. For example, to use the BaseExtract.zip
extract from dataset qualif-extracts, use : https://raw.githubusercontent.com/ansforge/psc-rass-loader/main/pscload/src/test/resources/qualif-extracts/BaseExtract.zip
This datasets consists in 5 extracts + 1 toggle file (see the qualif-extracts directory) around 100,000 data lines :
- BaseExtract.zip : full 100,000 dataset to use as reference.
- Extract_20.000_changes.zip : BaseExtract.zip with 20.000 changed identities. This will trigger 20.000 updates (and switching back to
BaseExtract.zip
will trigger 20000 more updates). 20.000 deletes are 20% updated lines and willtrigger an alert. - Extract_20.000_deletes.zip : BaseExtract.zip with 20.000 less identities. This will trigger 20.000 deletes (and siwtching back to
BaseExtract.zip
will trigger 20000 creates). 20.000 deletes are 20% deleted lines and will trigger an alert (but 20000 creates won't) - Extract_400_changes.zip : this will trigger 400 updates (no alert as this is less than 5% change)
- Extract_400_deletes.zip : this will trigger 400 deletes (no alert as this is less than 5% change)
- toggle-1.csv: this is a toggle file to be uploaded to add or remove toggles. Of course, subsets can be used too.
This dataset consists in 3 extracts and 2 CSV files, in order (see the CT-AMAR directory):
- 0-RAZ.zip : first extract, used to wipe the database.
- 1-CREATES.zip : second extract, used to create reference identities.
- 2_Correspondance_ADELI_RPPS_creates.csv : this file defines identity toggles (should be loaded through the add toggle action in the admin portal).
- 3-UPDATES.zip : this triggers updates on some identities
- 4_Correspondance_ADELI_RPPS_modifications.csv : this file defines updates in toggles, to be loaded throug the add toggle action in the admin portal.