Skip to content

Commit 7546954

Browse files
committed
Merge remote-tracking branch 'origin/master' into rel_8_1_tracking
2 parents 71d8b6c + 7e7fa44 commit 7546954

File tree

5 files changed

+55
-22
lines changed

5 files changed

+55
-22
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,51 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- name: Checkout project
24-
uses: actions/checkout@v4
25-
- name: Set up JDK 17
26-
uses: actions/setup-java@v3
27-
with:
28-
java-version: 17
29-
distribution: zulu
30-
- name: Build with Maven
31-
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
32-
- name: Docker Pull HTTP client
33-
run: docker pull jetbrains/intellij-http-client
34-
- name: Start server with jetty
35-
run: |
36-
mvn -P jetty spring-boot:run & export JPA_PROCESS=$!
37-
sleep 80
38-
- name: Execute smoke tests
39-
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default
40-
41-
23+
- name: Checkout project
24+
uses: actions/checkout@v4
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: 17
30+
distribution: zulu
31+
32+
- name: Build with Maven
33+
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
34+
35+
- name: Docker Pull HTTP client
36+
run: docker pull jetbrains/intellij-http-client
37+
38+
- name: Start server with jetty
39+
run: |
40+
mkdir -p logs
41+
mvn -P jetty spring-boot:run | tee logs/server.log &
42+
sleep 80
43+
44+
- name: Execute smoke tests
45+
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default
46+
47+
- name: Show last server logs
48+
if: always()
49+
run: |
50+
echo "===== Last 200 Lines of Server Log ====="
51+
tail -n 200 logs/server.log || true
52+
53+
- name: Highlight server errors
54+
if: always()
55+
run: |
56+
echo "===== Highlighted Server Errors ====="
57+
if grep 'ERROR' logs/server.log > /dev/null; then
58+
grep 'ERROR' logs/server.log | while read -r line; do
59+
echo "::error::${line}"
60+
done
61+
else
62+
echo "No errors found in server logs."
63+
fi
64+
65+
- name: Upload server logs
66+
if: always()
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: server-logs
70+
path: logs/server.log

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<properties>
77
<java.version>17</java.version>
88
<hapi.fhir.jpa.server.starter.revision>1</hapi.fhir.jpa.server.starter.revision>
9-
<clinical-reasoning.version>3.19.0</clinical-reasoning.version>
9+
<clinical-reasoning.version>3.20.0</clinical-reasoning.version>
1010
</properties>
1111

1212
<!-- one-liner to take you to the cloud with settings form the application.yaml file: -->

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public static class Partitioning {
855855
private Boolean database_partition_mode_enabled = false;
856856
private Boolean patient_id_partitioning_mode = false;
857857
private Integer default_partition_id = 0;
858-
private boolean request_tenant_partitioning_mode;
858+
private boolean request_tenant_partitioning_mode = true;
859859

860860
public boolean isRequest_tenant_partitioning_mode() {
861861
return request_tenant_partitioning_mode;

src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
156156

157157
jpaStorageSettings.setPreExpandValueSets(appProperties.getPre_expand_value_sets());
158158
jpaStorageSettings.setEnableTaskPreExpandValueSets(appProperties.getEnable_task_pre_expand_value_sets());
159-
jpaStorageSettings.setPreExpandValueSetsDefaultCount(appProperties.getPre_expand_value_sets_default_count());
160159
jpaStorageSettings.setPreExpandValueSetsMaxCount(appProperties.getPre_expand_value_sets_max_count());
160+
jpaStorageSettings.setPreExpandValueSetsDefaultCount(appProperties.getPre_expand_value_sets_default_count());
161161
jpaStorageSettings.setMaximumExpansionSize(appProperties.getMaximum_expansion_size());
162162

163163
jpaStorageSettings.setIndexMissingFields(

src/main/resources/application.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ server:
33
# servlet:
44
# context-path: /example/path
55
port: 8080
6+
tomcat:
7+
# allow | as a separator in the URL
8+
relaxed-query-chars: "|"
69
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
710
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
811
management:
@@ -237,6 +240,7 @@ hapi:
237240
# allow_references_across_partitions: false
238241
# partitioning_include_in_search_hashes: false
239242
# conditional_create_duplicate_identifiers_enabled: false
243+
# request_tenant_partitioning_mode: true
240244
cors:
241245
allow_Credentials: true
242246
# These are allowed_origin patterns, see: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html#setAllowedOriginPatterns-java.util.List-

0 commit comments

Comments
 (0)