Skip to content

Fix #1319: DB Connection buffer classes must be retained on deployment#1322

Merged
blairmcg merged 1 commit intorelease/7.2from
blairmcg/1319
Feb 3, 2025
Merged

Fix #1319: DB Connection buffer classes must be retained on deployment#1322
blairmcg merged 1 commit intorelease/7.2from
blairmcg/1319

Conversation

@blairmcg
Copy link
Copy Markdown
Contributor

@blairmcg blairmcg commented Feb 2, 2025

DBColAttr class>>#initialize is the only reference in code to the database buffer classes, and so must not be stripped or the buffer classes will be removed.

A new package closure test is included, but unfortunately the closure test mechanism isn't sophisticated enough to catch this particular fault because it only finds missing code caused by the calculation of the transitive closure of packages required for an application. It does not account for code removed by the deployment process that iteratively removes (supposedly) unreferenced methods and classes, as this is difficult to simulate. It looks possible to create a better test simulation using RB environments than the simplistic approach currently employed, but it is not easy, and in the meantime this corrects the particular case of the apps using Database Connection not working after deployment. I plan to do some further work in this in the Dolphin 8 branch, but I probably won't back port it.

DBColAttr class>>#initialize is the only reference in code to the
database buffer classes, and so must not be stripped or the buffer classes
will be removed.

A new package closure test is included, but unfortunately the closure test
mechanism isn't sophisticated enough to catch this particular fault
because it only finds missing code caused by the calculation of the
transitive closure of packages required for an application. It does not
account for code removed by the deployment process that iteratively removes
(supposedly) unreferenced methods and classes, as this is difficult to
simulate. It looks possible to create a better test simulation using
RB environments than the simplistic approach currently employed, but it is
not easy, and in the meantime this corrects the particular case of the
apps using Database Connection not working after deployment.
@blairmcg blairmcg merged commit c8e46f0 into release/7.2 Feb 3, 2025
@blairmcg blairmcg deleted the blairmcg/1319 branch February 3, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant