Skip to content
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

REL 1.26 - Merge release to master branch #400

Merged
merged 65 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
21aca5a
Revert "RC - v1.24"
MaximPlusov Apr 27, 2023
9b7b538
Merge pull request #363 from veraPDF/revert-362-prerelease1.24
MaximPlusov Apr 27, 2023
1cf941e
Update release notes and installer
MaximPlusov Apr 28, 2023
3bbbbc8
Merge pull request #365 from veraPDF/update_installer
MaximPlusov Apr 28, 2023
2b45f90
Refactor AppConfig and ConfigManager
May 23, 2023
abe9ce3
Merge pull request #367 from veraPDF/move-app-config
MaximPlusov May 26, 2023
da95164
Add workflow for updating arlington branch
MaximPlusov Jun 6, 2023
8146d47
Update readme
MaximPlusov Jun 9, 2023
f5fc8b2
Merge pull request #369 from veraPDF/update_readme
MaximPlusov Jun 12, 2023
28157b7
Update exitStatusFromSummary
MaximPlusov Jun 19, 2023
12b884b
Merge pull request #368 from veraPDF/update_arlington
MaximPlusov Jun 19, 2023
43c163c
Fix NullPointerException
MaximPlusov Jun 22, 2023
0299b2a
DEV: v1.25
MaximPlusov Jun 23, 2023
504aea5
Merge pull request #373 from veraPDF/update_dev
MaximPlusov Jun 23, 2023
613657f
Merge pull request #372 from veraPDF/fix_null_exception
MaximPlusov Jun 26, 2023
e3d70e7
Merge pull request #370 from veraPDF/exit_status
MaximPlusov Jun 26, 2023
5347846
Update readme
MaximPlusov Jun 27, 2023
fbc0c78
Merge pull request #376 from veraPDF/update_readme
MaximPlusov Jun 28, 2023
93c9f74
Update readme
MaximPlusov Jul 7, 2023
eb0a49d
Merge pull request #377 from veraPDF/update_readme
MaximPlusov Jul 7, 2023
9f785b4
Remove 'error' from possibleValues of 'extract' option in help
MaximPlusov Jul 18, 2023
ab580f7
Merge pull request #378 from veraPDF/extract_error
MaximPlusov Jul 18, 2023
4cc5d20
Add tooltip to GUI
MaximPlusov Sep 5, 2023
b369d97
Add tooltip to GUI
MaximPlusov Sep 11, 2023
4895b00
Merge pull request #379 from veraPDF/gui_improvements
MaximPlusov Sep 25, 2023
efcf493
Update GUI
MaximPlusov Sep 19, 2023
5b6c3f0
Merge pull request #380 from veraPDF/gui_improvements
MaximPlusov Sep 27, 2023
8de3e62
Remove fixId from MetadataFixerConfig
MaximPlusov Sep 27, 2023
9b923cc
Merge pull request #381 from veraPDF/fixer_config
MaximPlusov Sep 28, 2023
e9f73a2
Fix checking updates in gui
MaximPlusov Oct 25, 2023
1cfb2da
Merge pull request #382 from veraPDF/checking_updates
MaximPlusov Oct 26, 2023
62bc4c9
Refactoring
MaximPlusov Dec 7, 2023
311c5f3
Merge pull request #383 from veraPDF/refactoring
MaximPlusov Dec 11, 2023
5074110
Update specification family type
MaximPlusov Dec 13, 2023
6b9dae3
Merge pull request #384 from veraPDF/specification_family
MaximPlusov Dec 13, 2023
dcc6e16
Fix config option
MaximPlusov Dec 15, 2023
c19fd7d
Merge pull request #385 from veraPDF/config_policy
MaximPlusov Dec 18, 2023
e1b6d06
Replace createProcessConfig methods calls
MaximPlusov Jan 12, 2024
34c1b44
Merge pull request #386 from veraPDF/refactoring
MaximPlusov Jan 16, 2024
fc3fb18
ci: add jdk21 support
chenrui333 Jan 19, 2024
d9ba562
chore: remove travis config
chenrui333 Jan 19, 2024
f0742dc
Merge pull request #388 from chenrui333/remove-travis-config
MaximPlusov Jan 24, 2024
5e2afb4
Merge pull request #387 from chenrui333/jdk21
MaximPlusov Jan 24, 2024
49253f3
workflows: use `actions/checkout@v4` (nodejs 20 runtime)
chenrui333 Jan 25, 2024
de6cf28
workflows: use `actions/setup-java@v4` (nodejs 20 runtime)
chenrui333 Jan 25, 2024
7ee2e33
workflows: use `actions/upload-artifact@v4` (nodejs 20 runtime)
chenrui333 Jan 25, 2024
33a9b56
workflows: use `actions/download-artifact@v4` (nodejs 20 runtime)
chenrui333 Jan 25, 2024
fa15f3e
Merge pull request #389 from chenrui333/update-actions
MaximPlusov Jan 29, 2024
0412eac
Update veraPDFPDFAConformanceCheckerGUI.pdf
bdoubrov Feb 2, 2024
88c4ac1
Merge branch 'integration' of https://github.com/veraPDF/veraPDF-apps…
bdoubrov Feb 2, 2024
47c288b
GUI. Update text rendering on about panel
MaximPlusov Feb 2, 2024
a057856
Updated actions, other jobs are not canceled on fail
ProxyNexus Feb 6, 2024
078ea52
Merge pull request #391 from veraPDF/workflow-fix
MaximPlusov Feb 7, 2024
4d81a91
RC - v1.26
MaximPlusov Feb 9, 2024
ee0e7b5
Merge pull request #392 from veraPDF/prerelease1.26
MaximPlusov Feb 9, 2024
43d4d3d
Merge pull request #390 from veraPDF/about_panel
MaximPlusov Feb 12, 2024
b20bf49
Update trigger increment workflow
ekaterina-chubrick Mar 21, 2024
a028ef4
Merge pull request #394 from veraPDF/update-workflow
KateOrient Mar 21, 2024
88c35fe
Updated build dependecies (for java 21 version support)
ProxyNexus Mar 22, 2024
831b03c
Merge pull request #395 from veraPDF/java21-support
MaximPlusov Mar 22, 2024
664a2e6
Make public cli options string constants
MaximPlusov Mar 24, 2024
5229e4e
Merge pull request #396 from veraPDF/integration
MaximPlusov Mar 28, 2024
f5775f6
REL 1.26 - Update veraPDFPDFAConformanceCheckerGUI.pdf
MaximPlusov May 18, 2024
1d099ad
REL - Release v1.26
MaximPlusov May 18, 2024
225c64c
Merge branch 'master' into rel/1.26
MaximPlusov May 20, 2024
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
27 changes: 15 additions & 12 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:
jobs:
build:
name: Checkout and Build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

