Skip to content

Commit 85b7b05

Browse files
authored
Merge pull request #2 from JoshVanL/merge-microsoft
Merge microsoft
2 parents 74ed2cf + 5a1e9b4 commit 85b7b05

File tree

50 files changed

+3999
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3999
-108
lines changed

.github/workflows/build-validation.yml

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
with:
24-
submodules: true
2523

2624
- name: Set up JDK 11
2725
uses: actions/setup-java@v2
@@ -44,40 +42,84 @@ jobs:
4442
uses: gradle/gradle-build-action@v2
4543

4644
- name: Build with Gradle
47-
run: ./gradlew build
45+
run: ./gradlew build -x test
46+
47+
- name: Run SpotBugs
48+
run: ./gradlew spotbugsMain spotbugsTest
49+
continue-on-error: false
50+
51+
- name: Upload SpotBugs reports
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: SpotBugs Reports
55+
path: '**/build/reports/spotbugs'
56+
if-no-files-found: ignore
57+
58+
- name: Run Unit Tests with Gradle
59+
run: |
60+
export JAVA_HOME=$JDK_11
61+
./gradlew clean test || echo "UNIT_TEST_FAILED=true" >> $GITHUB_ENV
62+
continue-on-error: true
63+
64+
- name: Upload test reports if tests failed
65+
if: env.UNIT_TEST_FAILED == 'true'
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: Unit Test Reports
69+
path: '**/build/reports/tests/test'
70+
if-no-files-found: ignore # Prevents errors if no reports exist
71+
72+
- name: Fail the job if unit tests failed
73+
if: env.UNIT_TEST_FAILED == 'true'
74+
run: exit 1
4875

4976
# TODO: Move the sidecar into a central image repository
5077
- name: Initialize Durable Task Sidecar
51-
run: docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' -d kaibocai/durabletask-sidecar:latest start --backend Emulator
78+
run: docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' -d peterstone2019/durabletask-sidecar:latest start --backend Emulator
79+
80+
- name: Display Durable Task Sidecar Logs
81+
run: nohup docker logs --since=0 durabletask-sidecar > durabletask-sidecar.log 2>&1 &
5282

5383
# wait for 10 seconds, so sidecar container can be fully up, this will avoid intermittent failing issues for integration tests causing by failed to connect to sidecar
5484
- name: Wait for 10 seconds
5585
run: sleep 10
5686

5787
- name: Integration Tests with Gradle
58-
run: ./gradlew integrationTest
88+
run: ./gradlew integrationTest || echo "TEST_FAILED=true" >> $GITHUB_ENV
89+
continue-on-error: true
90+
91+
- name: Kill Durable Task Sidecar
92+
run: docker kill durabletask-sidecar
93+
94+
- name: Upload Durable Task Sidecar Logs
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: Durable Task Sidecar Logs
98+
path: durabletask-sidecar.log
5999

60100
- name: Archive test report
61-
uses: actions/upload-artifact@v2
101+
uses: actions/upload-artifact@v4
62102
with:
63103
name: Integration test report
64104
path: client/build/reports/tests/integrationTest
65105

66106
- name: Upload JAR output
67-
uses: actions/upload-artifact@v2
107+
uses: actions/upload-artifact@v4
68108
with:
69109
name: Package
70110
path: client/build/libs
71111

112+
- name: Fail the job if tests failed
113+
if: env.TEST_FAILED == 'true'
114+
run: exit 1
115+
72116
functions-e2e-tests:
73117

74118
needs: build
75119
runs-on: ubuntu-latest
76120

77121
steps:
78122
- uses: actions/checkout@v2
79-
with:
80-
submodules: true
81123

82124
- name: Set up JDK 8
83125
uses: actions/setup-java@v2
@@ -89,7 +131,7 @@ jobs:
89131
uses: gradle/gradle-build-action@v2
90132

91133
- name: Publish to local
92-
run: ./gradlew publishToMavenLocal -x sign
134+
run: ./gradlew publishToMavenLocal -PskipSigning
93135

94136
- name: Build azure functions sample
95137
run: ./gradlew azureFunctionsPackage
@@ -105,7 +147,7 @@ jobs:
105147
arguments: endToEndTest
106148

107149
- name: Archive test report
108-
uses: actions/upload-artifact@v2
150+
uses: actions/upload-artifact@v4
109151
with:
110152
name: Integration test report
111153
path: client/build/reports/tests/endToEndTest
@@ -117,8 +159,6 @@ jobs:
117159

118160
steps:
119161
- uses: actions/checkout@v2
120-
with:
121-
submodules: true
122162

