Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text eol=lf
* text eol=lf
*.db -text -eol -working-tree-encoding -merge -diff
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [closed]
paths:
- '.github/project.yml'
workflow_dispatch: {}

permissions:
contents: write
Expand Down Expand Up @@ -61,6 +62,11 @@ jobs:
run: |
git checkout -b release
mvn -B release:prepare -DperformRelease -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
git restore --staged --worktree -- impl/test/db-samples/** 2>/dev/null || true
git clean -fd -- impl/test/db-samples 2>/dev/null || true
git status --porcelain
cat release.properties
git checkout ${{github.base_ref}}
git rebase release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DBGenerator {

private static final Logger LOG = LoggerFactory.getLogger(DBGenerator.class);

public static void main(String[] args) throws IOException {
runInstance("db-samples/running_v1.db", false);
runInstance("db-samples/suspended_v1.db", true);
}

private static void runInstance(String dbName, boolean suspend) throws IOException {
LOG.info("---> Generating db samples at {}", dbName);
Files.deleteIfExists(Path.of(dbName));
try (PersistenceInstanceHandlers factories =
BytesMapPersistenceInstanceHandlers.builder(new MVStorePersistenceStore(dbName))
Expand Down