continue-on-error: true

strategy:
fail-fast: false
matrix:
java-version: [8, 11, 16, 17]
java-version: [8, 11, 16, 17, 21]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
Expand All @@ -25,42 +28,42 @@ jobs:
run: mvn --batch-mode --update-snapshots -Dmaven.javadoc.skip=true -V -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dmaven.wagon.http.pool=false verify
- name: Upload greenfield coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: greenfield-report
path: greenfield-apps/target/site/jacoco/
- name: Upload GUI coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: gui-report
path: gui/target/site/jacoco/
- name: Upload PDFBox coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
name: pdfbox-report
path: pdfbox-apps/target/site/jacoco/

coverage:
name: Quality Assurance
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [ build ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download greenfield coverage report
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: greenfield-report
path: greenfield-apps/target/site/jacoco/
- name: Download GUI coverage report
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: gui-report
path: gui/target/site/jacoco/
- name: Download PDFBox coverage report
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: pdfbox-report
path: pdfbox-apps/target/site/jacoco/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/trigger-increment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
trigger_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 1.11
Expand All @@ -22,8 +22,8 @@ jobs:
github-token: ${{ secrets.WORKFLOW_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'veraPDF',
repo: 'verapdf-webapp-server',
owner: 'duallab',
repo: 'pdf4wcag-webapp-server',
workflow_id: 'version-auto-increment.yml',
ref: 'master'
ref: 'integration'
})
4 changes: 2 additions & 2 deletions .github/workflows/trigger-regression-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
trigger_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 1.11
Expand All @@ -25,5 +25,5 @@ jobs:
owner: 'veraPDF',
repo: 'verapdf-integration-tests',
workflow_id: 'run-pdfa-tests-workflow.yml',
ref: 'rel/1.24'
ref: 'rel/1.26'
})
90 changes: 90 additions & 0 deletions .github/workflows/update-arlington-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Update arlington branch

on:
push:
branches:
- integration

