Skip to content

Commit

Permalink
Merge branch 'integration' into fix848
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwilson authored Aug 13, 2024
2 parents 94a72ee + c45fd1c commit 0f43f09
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 40 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
java-version: [8, 11]

steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand All @@ -30,23 +30,22 @@ jobs:
- 'jhove-bbt/scripts/**'
- 'test-root/corpora/**'
- name: JDK setup
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots install -DjacocoAgg
- name: Integration Tests
if: (matrix.java-version == 8) && (steps.filter.outputs.jhove == 'true')
- name: Integration(matrix.java-version == 8) && (steps.filter.outputs.jhove == 'true')
run: ./bbt-jhove
shell: bash
- name: Test with Maven
if: (matrix.java-version == 8)
run: mvn --batch-mode verify -DjacocoAgg
- name: Upload coverage report
if: (matrix.java-version == 8)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: jhove-apps/target/site/jacoco-aggregate/
Expand All @@ -61,13 +60,17 @@ jobs:
- name: Codacy analysis reporting
uses: codacy/codacy-analysis-cli-action@4.0.0
- name: Download coverage report
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-report
path: jhove-apps/target/site/jacoco-aggregate/
- name: Codecov coverage reporting
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: jhove-apps/target/site/jacoco-aggregate/jacoco.xml
fail_ci_if_error: true # optional (default = false)
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
name: codecov-jhove
token: ${{ secrets.CODECOV_TOKEN }} # required


6 changes: 4 additions & 2 deletions jhove-apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
<parent>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</parent>

<artifactId>jhove-apps</artifactId>
<packaging>jar</packaging>
<version>1.30.1</version>


<name>JHOVE Applications</name>
<description>Classes and fat JAR packaging for CLI and GUI app.</description>
Expand Down Expand Up @@ -58,7 +60,7 @@
<dependency>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove-core</artifactId>
<version>${project.version}</version>
<version>1.30.0</version>
</dependency>
</dependencies>

Expand Down
8 changes: 4 additions & 4 deletions jhove-bbt/scripts/create-1.30-target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ find "${targetRoot}" -type f -name "audit.jhove.xml" -exec sed -i 's/outputHandl
find "${targetRoot}" -type f -name "audit.jhove.xml" -exec sed -i 's/outputHandler release="1.1">JSON/outputHandler release="1.2">JSON/' {} \;

# Update release details for PDF module
find "${targetRoot}" -type f -name "*.pdf.jhove.xml" -exec sed -i 's/^ <reportingModule release="1.12.4" date="2023-03-16">PDF-hul<\/reportingModule>$/ <reportingModule release="1.12.5" date="2024-03-05">PDF-hul<\/reportingModule>/' {} \;
find "${targetRoot}" -type f -name "audit.jhove.xml" -exec sed -i 's/^ <module release="1.12.4">PDF-hul<\/module>$/ <module release="1.12.5">PDF-hul<\/module>/' {} \;
find "${targetRoot}" -type f -name "audit-PDF-hul.jhove.xml" -exec sed -i 's/^ <release>1.12.4<\/release>$/ <release>1.12.5<\/release>/' {} \;
find "${targetRoot}" -type f -name "audit-PDF-hul.jhove.xml" -exec sed -i 's/2023-03-16/2024-03-05/' {} \;
find "${targetRoot}" -type f -name "*.pdf.jhove.xml" -exec sed -i 's/^ <reportingModule release="1.12.4" date="2023-03-16">PDF-hul<\/reportingModule>$/ <reportingModule release="1.12.6" date="2024-07-31">PDF-hul<\/reportingModule>/' {} \;
find "${targetRoot}" -type f -name "audit.jhove.xml" -exec sed -i 's/^ <module release="1.12.4">PDF-hul<\/module>$/ <module release="1.12.6">PDF-hul<\/module>/' {} \;
find "${targetRoot}" -type f -name "audit-PDF-hul.jhove.xml" -exec sed -i 's/^ <release>1.12.4<\/release>$/ <release>1.12.6<\/release>/' {} \;
find "${targetRoot}" -type f -name "audit-PDF-hul.jhove.xml" -exec sed -i 's/2023-03-16/2024-07-31/' {} \;

# Update release details for PNG module
find "${targetRoot}" -type f -name "*.png.jhove.xml" -exec sed -i 's/^ <reportingModule release="1.2" date="2023-03-16">PNG-gdm<\/reportingModule>$/ <reportingModule release="1.3" date="2024-03-05">PNG-gdm<\/reportingModule>/' {} \;
Expand Down
2 changes: 1 addition & 1 deletion jhove-bbt/scripts/travis-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi
[[ -d "${TARGET_ROOT}" ]] || mkdir -p "${TARGET_ROOT}"

# Grab the Major and Minor versions from the full Maven project version string
MVN_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
MVN_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec -f jhove-installer/pom.xml)
MAJOR_MINOR_VER="${MVN_VERSION%.*}"
JHOVE_INSTALLER="./jhove-installer/target/jhove-xplt-installer-${MVN_VERSION}.jar"

