Skip to content

Commit

Permalink
Merge branch 'release/2022.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
PenghaiZhang committed Apr 10, 2022
2 parents 14d4aa9 + a9a671a commit bb1b564
Show file tree
Hide file tree
Showing 638 changed files with 42,544 additions and 70,253 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:
build_and_check:
runs-on: ubuntu-latest
steps:
# Using v1 (rather than v2) through-out this workflow due to issue:
# https://github.com/actions/checkout/issues/237
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: NPM Cache
uses: actions/cache@v2
Expand Down Expand Up @@ -55,12 +53,12 @@ jobs:
id: nvm

- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 8
Expand Down Expand Up @@ -119,7 +117,7 @@ jobs:
target/*.zip
- name: Save primary artefacts
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: Artefacts
path: artefacts.tar
Expand All @@ -129,7 +127,7 @@ jobs:
steps:
# Using v1 (rather than v2) through-out this workflow due to issue:
# https://github.com/actions/checkout/issues/237
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: NPM Cache
uses: actions/cache@v2
Expand All @@ -144,7 +142,7 @@ jobs:
id: nvm

- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

Expand All @@ -164,18 +162,18 @@ jobs:
tar cvf storybook.tar storybook-static
- name: Save Static Storybook instance
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: Storybook
path: react-front-end/storybook.tar

build_import_export_tool:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 8
Expand All @@ -186,7 +184,7 @@ jobs:
./gradlew build
- name: Save primary artefacts
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: ImportExportTools
path: import-export-tool/build/libs/
Expand All @@ -199,7 +197,7 @@ jobs:
strategy:
matrix:
newui: [true, false]
pgsql-image: [latest, 9.6]
pgsql-image: [latest, 10]
exclude:
- newui: false
pgsql-image: latest
Expand Down Expand Up @@ -239,24 +237,24 @@ jobs:
sudo ln -s /usr/bin/ffprobe /usr/bin/avprobe
- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 8

- uses: actions/checkout@v3

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- uses: actions/checkout@v2

- name: Download Artefacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: Artefacts
name: Artefacts
Expand Down Expand Up @@ -284,7 +282,7 @@ jobs:
- name: Save Scalacheck results
if: matrix.newui && failure()
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: ScalacheckReports
path: autotest/Tests/target/test-reports
Expand All @@ -296,21 +294,21 @@ jobs:
- name: Save TestNG Reports
if: failure()
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: TestNGReports-new-${{ matrix.newui }}
path: autotest/OldTests/target/testng

- name: Save oEQ Logs
if: failure()
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: oEQLogs-new-${{ matrix.newui }}
path: autotest/equella-install/logs

- name: Save Screenshots
if: failure()
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: Screenshots-new-${{ matrix.newui }}
path: autotest/Tests/target/test-reports/screenshots
Expand All @@ -328,7 +326,7 @@ jobs:
tar cvf coverage_report.tar autotest/target/coverage-report/
- name: Save Coverage Report
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: CoverageReport-newui-${{ matrix.newui }}
path: coverage_report.tar
Expand Down Expand Up @@ -358,7 +356,7 @@ jobs:
AUTOTEST_CONFIG: autotest/github-actions.conf

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install OS dependencies
run: |
Expand All @@ -372,7 +370,7 @@ jobs:
sudo ln -s /usr/bin/ffprobe /usr/bin/avprobe
- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 8
Expand All @@ -382,12 +380,12 @@ jobs:
id: nvm

- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Download installer
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: Artefacts
name: Artefacts
Expand Down Expand Up @@ -419,7 +417,7 @@ jobs:
- name: Save oEQ logs for REST Module
if: failure()
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.0.0
with:
name: oEQ-logs-rest-module
path: autotest/equella-install/logs
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.1
16.14.2
11 changes: 0 additions & 11 deletions Dev/docs/scaladb.md

This file was deleted.

2 changes: 1 addition & 1 deletion Dev/learningedge-config/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ prepareDevConfig := {
installerConfig / "hikari.properties"
).pair(rebase(installerConfig, baseDir))
val fromDefaults = Seq(
"learningedge-log4j.properties",
"learningedge-log4j.yaml",
"optional-config.properties",
"hibernate.properties"
).map(f => (defaultsDir / s"$f.default", baseDir / f))
Expand Down
22 changes: 22 additions & 0 deletions Dev/learningedge-config/defaults/learningedge-log4j.yaml.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Configuration:
status: debug

appenders:
Console:
name: CONSOLE
target: SYSTEM_OUT
Filters:
ThresholdFilter:
level: debug
RegexFilter:
regex: ".*(HHH90000022|HHH90000014).*"
onMatch: "DENY"
onMismatch: "NEUTRAL"
PatternLayout:
Pattern: "%d{ABSOLUTE} %-5p [%c{1}] %m%n"

Loggers:
Root:
level: info
AppenderRef:
- ref: CONSOLE
10 changes: 8 additions & 2 deletions Installer/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Path.relativeTo

libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "31.0.1-jre",
"org.slf4j" % "slf4j-simple" % "1.7.32",
"com.google.guava" % "guava" % "31.1-jre",
"commons-codec" % "commons-codec" % "1.15",
postgresDep,
sqlServerDep
Expand All @@ -23,6 +22,13 @@ excludeDependencies ++= Seq(
"stax" % "stax-api"
)

(assembly / assemblyMergeStrategy) := {
case "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}

(assembly / assemblyOption) := (assembly / assemblyOption).value.copy(includeScala = false)

(assembly / mainClass) := Some("com.dytech.edge.installer.application.Launch")
Expand Down
36 changes: 0 additions & 36 deletions Installer/data/server/conversion/all/log4j.properties

This file was deleted.

40 changes: 40 additions & 0 deletions Installer/data/server/conversion/all/log4j2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Configuration:
status: warn

properties:
property:
- name: filePath
value: "../logs/conversion-service"
- name: fileName
value: "${filePath}/conversion.html"
- name: filePattern
value: "${filePath}/%d{yyyy-MM-dd}/conversion-%i.html"

appenders:
RollingFile:
name: ROLLING_FILE
fileName: "${fileName}"
filePattern: "${filePattern}"
immediateFlush: true
append: true
Filters:
ThresholdFilter:
level: info
HTMLLayout:
title: TLE Service Manager
datePattern: ISO8601
locationInfo: true
Policies:
TimeBasedTriggeringPolicy:
interval: 1
modulate: true
SizeBasedTriggeringPolicy:
size: 10 MB
DefaultRollOverStrategy:
max: 20

Loggers:
Root:
level: debug
AppenderRef:
ref: ROLLING_FILE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
hibernate.connection.driver_class = com.microsoft.sqlserver.jdbc.SQLServerDriver
hibernate.dialect = com.tle.hibernate.dialect.SQLServerDialect
hibernate.connection.url = jdbc:sqlserver://${datasource/host}:${datasource/port};databaseName=${datasource/database}
hibernate.connection.url = jdbc:sqlserver://${datasource/host}:${datasource/port};databaseName=${datasource/database};trustServerCertificate=${datasource/trustservercerts}
hibernate.connection.username = ${datasource/username}
hibernate.connection.password = ${datasource/password}

Expand Down
Loading

0 comments on commit bb1b564

Please sign in to comment.