jobs:
checkout-and-build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [11, 16, 17, 21]

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: integration
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Fetch arlington branch and checkout
run: |
git fetch origin arlington:arlington
git checkout -b test-branch arlington
- name: Configure user name
run: |
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to the test branch
run: git cherry-pick -m 1 ${{ github.sha }}
- name: Build project with Maven
if: success()
run: mvn --batch-mode --update-snapshots verify

merge:
runs-on: ubuntu-latest
needs: checkout-and-build
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: integration
- name: Generate new branch name
id: new-branch-name
run: echo "branch_name=new-branch-$(date +%s)" >> "$GITHUB_OUTPUT"
- name: Fetch arlington branch and checkout
run: |
git fetch origin arlington:arlington
git checkout -b ${{ steps.new-branch-name.outputs.branch_name }} arlington
- name: Configure user name
run: |
git config user.name "Git User"
git config user.email "[email protected]"
- name: Add commit to new branch
run: git cherry-pick -m 1 ${{ github.sha }}
- name: Merge branch into arlington
if: success()
run: |
git push origin ${{ steps.new-branch-name.outputs.branch_name }}
git checkout arlington
git merge ${{ steps.new-branch-name.outputs.branch_name }}
git push origin arlington
- name: Delete new branch
run: git push origin --delete ${{ steps.new-branch-name.outputs.branch_name }}

send-notification:
runs-on: ubuntu-latest
needs: [checkout-and-build, merge]
if: |
always() &&
(contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'skipped') ||
contains(needs.*.result, 'cancelled'))
steps:
- name: Send notification if build or merge failed
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C03E3JJGLQL
status: FAILED
color: danger
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ veraPDF-apps
===============
*Command line and GUI industry supported PDF/A and PDF/UA Validation*

