forked from bazelbuild/continuous-integration
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check in changes I made months before for the dashboard. The code are already running in production for months. Changes includes: - Upgrade to Spring Boot 3. - Upgrade to JDK19. - Use VirtualThread for web requests and replace almost all the async code with sync code.
- Loading branch information
Showing
53 changed files
with
1,193 additions
and
1,216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM azul/zulu-openjdk-alpine:11 | ||
FROM azul/zulu-openjdk-alpine:19 | ||
ARG DEPENDENCY=dependency | ||
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib | ||
COPY ${DEPENDENCY}/META-INF /app/META-INF | ||
COPY ${DEPENDENCY}/BOOT-INF/classes /app | ||
ENTRYPOINT ["java", "-cp", "/app:/app/lib/*", "build.bazel.dashboard.Application"] | ||
ENTRYPOINT ["java", "--enable-preview", "--add-modules=jdk.incubator.concurrent", "-Djdk.tracePinnedThreads", "-cp", "/app:/app/lib/*", "build.bazel.dashboard.Application"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
dashboard/server/src/main/java/build/bazel/dashboard/github/api/GithubApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
package build.bazel.dashboard.github.api; | ||
|
||
import io.reactivex.rxjava3.core.Single; | ||
|
||
public interface GithubApi { | ||
Single<GithubApiResponse> listRepositoryIssues(ListRepositoryIssuesRequest request); | ||
GithubApiResponse listRepositoryIssues(ListRepositoryIssuesRequest request); | ||
|
||
Single<GithubApiResponse> listRepositoryEvents(ListRepositoryEventsRequest request); | ||
GithubApiResponse listRepositoryEvents(ListRepositoryEventsRequest request); | ||
|
||
Single<GithubApiResponse> listRepositoryIssueEvents(ListRepositoryIssueEventsRequest request); | ||
GithubApiResponse listRepositoryIssueEvents(ListRepositoryIssueEventsRequest request); | ||
|
||
Single<GithubApiResponse> fetchIssue(FetchIssueRequest request); | ||
GithubApiResponse fetchIssue(FetchIssueRequest request); | ||
|
||
Single<GithubApiResponse> listIssueComments(ListIssueCommentsRequest request); | ||
GithubApiResponse listIssueComments(ListIssueCommentsRequest request); | ||
|
||
Single<GithubApiResponse> searchIssues(SearchIssuesRequest request); | ||
GithubApiResponse searchIssues(SearchIssuesRequest request); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
dashboard/server/src/main/java/build/bazel/dashboard/github/issue/GithubIssueRepo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package build.bazel.dashboard.github.issue; | ||
|
||
import io.reactivex.rxjava3.core.Completable; | ||
import io.reactivex.rxjava3.core.Maybe; | ||
import io.reactivex.rxjava3.core.Observable; | ||
import io.reactivex.rxjava3.core.Single; | ||
import java.util.Optional; | ||
|
||
public interface GithubIssueRepo { | ||
|
||
Completable save(GithubIssue githubIssue); | ||
void save(GithubIssue githubIssue); | ||
|
||
Completable delete(String owner, String repo, int issueNumber); | ||
void delete(String owner, String repo, int issueNumber); | ||
|
||
Maybe<GithubIssue> findOne(String owner, String repo, int issueNumber); | ||
Optional<GithubIssue> findOne(String owner, String repo, int issueNumber); | ||
|
||
Observable<GithubIssue> list(); | ||
|
||
Single<Integer> findMaxIssueNumber(String owner, String repo); | ||
Integer findMaxIssueNumber(String owner, String repo); | ||
} |
Oops, something went wrong.