Skip to content

Comments

Enhance Copilot instructions with build timing, CI/CD details, and troubleshooting#118

Merged
adbenitez merged 3 commits intomainfrom
copilot/setup-copilot-instructions-again
Feb 19, 2026
Merged

Enhance Copilot instructions with build timing, CI/CD details, and troubleshooting#118
adbenitez merged 3 commits intomainfrom
copilot/setup-copilot-instructions-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Expands .github/copilot-instructions.md to reduce AI assistant exploration overhead and build failures.

Build Instructions

  • Added timing expectations: 30-60 min native libs, 2-5 min APK, 15-25 min CI
  • Documented environment setup (ANDROID_NDK_ROOT path variations)
  • Added single-arch build shortcut: scripts/ndk-make.sh armeabi-v7a
  • Common issues: missing NDK, uninitialized submodules, Gradle wrapper validation

Repository Structure

  • Expanded with package paths (org.thoughtcrime.securesms.*, com.b44t.messenger.*, chat.delta.rpc.*)
  • Documented generated code locations (don't edit chat.delta.rpc.*)
  • Added script purposes (ndk-make.sh, install-toolchains.sh, generate-rpc-bindings.sh)

CI/CD Workflows

  • Documented preview APK workflow: builds armeabi-v7a only, uses FOSS flavor
  • Added validation requirements: Fastlane metadata, Gradle wrapper, --no-daemon flag

New Sections

  • Validation checks: When to rebuild native libs vs. when not to
  • Dependencies/Constraints: Java 8 compatibility, SDK 36, ProGuard always-on
  • JSON-RPC bindings: Regeneration via ./scripts/generate-rpc-bindings.sh

Fixes

  • Target SDK: 35 → 36 (matches build.gradle)
  • Test durations: 1-3 min unit, 10-30 min instrumented

File size: ~1,400 words (within 2-page best practice limit)

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:

  • gh.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

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

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title>
<issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…ormation

Co-authored-by: adbenitez <24558636+adbenitez@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up Copilot instructions for repository Enhance Copilot instructions with build timing, CI/CD details, and troubleshooting Feb 18, 2026
Copilot AI requested a review from adbenitez February 18, 2026 20:54
@adbenitez adbenitez marked this pull request as ready for review February 19, 2026 04:33
@adbenitez adbenitez merged commit b99426b into main Feb 19, 2026
1 check passed
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.

✨ Set up Copilot instructions

2 participants