[![Build Status](https://jenkins.openpreservation.org/job/veraPDF/job/1.24/job/apps/badge/icon)](https://jenkins.openpreservation.org/job/veraPDF/job/1.24/job/apps/ "OPF Jenkins")
[![Build Status](https://jenkins.openpreservation.org/job/veraPDF/job/1.26/job/apps/badge/icon)](https://jenkins.openpreservation.org/job/veraPDF/job/1.26/job/apps/ "OPF Jenkins")
[![Maven Central](https://img.shields.io/maven-central/v/org.verapdf/verapdf-apps.svg)](https://repo1.maven.org/maven2/org/verapdf/verapdf-apps/ "Maven central")
[![CodeCov Coverage](https://img.shields.io/codecov/c/github/veraPDF/veraPDF-apps.svg)](https://codecov.io/gh/veraPDF/veraPDF-apps/ "CodeCov coverage")
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ac55527c6ac04c3ab57c932c85c9be4d)](https://app.codacy.com/gh/veraPDF/veraPDF-apps/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade "Codacy grade")
Expand All @@ -28,7 +28,7 @@ Quick Start

### veraPDF GUI
#### Download release version
You can download a Java-based installer for the latest veraPDF GUI release [from our download site](https://software.verapdf.org/rel/verapdf-installer.zip). The current installation process requires Java 8 - 17 to be pre-installed.
You can download a Java-based installer for the latest veraPDF GUI release [from our download site](https://software.verapdf.org/rel/verapdf-installer.zip). The current installation process requires Java 8 - 21 to be pre-installed.

#### Download latest development version
If you want to try the latest development version you can obtain it from our [development download site](https://software.verapdf.org/dev/verapdf-installer.zip). Be aware that we release development snapshots regularly, often more than once a day. While we try to ensure that development builds are well tested there are no guarantees.
Expand All @@ -37,22 +37,22 @@ If you want to try the latest development version you can obtain it from our [de
Once downloaded unzip the archive which contains the installer jar with batch and shell scripts to launch, the zip contents are as follows:

verapdf-${project.version}/verapdf-install.bat
verapdf-${project.version}/verapdf-install.sh
verapdf-${project.version}/verapdf-install
verapdf-${project.version}/verapdf-izpack-installer-${project.version}.jar

Where `${project.version}` is the last development or release version.

Windows users should run the 'verapdf-install.bat' dos batch file, while Linux and OSX users should run the shell script, `verapdf-install.sh`. It's possible to run the installer directly on any platform:
Windows users should run the 'verapdf-install.bat' batch file, while Linux and OSX users should run the shell script, `verapdf-install`. It's possible to run the installer directly on any platform:

java - jar <path-to-installer-jar>/verapdf-izpack-installer-${project.version}.jar
java -jar <path-to-installer-jar>/verapdf-izpack-installer-${project.version}.jar

#### Linux full command line download and install
Linux users can download and execute the veraPDF installer using the following commands:

wget http://downloads.verapdf.org/rel/verapdf-installer.zip
unzip verapdf-installer.zip
cd verapdf-<version>
./verapdf-install.sh
./verapdf-install

#### veraPDF GUI manual
We've prepared a manual for the GUI which is included in the library project and can be [downloaded from GitHub](https://github.com/veraPDF/veraPDF-apps/raw/integration/veraPDFPDFAConformanceCheckerGUI.pdf).
Expand All @@ -68,33 +68,35 @@ Building the veraPDF-apps from Source

In order to build this project you'll need:

* Java 8 - 17, which can be downloaded [from Oracle](https://www.oracle.com/technetwork/java/javase/downloads/index.html), or for Linux users [OpenJDK](https://openjdk.java.net/install/index.html).
* Java 8 - 21, which can be downloaded [from Oracle](https://www.oracle.com/technetwork/java/javase/downloads/index.html), or for Linux users [OpenJDK](https://openjdk.java.net/install/index.html).
* [Maven v3+](https://maven.apache.org/)

Life will be easier if you also use [Git](https://git-scm.com/) to obtain and manage the source.

### Building veraPDF
First you'll need to obtain a version of the veraPDF-apps source code. You can compile either the latest release version or the latest development source.

#### Downloading the latest release source
Use Git to clone the repository and ensure that the `master` branch is checked out:
```
git clone https://github.com/veraPDF/veraPDF-apps
git checkout master
```

git clone https://github.com/veraPDF/veraPDF-apps
cd veraPDF-apps
git checkout master

or download the latest [tar archive](https://github.com/veraPDF/veraPDF-apps/archive/master.tar.gz "veraPDF-apps latest GitHub tar archive") or [zip archive](https://github.com/veraPDF/veraPDF-apps/archive/master.zip "veraPDF-apps latest GitHub zip archive") from GitHub.

#### Downloading the latest development source
Use Git to clone the repository and ensure that the `integration` branch is checked out:

git clone https://github.com/veraPDF/veraPDF-apps
cd veraPDF-apps
git checkout integration

or download the latest [tar archive](https://github.com/veraPDF/veraPDF-apps/archive/integration.tar.gz "veraPDF-apps latest GitHub tar archive") or [zip archive](https://github.com/veraPDF/veraPDF-apps/archive/integration.zip "veraPDF-apps latest GitHub zip archive") from GitHub.

#### Use Maven to compile the source
Move to the downloaded project directory and call Maven install:
Call Maven install:

cd veraPDF-apps
mvn clean install

#### Testing the build
Expand Down
2 changes: 1 addition & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See https://github.com/veraPDF/veraPDF-library/blob/rel/1.24/RELEASENOTES.md
See https://github.com/veraPDF/veraPDF-library/blob/integration/RELEASENOTES.md
2 changes: 1 addition & 1 deletion greenfield-apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.verapdf</groupId>
<artifactId>verapdf-apps</artifactId>
<version>1.24.0</version>
<version>1.26.0</version>
</parent>
<groupId>org.verapdf.apps</groupId>
<artifactId>greenfield-apps</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void shouldCreateXmlReportsInGivenDirectory() throws Exception {
List<Future<ValidationResult>> futureResult = startValidation(fileToValidate, numberOfThreads);
List<ValidationResult> validationResults = getValidationResult(futureResult);

Boolean isExpectedResults = compareResultsFromDifferentThreads(validationResults);
boolean isExpectedResults = compareResultsFromDifferentThreads(validationResults);

assertTrue(isExpectedResults);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.concurrent.Callable;

public class CallableValidatorForTest implements Callable<ValidationResult> {
private File fileToValidate;
private final File fileToValidate;

public CallableValidatorForTest(File fileToValidate) {
this.fileToValidate = fileToValidate;
Expand Down
2 changes: 1 addition & 1 deletion gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.verapdf</groupId>
<artifactId>verapdf-apps</artifactId>
<version>1.24.0</version>
<version>1.26.0</version>
</parent>

<groupId>org.verapdf.apps</groupId>
Expand Down
3 changes: 0 additions & 3 deletions gui/src/main/java/org/verapdf/apps/Applications.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ private static boolean areDirectoryFilesWritable(File directory) {
if (files == null) {
return Files.isWritable(directory.toPath());
}
if (files.length == 0) {
return true;
}
for (String fileName : files) {
if (!Files.isWritable(new File(directory + File.separator + fileName).toPath())) {
return false;
Expand Down
Loading
Loading