Expand Down
2 changes: 1 addition & 1 deletion jhove-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</parent>

<artifactId>jhove-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jhove-ext-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</parent>

<artifactId>jhove-ext-modules</artifactId>
Expand Down
7 changes: 4 additions & 3 deletions jhove-installer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<parent>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</parent>

<artifactId>jhove-installer</artifactId>
<version>1.30.1</version>
<name>JHOVE Installer</name>
<description>Maven-built IzPack installer for JHOVE.</description>

Expand All @@ -24,7 +25,7 @@
<html.hul.version>1.4.3</html.hul.version>
<jpeg2000.hul.version>1.4.4</jpeg2000.hul.version>
<jpeg.hul.version>1.5.4</jpeg.hul.version>
<pdf.hul.version>1.12.5</pdf.hul.version>
<pdf.hul.version>1.12.6</pdf.hul.version>
<tiff.hul.version>1.9.4</tiff.hul.version>
<utf8.hul.version>1.7.3</utf8.hul.version>
<wave.hul.version>1.8.3</wave.hul.version>
Expand Down Expand Up @@ -174,7 +175,7 @@
<dependency>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove-ext-modules</artifactId>
<version>${project.version}</version>
<version>1.30.0</version>
</dependency>
<dependency>
<groupId>org.openpreservation.jhove.modules</groupId>
Expand Down
4 changes: 2 additions & 2 deletions jhove-installer/src/main/izpack/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
</pack>
<pack name="JHOVE External Modules" required="no">
<description>Third-party validation modules developed for JHOVE, currently GZIP, PNG and WARC.</description>
<file targetdir="$INSTALL_PATH/bin" src="bin/jhove-ext-modules-${project.version}.jar"/>
<executable targetfile="$INSTALL_PATH/bin/jhove-ext-modules-${project.version}.jar"/>
<file targetdir="$INSTALL_PATH/bin" src="bin/jhove-ext-modules-1.30.0.jar"/>
<executable targetfile="$INSTALL_PATH/bin/jhove-ext-modules-1.30.0.jar"/>
<file targetdir="$INSTALL_PATH/conf" override="true" src="config/ext-modules/jhove.conf"/>
<parsable targetfile="$INSTALL_PATH/conf/jhove.conf" type="xml"/>
</pack>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/aiff-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>aiff-hul</artifactId>
<version>1.6.2</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/ascii-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>ascii-hul</artifactId>
<version>1.4.2</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/gif-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>gif-hul</artifactId>
<version>1.4.3</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/html-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>html-hul</artifactId>
<version>1.4.3</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/jpeg-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>jpeg-hul</artifactId>
<version>1.5.4</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/jpeg2000-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>jpeg2000-hul</artifactId>
<version>1.4.4</version>
Expand Down
4 changes: 2 additions & 2 deletions jhove-modules/pdf-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>pdf-hul</artifactId>
<version>1.12.5</version>
<version>1.12.6</version>
<name>JHOVE PDF Module HUL</name>
<description>PDF module developed by Harvard University Library</description>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ public class PdfModule extends ModuleBase {
******************************************************************/

private static final String NAME = "PDF-hul";
private static final String RELEASE = "1.12.5";
private static final int[] DATE = { 2024, 03, 05 };
private static final String RELEASE = "1.12.6";
private static final int[] DATE = { 2024, 07, 31 };
private static final String[] FORMAT = { "PDF",
"Portable Document Format" };
private static final String COVERAGE = "PDF 1.0-1.6; "
Expand Down Expand Up @@ -3502,6 +3502,7 @@ protected void addDestination(PdfObject itemObj, String propName,
JhoveMessages.getMessageInstance(
e.getJhoveMessage().getId(), e.getJhoveMessage().getMessage(),
e.getJhoveMessage().getSubMessage())));
info.setValid(false);
}
} catch (Exception e) {

Expand Down
5 changes: 3 additions & 2 deletions jhove-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
<parent>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</parent>

<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<packaging>pom</packaging>
<version>1.30.1</version>
<name>JHOVE Validation Modules</name>
<description>The JHOVE HUL validation modules.</description>

<dependencies>
<dependency>
<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove-core</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/tiff-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>tiff-hul</artifactId>
<version>1.9.4</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/utf8-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>utf8-hul</artifactId>
<version>1.7.3</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/wave-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>wave-hul</artifactId>
<version>1.8.3</version>
Expand Down
2 changes: 1 addition & 1 deletion jhove-modules/xml-hul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openpreservation.jhove.modules</groupId>
<artifactId>jhove-modules</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.1</version>
</parent>
<artifactId>xml-hul</artifactId>
<version>1.5.4</version>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>org.openpreservation.jhove</groupId>
<artifactId>jhove</artifactId>
<version>1.30.0-RC1</version>
<version>1.30.0</version>
<packaging>pom</packaging>

<name>JHOVE - JSTOR/Harvard Object Validation Environment</name>
Expand Down

0 comments on commit 0f43f09

Please sign in to comment.