Skip to content

Stabilize daemon resilience tests across Gradle working directories#460

Merged
tryigit merged 3 commits into
masterfrom
copilot/update-test-actions
Mar 8, 2026
Merged

Stabilize daemon resilience tests across Gradle working directories#460
tryigit merged 3 commits into
masterfrom
copilot/update-test-actions

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 8, 2026

service:testDebugUnitTest was failing in CI because DaemonCrashResilienceTest loaded module/template fixtures using a single relative path that only works when tests run from the repository root. The failure surfaced as FileNotFoundException in test setup, even though unrelated test stdout from CBOR/keybox tests appeared near the end of the log.

  • Root cause

    • DaemonCrashResilienceTest assumed a fixed working directory:
      • module/template/service.sh
      • module/template/daemon
    • In CI, the service module tests can run with service/ as the working directory, so those paths do not resolve.
  • Change

    • Added a small fixture resolver in DaemonCrashResilienceTest that loads files from either:
      • module/template/...
      • ../module/template/...
    • Kept the assertions and coverage intent unchanged; only fixture lookup was made location-independent.
  • Impact

    • Removes the CI-only path dependency from the daemon crash resilience tests.
    • Covers the current failure mode and similar module-vs-root working directory differences for the same fixture set.
private fun readModuleTemplateFile(name: String): String {
    val candidates = sequenceOf(
        File("module/template/$name"),
        File("../module/template/$name")
    )

    return candidates.firstOrNull(File::exists)?.readText()
        ?: error("Could not locate module/template/$name from ${File(".").absolutePath}")
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@appwrite
Copy link
Copy Markdown

appwrite Bot commented Mar 8, 2026

Yiğit

Project ID: 67b294d30004942511a5

Functions (1)
Function ID Status Logs
 Bootloader Hook 67b296050015d6532253 Queued Queued View Logs

Tip

HTTPS and SSL certificates are handled automatically for all your Sites

Copilot AI and others added 2 commits March 8, 2026 16:32
Co-authored-by: tryigit <40565628+tryigit@users.noreply.github.com>
Co-authored-by: tryigit <40565628+tryigit@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build errors in test actions Stabilize daemon resilience tests across Gradle working directories Mar 8, 2026
@tryigit tryigit marked this pull request as ready for review March 8, 2026 16:44
@tryigit tryigit merged commit 84731c8 into master Mar 8, 2026
14 of 16 checks passed
@tryigit tryigit deleted the copilot/update-test-actions branch March 8, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants