Skip to content

10156 fast redeploy maven#12467

Open
ErykKul wants to merge 2 commits into
developfrom
10156-fast-redeploy-maven
Open

10156 fast redeploy maven#12467
ErykKul wants to merge 2 commits into
developfrom
10156-fast-redeploy-maven

Conversation

@ErykKul

@ErykKul ErykKul commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Two related changes:

  • Faster deployments for everyone: stops running EclipseLink DDL generation (create-tables) on every deploy. A new ConditionalSchemaCreator session-event listener creates missing entity tables at startup only when they are actually missing (empty DB or newly added entity), using the same EclipseLink schema framework. Flyway still runs on every startup as before.
  • Maven-native fast redeploy for container-based dev: replaces the dev-*-frd.sh shell scripts with an frd Maven profile (mvn -Pfrd package) that hot-redeploys into the running container in ~10-15s, IDE/editor/platform independent. Adds on-demand metadata block + Solr schema updates from the working tree (dev_metadata_update) and raises the dev memory limit to 6 GiB to support repeated redeploys.

Which issue(s) this PR closes:

Special notes for your reviewer:

Follow-up to #11961, per containerization-meeting feedback (no host bash, fix persistence.xml properly, refresh metadata block TSVs). #11961's scripts were never in a tagged release, so the single release note describes the Maven workflow as new rather than as a replacement.

Suggestions on how to test this:

  • mvn -Pct clean package docker:run, then edit a Java/XHTML file and run mvn -Pfrd package — change is live without a container restart, DB state preserved.
  • Add a new @Entity, redeploy — its table is created automatically.
  • Edit a metadata block TSV, run docker start -a dev_metadata_update — block and Solr schema update.
  • First boot on an empty DB still creates all tables, then Flyway baselines and replays migrations as before.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Is there a release notes update needed for this change?:

Yes — included: doc/release-notes/10156-fast-redeploy.md.

Additional documentation:

Container guide updated: Fast Redeploy (Command-Line) section in dev-usage.rst, plus configbaker-image.rst and sql-upgrade-scripts.rst.

@github-actions github-actions Bot added Component: Containers Anything related to cloudy Dataverse, shipped in containers. Feature: Developer Guide Feature: None No user-facing feature in particular Type: Suggestion an idea User Role: Hackathon Participant Core developers, frequent contributors, drive-by contributors, etc. labels Jun 16, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 25.018% (-0.007%) from 25.025% — 10156-fast-redeploy-maven into develop

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:10156-fast-redeploy-maven
ghcr.io/gdcc/configbaker:10156-fast-redeploy-maven

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@github-actions

Copy link
Copy Markdown

Test Results

403 tests  ±0   388 ✅ ±0   38m 28s ⏱️ + 4m 51s
 55 suites ±0    15 💤 ±0 
 55 files   ±0     0 ❌ ±0 

Results for commit ed710b4. ± Comparison against base commit 670f82f.

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Jun 16, 2026
@pdurbin pdurbin moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Jun 16, 2026
@cmbz cmbz added FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Containers Anything related to cloudy Dataverse, shipped in containers. Feature: Developer Guide Feature: None No user-facing feature in particular FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) Original size: 3 Type: Suggestion an idea User Role: Hackathon Participant Core developers, frequent contributors, drive-by contributors, etc.

Projects

Status: Ready for Review ⏩

Development

Successfully merging this pull request may close these issues.

add Visual Studio Code to guides

4 participants