Skip to content

Conversation

Copy link

Copilot AI commented Nov 4, 2025

The build pipeline was failing when the downloadProtoFiles Gradle task attempted to fetch proto files from GitHub API without authentication, resulting in 403 errors due to rate limiting.

Changes

  • Modified client/build.gradle to skip proto file download when orchestrator_service.proto already exists in the repository
  • Task now checks for file presence before attempting GitHub API calls
task downloadProtoFiles {
    ext.branch = project.hasProperty('protoBranch') ? project.protoBranch : 'main'

    doLast {
        def protoFile = new File(protoDir, 'orchestrator_service.proto')
        
        // Skip download if proto file already exists
        if (protoFile.exists()) {
            logger.info("Proto file already exists, skipping download")
            return
        }
        
        // ... download logic
    }
}

This allows builds to succeed using committed proto files without requiring GitHub API access.


💡 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.

Copy link
Author

Copilot AI commented Nov 4, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

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:

  • https://api.github.com/repos/microsoft/durabletask-protobuf/commits
    • Triggering command: REDACTED, pid is -1 (http block)
  • rt.services.visualstudio.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --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-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.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-7.4-bin/c0gwcg53nkjbqw7r0h0umtfvt/gradle-7.4/lib/gradle-launcher-7.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.4 (dns block)

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

Copilot AI changed the title [WIP] Make azuremanaged packages version official Fix downloadProtoFiles task causing pipeline failures due to GitHub API rate limiting Nov 4, 2025
Copilot AI requested a review from YunchuWang November 4, 2025 19:00
Copilot finished work on behalf of YunchuWang November 4, 2025 19:00
@YunchuWang YunchuWang closed this Nov 4, 2025
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