123163
- name: Set up JDK 8
124164
uses: actions/setup-java@v2
@@ -130,7 +170,7 @@ jobs:
130170
uses: gradle/gradle-build-action@v2
131171

132172
- name: Publish to local
133-
run: ./gradlew publishToMavenLocal -x sign
173+
run: ./gradlew publishToMavenLocal -PskipSigning
134174

135175
- name: Build azure functions sample
136176
run: ./gradlew azureFunctionsPackage
@@ -146,7 +186,7 @@ jobs:
146186
arguments: sampleTest
147187

148188
- name: Archive test report
149-
uses: actions/upload-artifact@v2
189+
uses: actions/upload-artifact@v4
150190
with:
151191
name: Integration test report
152192
path: client/build/reports/tests/endToEndTest

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ build/
66
.project
77
.settings
88
.classpath
9-
repo/
9+
repo/
10+
11+
# Ignore sample application properties or any other properties files used for sample
12+
samples/src/main/resources/*.properties

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## placeholder
1+
## v1.5.1
2+
* Improve logging for unexpected connection failures in DurableTaskGrpcWorker ([#216](https://github.com/microsoft/durabletask-java/pull/216/files))
3+
* Add User-Agent Header to gRPC Metadata ([#213](https://github.com/microsoft/durabletask-java/pull/213))
4+
* Update protobuf definitions to include new properties in OrchestratorRequest and update source commit hash ([#214](https://github.com/microsoft/durabletask-java/pull/214))
5+
* DTS Support ([#201](https://github.com/microsoft/durabletask-java/pull/201))
6+
* Add automatic proto file download and commit hash tracking during build ([#207](https://github.com/microsoft/durabletask-java/pull/207))
27
* Fix infinite loop when use continueasnew after wait external event ([#183](https://github.com/microsoft/durabletask-java/pull/183))
38
* Fix the issue "Deserialize Exception got swallowed when use anyOf with external event." ([#185](https://github.com/microsoft/durabletask-java/pull/185))
49

CODEOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#
77

88
#
9-
# AZURE FUNCTIONS TEAM
109
# For all file changes, github would automatically include the following people in the PRs.
1110
#
12-
* @cgillum @kaibocai @shreyas-gopalakrishna
11+
* @microsoft/durabletask

azdevops-pipeline/build-release-artifacts.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pool:
1010

1111
steps:
1212
- checkout: self
13-
submodules: true
1413

1514
- task: Gradle@3
1615
inputs:

azurefunctions/build.gradle

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ plugins {
22
id 'java-library'
33
id 'maven-publish'
44
id 'signing'
5+
id 'com.github.spotbugs' version '5.2.1'
56
}
67

78
group 'com.microsoft'
8-
version = '1.5.0'
9+
version = '1.5.1'
910
archivesBaseName = 'durabletask-azure-functions'
1011

1112
def protocVersion = '3.12.0'
@@ -76,12 +77,44 @@ publishing {
7677
}
7778
}
7879

79-
// TODO: manual signing temporarily disabled, in favor of 1ES signing utils
80-
//signing {
81-
// sign publishing.publications.mavenJava
82-
//}
80+
signing {
81+
required = !project.hasProperty("skipSigning")
82+
sign publishing.publications.mavenJava
83+
}
8384

8485
java {
8586
withSourcesJar()
8687
withJavadocJar()
8788
}
89+
90+
spotbugs {
91+
toolVersion = '4.9.2'
92+
effort = 'max'
93+
reportLevel = 'high'
94+
ignoreFailures = true
95+
excludeFilter = file('spotbugs-exclude.xml')
96+
}
97+
98+
spotbugsMain {
99+
reports {
100+
html {
101+
required = true
102+
stylesheet = 'fancy-hist.xsl'
103+
}
104+
xml {
105+
required = true
106+
}
107+
}
108+
}
109+
110+
spotbugsTest {
111+
reports {
112+
html {
113+
required = true
114+
stylesheet = 'fancy-hist.xsl'
115+
}
116+
xml {
117+
required = true
118+
}
119+
}
120+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter>
3+
<!-- Exclude test classes -->
4+
<Match>
5+
<Class name="~.*Test"/>
6+
</Match>
7+
8+
<!-- Exclude common false positives -->
9+
<Match>
10+
<BugPattern name="DM_CONVERT_CASE"/>
11+
</Match>
12+
13+
<!-- Exclude serialization related warnings -->
14+
<Match>
15+
<BugPattern name="SE_NO_SERIALVERSIONID"/>
16+
</Match>
17+
</FindBugsFilter>

0 commit comments

Comments
 (0)