Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Oct 11, 2023
2 parents 6dc8ec1 + 2392e8a commit 1420043
Show file tree
Hide file tree
Showing 359 changed files with 7,797 additions and 4,079 deletions.
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: 2
updates:
- package-ecosystem: "maven"
- package-ecosystem: maven
target-branch: "develop"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "saturday"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
target-branch: "develop"
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/java-bundled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Update java.bundled

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * SAT'

jobs:
update-mvn-property:
runs-on: ubuntu-latest
name: Update Maven property using the latest release version (tag) of a GitHub repository

env:
DEP_PROP: java.bundled.version
DEP_REPO: adoptium/temurin17-binaries

steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'

- name: Get latest release version
id: lr
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ env.DEP_REPO }}

- name: Apply latest release version on Maven property
run: >
mvn -B -ntp versions:set-property
-Dproperty=${{ env.DEP_PROP }}
-DnewVersion=${{ steps.lr.outputs.release }}
-DgenerateBackupPoms=false
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
commit-message: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }}
title: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }}
body: ${{ steps.lr.outputs.description }}
delete-branch: true
branch: PR/maven/${{ github.ref_name }}/${{ env.DEP_PROP }}-${{ steps.lr.outputs.release }}
labels: dependencies,java

- name: Create summary
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" >> $GITHUB_STEP_SUMMARY
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
4 changes: 2 additions & 2 deletions .github/workflows/java-ea-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ '-ea' ]
java: [ 20 ]
os: [ ubuntu-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/java-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ push, pull_request ]

jobs:
build-and-test-job:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
matrix:
Expand All @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
Expand All @@ -28,11 +28,31 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Pre-download dependencies with Maven
run: mvn -U -B -ntp dependency:go-offline

- name: Build and (headless) test with Maven
uses: smithki/xvfb-action@v1.1.2
with:
run: mvn -U -B -ntp package

auto-merge-job:
needs: build-and-test-job
if: startsWith(github.repository, 'jdemetra/') && github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
permissions:
contents: write
pull-requests: write

name: Auto-merge on dependabot PR
runs-on: ubuntu-latest

steps:
- name: Merge PR
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

snapshot-job:
needs: build-and-test-job
if: startsWith(github.repository, 'jdemetra/') && startsWith(github.ref, 'refs/heads/develop')
Expand All @@ -46,7 +66,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
Expand Down Expand Up @@ -96,7 +116,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
Expand Down
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [3.1.0] - 2023-10-11

### Changed

- ![OTHER] DeepSelect instead of Select to read MetaData with "." in key
- ![UI] Modify menus for reference specifications

### Fixed

- ![STAT] Correct deviances in diffuse likelihood
- ![STAT] Correct covariance of ARMA parameters in models with quasi-unit roots in AR
- ![UI] Save correctly modified multiprocessing
- ![UI] Fix non-removable star on data source nodes
- ![IO] Fix NPE in grid reader when header is null

### Added

- ![STAT] Add Poisson distribution
- ![OTHER] Serialize High-frequency series (modelling part)
- ![OTHER] Add auxiliary functions to simplify the use of JD+ from R
- ![OTHER] Add specifications and auxiliary functions for linear filters
- ![OTHER] Add default modelling for seasonal adjustment (STL...)
- ![OTHER] Add handling of time varying trading days
- ![UI] Add export of SA documents to Excel

## [3.0.2] - 2023-06-14

### Changed
Expand Down Expand Up @@ -39,7 +64,8 @@ Install instructions are available at https://github.com/jdemetra/jdplus-main#in
This is the **initial release** of JDemetra+ v3.0.0.
[Java SE 17 or later](https://whichjdk.com/) version is required to run it.

[Unreleased]: https://github.com/jdemetra/jd3-main/compare/v3.0.2...HEAD
[Unreleased]: https://github.com/jdemetra/jd3-main/compare/v3.1.0...HEAD
[3.1.0]: https://github.com/jdemetra/jd3-main/compare/v3.0.2...v3.1.0
[3.0.2]: https://github.com/jdemetra/jd3-main/compare/v3.0.1...v3.0.2
[3.0.1]: https://github.com/jdemetra/jd3-main/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/jdemetra/jd3-main/releases/tag/v3.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>jdplus-sa-base-parent</artifactId>
<version>3.0.2</version>
<version>3.1.0</version>
</parent>

<artifactId>jdplus-sa-base-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/
@lombok.Value
@lombok.Builder(builderClassName = "Builder", toBuilder = true)
@lombok.AllArgsConstructor(access=lombok.AccessLevel.PUBLIC)
public final class SaItem {

public static final String COMMENT = "comment";
Expand Down Expand Up @@ -151,6 +152,17 @@ public SaItem withTs(Ts ts) {
.build();
}

public SaItem withTsMetaData(Map<String, String> info) {
Ts cur = definition.getTs();
Ts ncur = cur.toBuilder().clearMeta()
.meta(info)
.build();
SaDefinition ndef = definition.toBuilder()
.ts(ncur)
.build();
return new SaItem(name, ndef, meta, priority, estimation, processed);
}

public void accept() {
synchronized (this) {
if (estimation == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
exports jdplus.sa.base.api.benchmarking;
exports jdplus.sa.base.api.diagnostics;
exports jdplus.sa.base.api.extractors;
exports jdplus.sa.base.api.modelling;
exports jdplus.sa.base.api;

uses SaProcessingFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>jdplus-sa-base-parent</artifactId>
<version>3.0.2</version>
<version>3.1.0</version>
</parent>

<artifactId>jdplus-sa-base-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private ModelDescription createTestModel(RegSarimaModelling context, ITradingDay
tmp.setAirline(true);
tmp.setMean(true);
if (td != null) {
tmp.addVariable(Variable.variable("td", td, ModelBuilder.calendarAMI));
tmp.addVariable(Variable.variable("td", td, ModelBuilder.calendarAMI));
}
if (lp != null) {
tmp.addVariable(Variable.variable("lp", lp, ModelBuilder.calendarAMI));
Expand Down
Loading

0 comments on commit 1420043

Please sign in to comment.