Commit 31ead9c
Fix duplicate plugin application, simplify CI to use JDK 11, and fix DTS emulator connectivity (#248)
* Initial plan
* Initial plan
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Fix 'default messager has already been registered' warning
- Remove duplicate plugin application in samples-azure-functions/build.gradle
- Remove duplicate plugin application in endtoendtests/build.gradle
- Move 'java' plugin to plugins block
- Upgrade azure-functions plugin from 1.11.1 to 1.16.1
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Revert unintended changes to orchestrator_service.proto
The proto file was accidentally modified by the downloadProtoFiles task
during the build. This reverts it to the original state.
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Revert plugin version to 1.11.1 to fix Gradle 7.4 compatibility
The azure-functions plugin 1.16.1 brings in jackson-core 2.17.0 which
contains Java 21 class files that Gradle 7.4's ASM cannot handle.
Keep the duplicate plugin application removal fix which helps reduce
the "default messager" warning.
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Fix SpotBugs Java version - run with JDK 11
SpotBugs 4.9.2 requires Java 11+ (class file version 55.0) but the
workflow was running it with Java 8. Updated workflow to use JDK_11
environment variable for SpotBugs tasks.
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Fix SpotBugs - run build task with JDK 11 too
SpotBugs runs as part of the 'build' task, not just in the explicit
SpotBugs step. Updated the build step to also use JDK_11 since
SpotBugs 4.9.2 requires Java 11+.
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Update all CI jobs to use JDK 11
- Updated Integration Tests to use JDK_11
- Updated functions-e2e-tests job to use JDK 11 instead of JDK 8
- Updated functions-sample-tests job to use JDK 11 instead of JDK 8
Regarding Gradle 8.0: Upgrading would require also updating the
protobuf plugin from 0.8.16 to 0.9.x for full compatibility, which
is a larger change that could be done in a separate PR.
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Fix DTS emulator connectivity with proper health check loop
Replace fixed 10-second sleep with a robust health check that:
- Actively polls port 4001 using nc until the emulator is ready
- Allows up to 60 seconds for the emulator to start
- Provides better error diagnostics if startup fails
- Adds 5 extra seconds after port is open for gRPC initialization
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Use bash /dev/tcp for more portable health check
Address code review feedback:
- Replace nc with bash's /dev/tcp for portability
- Rename max_attempts to MAX_WAIT_SECONDS with comment
- Add comment explaining the TCP check mechanism
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
* Simplify Java setup: remove JDK 8, use only JDK 11
- Remove JDK 8 setup since it's not needed
- Remove JDK_11 environment variable workaround
- Remove all `export JAVA_HOME=$JDK_11` lines
- Upgrade setup-java from v2 to v4 in all jobs
- Workflow now uses only JDK 11 throughout
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: torosent <17064840+torosent@users.noreply.github.com>1 parent 8d927d8 commit 31ead9c
3 files changed
Lines changed: 36 additions & 31 deletions
File tree
- .github/workflows
- endtoendtests
- samples-azure-functions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| |||
56 | 45 | | |
57 | 46 | | |
58 | 47 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 48 | + | |
62 | 49 | | |
63 | 50 | | |
64 | 51 | | |
| |||
77 | 64 | | |
78 | 65 | | |
79 | 66 | | |
80 | | - | |
| 67 | + | |
81 | 68 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
123 | | - | |
124 | | - | |
| 130 | + | |
| 131 | + | |
125 | 132 | | |
126 | | - | |
127 | | - | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
| |||
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
162 | | - | |
163 | | - | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | | - | |
166 | | - | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments