-
Notifications
You must be signed in to change notification settings - Fork 8
Binary compatibility docker #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
logart
wants to merge
22
commits into
develop
Choose a base branch
from
binary-compatibility-docker
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4a31583
Add base binary compatibility test.
4bce5eb
WIP.
619eafa
Add configuration to specify which db to test against which version.
b1710c7
Add maven and git based db downloaders.
2f9137a
Replace log with LogManager.
f30022a
Add ability to get db not only from file system but from http.
cd4cb55
Merge branch 'refs/heads/upstream-develop' into binary-compatibility-…
58de87b
Add ability to get db not only from file system but from http.
73bd281
Comment out local path(it will be fixed completely when docker image …
ea36387
Check if tar entry is within outside path.
3a8c03d
Merge branch 'develop' into binary-compatibility-test
logart 23f79af
Merge branch 'develop' into binary-compatibility-test
logart c1adf86
Move compatibility classes to src from test, we need it to run them f…
e47b6f8
Add separate module for binary compatibility test.
8a986ac
Merge branch 'jetbrains/develop' into binary-compatibility-docker
95995c3
Escape : in path.
6aacd96
Fix typo.
1872a60
Add ability to build os dependant maven.
d21e031
Downgrade to current version of ytdb.
4874f98
Update maven repo.
6363de2
One more try.
c18b4de
Fix windows build.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| -Xmx1024m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,18 @@ | ||||||
| # This module is inteded to test binary compatibility of YouTrackDB releases. | ||||||
|
||||||
| # This module is inteded to test binary compatibility of YouTrackDB releases. | |
| # This module is intended to test binary compatibility of YouTrackDB releases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| ############################################################ | ||
| # Dockerfile to run an YouTrackDB (Graph) Container | ||
| # for current developed version | ||
| ############################################################ | ||
|
|
||
| FROM azul/zulu-openjdk:21.0.8-jdk | ||
|
|
||
| RUN apt-get update && apt-get install -y git | ||
| COPY target/youtrackdb-binary-compat-*.jar /youtrackdb-binary-compat.jar | ||
|
|
||
| ENV YTDB_BINARY_COMPAT_TEST_CONFIG=/config/binary-compatibility-test-config.yaml | ||
| CMD ["java", "-jar", "/youtrackdb-binary-compat.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,243 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <!-- Licensed under the Apache License, Version 2.0 (the "License"); | ||
| You may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
| Unless required by applicable law or agreed to in writing, software distributed under the | ||
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
| OF ANY KIND, either express or implied. See the License for the specific | ||
| language governing permissions and limitations under the License. --> | ||
|
|
||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
|
||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-parent</artifactId> | ||
| <version>${revision}${sha1}${changelist}</version> | ||
| <relativePath>../pom.xml</relativePath> | ||
| </parent> | ||
|
|
||
| <artifactId>youtrackdb-binary-compat</artifactId> | ||
|
|
||
| <name>YouTrackDB Binary Compatibility Tests</name> | ||
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <!--This property is updated automatically and is needed to make build reproducible--> | ||
| <project.build.outputTimestamp>2023-01-01T00:00:00Z</project.build.outputTimestamp> | ||
| <argLine> | ||
| -ea | ||
| -Xms${heapSize} | ||
| -Xmx${heapSize} | ||
| -Dyoutrackdb.storage.diskCache.bufferSize=4096 | ||
| -Dyoutrackdb.memory.directMemory.trackMode=true | ||
| -Djava.util.logging.manager=com.jetbrains.youtrackdb.internal.common.log.ShutdownLogManager | ||
| -Dyoutrackdb.storage.diskCache.checksumMode=StoreAndThrow | ||
| -Dyoutrackdb.security.warningDefaultUsers=false | ||
| -Dyoutrackdb.file.log.deletion=false | ||
| --add-opens jdk.unsupported/sun.misc=ALL-UNNAMED | ||
| </argLine> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-yaml</artifactId> | ||
| <version>2.15.2</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-jdk14</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-client</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-tools</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-server</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-test-commons</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-core</artifactId> | ||
| <version>${project.version}</version> | ||
| <type>jar</type> | ||
| <scope>compile</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.youtrackdb</groupId> | ||
| <artifactId>youtrackdb-core</artifactId> | ||
| <version>${project.version}</version> | ||
| <type>test-jar</type> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.openjdk.jmh</groupId> | ||
| <artifactId>jmh-core</artifactId> | ||
| <version>1.37</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.openjdk.jmh</groupId> | ||
| <artifactId>jmh-generator-annprocess</artifactId> | ||
| <version>1.37</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- plotting --> | ||
| <dependency> | ||
| <groupId>org.knowm.xchart</groupId> | ||
| <artifactId>xchart</artifactId> | ||
| <version>3.8.8</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- maven client to fetch other version of youtrackdb for binary compatibility tests --> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-connector-basic</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-api</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-spi</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-util</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-impl</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-transport-http</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven.resolver</groupId> | ||
| <artifactId>maven-resolver-transport-file</artifactId> | ||
| <version>1.9.20</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.maven</groupId> | ||
| <artifactId>maven-resolver-provider</artifactId> | ||
| <version>3.9.9</version> | ||
| </dependency> | ||
| <!-- git client to fetch other version of youtrackdb for binary compatibility tests --> | ||
| <dependency> | ||
| <groupId>org.eclipse.jgit</groupId> | ||
| <artifactId>org.eclipse.jgit</artifactId> | ||
| <version>7.3.0.202506031305-r</version> | ||
| </dependency> | ||
| <!-- to unarchive database for binary compatibility tests --> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-compress</artifactId> | ||
| <version>1.26.2</version> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <executions> | ||
| <!-- Replacing default-compile as it is treated specially by Maven --> | ||
| <execution> | ||
| <id>default-compile</id> | ||
| <phase>none</phase> | ||
| </execution> | ||
| <!-- Replacing default-testCompile as it is treated specially by Maven --> | ||
| <execution> | ||
| <id>default-testCompile</id> | ||
| <phase>none</phase> | ||
| </execution> | ||
| <execution> | ||
| <id>java-compile</id> | ||
| <phase>compile</phase> | ||
| <goals> | ||
| <goal>compile</goal> | ||
| </goals> | ||
| </execution> | ||
| <execution> | ||
| <id>java-test-compile</id> | ||
| <phase>test-compile</phase> | ||
| <goals> | ||
| <goal>testCompile</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <version>3.5.0</version> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <filters> | ||
| <filter> | ||
| <artifact>*:*</artifact> | ||
| <excludes> | ||
| <exclude>META-INF/*.SF</exclude> | ||
| <exclude>META-INF/*.DSA</exclude> | ||
| <exclude>META-INF/*.RSA</exclude> | ||
| </excludes> | ||
| </filter> | ||
| </filters> | ||
| <transformers> | ||
| <!-- This makes the JAR executable by setting the Main-Class --> | ||
| <transformer | ||
| implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
| <mainClass>com.jetbrains.youtrackdb.auto.BaseDBCompatibilityChecker</mainClass> | ||
| </transformer> | ||
| </transformers> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-deploy-plugin</artifactId> | ||
| <configuration> | ||
| <skip>true</skip> | ||
| </configuration> | ||
| <inherited>false</inherited> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'inteded' to 'intended'.