Skip to content

Commit

Permalink
[TEAMMATES#10929] Migrate Task Queue API and Logs API to GCP clients (T…
Browse files Browse the repository at this point in the history
…EAMMATES#10930)

* Change taskqueue API to Cloud Tasks API

* Add option to execute task queues immediately in dev server

* Use Cloud Logging API to read logs

* Add generated protobuf files for RequestLog

* Enable request logs to be parsed and processed

Co-authored-by: Ahmed Bahajjaj <[email protected]>
  • Loading branch information
wkurniawan07 and madanalogy authored Feb 15, 2021
1 parent 05562cc commit d32428b
Show file tree
Hide file tree
Showing 23 changed files with 9,623 additions and 77 deletions.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ coverage:
default:
# enforce manually; sometimes used codes are not "covered" e.g. client scripts
threshold: 100%

ignore:
- "src/main/java/com/google/appengine/logging/v1/*.java"
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {
classpath("cz.habarta.typescript-generator:typescript-generator-gradle-plugin:2.24.612") {
exclude group: "org.gradle"
}
classpath "com.google.guava:guava:29.0-jre"
classpath "com.google.guava:guava:30.1-jre"
}
}

Expand All @@ -54,6 +54,8 @@ dependencies {
annotationProcessor(objectify)

implementation("com.google.appengine:appengine-api-1.0-sdk:${appengineVersion}")
implementation("com.google.cloud:google-cloud-tasks:1.30.11")
implementation("com.google.cloud:google-cloud-logging:2.1.2")

// This dependency needs to be resolved individually
// because the main dependency (appengine-gcs-client) does not have its transitive dependencies up-to-date
Expand All @@ -68,7 +70,7 @@ dependencies {
implementation("com.google.apis:google-api-services-storage:v1-rev20200430-1.30.9")

implementation("com.google.code.gson:gson:2.8.6")
implementation("com.google.guava:guava:29.0-jre")
implementation("com.google.guava:guava:30.1-jre")
implementation(objectify)
implementation("com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20200615.1")
implementation("com.mailjet:mailjet-client:4.5.0")
Expand Down Expand Up @@ -319,6 +321,7 @@ spotbugs {
reportLevel = "low"
toolVersion = spotbugsVersion
includeFilter = file("$rootProject.projectDir/static-analysis/teammates-spotbugs.xml")
excludeFilter = file("$rootProject.projectDir/static-analysis/teammates-spotbugs-exclude.xml")
}

tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
Expand Down
Loading

0 comments on commit d32428b

Please sign in to comment.