Bump DBD::SQLite to 1.66#1174
Conversation
|
Regarding the installation instruction I have the least aversion against the drawbacks of option 1. |
|
If two versions are installed then I guess it will depend on the path which one will be used. Do you see that there is a risk that the order is changed in the path leading to wrong version being used? Could we add a requirement of lowest version in the code, in this case, to avoid that wrong version is used? All options have drawbacks, and I do not think we should use option 2. I think I prefer option 3. |
Yeah, the OS package manager installs packages in one place and cpanm in another.
The one installed by cpanm takes precedence so there should be no problem. |
The Perl path can be changed by the used, can't it? Maybe it is unlikely. |
ab41ad3 to
daf9b9d
Compare
When storing large test results we construct an SQL statement with 7 variables per entry in the test result. Before DBD::SQLite 1.66 there was a hard limit on 999 variables (SQLITE_LIMIT_VARIABLE_NUMBER). This was only enough for small test results with up to 142 enries. In DBD::SQLite 1.66 the limit was raised an we can store large test results with up to 4680 entries. N.B. This change doesn't solve the root cause. It only pushes the problem in front of us by a good margin. IIRC the largest test result we've observed was at about 2000 entries.
daf9b9d to
f156bb8
Compare
Purpose
This PR ensures that zm-testagent doesn't fail at runtime trying to store larger test results in the database, and that the unit tests don't fail, because of a limitation in a dependency.
Context
Fixes #1172.
On Rocky 8 and Ubuntu 20.04 the OS-provided DBD::SQLite is older than 1.66. On such systems cpanm will reject the OS package and instead pull the latest version from CPAN. The current installation instructions for Rocky and Ubuntu prescribes installing OS-packaged versions of DBD::SQLite.
We should consider what to do with the Rocky and Ubuntu installation instructions for Rocky. We have a few options, each with its own drawbacks.
Changes
Bumps DBD::SQLite to 1.66 in Makefile.PL.
How to test this PR
cpanm --test-only $DIST_TARBALL.