Skip to content

Check Collection Android arm64 debug linking in CI - #151

Merged
jackshim415 merged 1 commit into
mainfrom
jackshim415/lvt-217-collection-android-debug
Nov 23, 2026
Merged

jackshim415 merged 1 commit into
mainfrom
jackshim415/lvt-217-collection-android-debug

Conversation

@jackshim415

Copy link
Copy Markdown
Contributor

Summary

  • Add a native-input PR/manual workflow that performs npm ci, Android prebuild and a single uncached :app:assembleDebug for arm64-v8a, the failing debug variant in LVT-217.
  • Verify the debug APK signature and packaged Reanimated/Worklets native libraries. Retain the exact checkout SHA, build log, and verified APK/checksum. Existing release candidate and device checks are unchanged.

Verification

  • actionlint, workflow pin/privilege policy, monorepo structure, shell syntax and git diff --check passed.
  • Simulated the workflow shell commands: clean success; missing native library or bad APK signature rejected; dirty inputs and npm, Expo, or Gradle failures preserved through log capture.
  • No local Android SDK was available. The first hosted run is needed to verify the actual Android build. This does not certify Android/iOS signed release or physical-device acceptance.

Exercise the first-build JNI link path separately from the release-mode candidate and keep APK diagnostics on failure.

Refs: LVT-217
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T23:51:42.327626Z
We couldn’t complete this review. Comment @codex review to try again.
cea58d0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@railway-app

railway-app Bot commented Nov 22, 2026

Copy link
Copy Markdown

🚅 Deployed to the lovat-pr-151 environment in lovat

8 services not affected by this PR
  • support
  • Postgres
  • learn
  • dashboard
  • Redis
  • api
  • worker
  • website

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovat AI review: 1 new finding(s) at cea58d010346b37491d0919ac7d15cff0dec4ad4.

The persistent Lovat AI review comment contains the latest complete result.

  • .github/workflows/collection-android-debug.yml:47 — Pipeline through tee masks build failures (BUG · confidence 0.95)

CI: '1'
EXPO_NO_DOTENV: '1'
EXPO_PUBLIC_API_URL: http://127.0.0.1:9877
run: |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HIGH · BUG — Pipeline through tee masks build failures

The build step runs { ... } 2>&1 | tee "$evidence/build.log". The default bash on GitHub Actions is invoked with -e but not -o pipefail, so the step's exit status is that of tee, not the command group. If npm ci, the version check, expo prebuild, or the Gradle assembleDebug link fails (exactly the failure this workflow is meant to catch, per the LVT-217 comment), tee succeeds and the job is reported green.

Suggested fix: Add set -o pipefail at the top of the run block (or configure defaults.run.shell as bash -e -o pipefail {0}) so the step fails when the build fails.

Lovat AI review · confidence 0.95 · z-ai/glm-5.3-flash

@github-actions

Copy link
Copy Markdown
Contributor

Lovat AI review

Status: completed · Model: z-ai/glm-5.3-flash · Findings: 1

Reviewed commit: cea58d010346b37491d0919ac7d15cff0dec4ad4

Critical: 0 · High: 1 · Medium: 0 · Low: 0

Overall assessment

This is a CI-only workflow with minimal risk surface: read-only permissions, pinned actions, no secrets. The main defect is that the build step pipes its command group through tee without pipefail, so a failed Gradle link or npm ci would be masked by tee's exit status and the workflow would report success. Everything else, including the artifact retention and signature checks, is reasonable.

Findings

High (1)

  • .github/workflows/collection-android-debug.yml:47 — Pipeline through tee masks build failures (BUG · confidence 0.95)
    The build step runs { ... } 2>&1 | tee "$evidence/build.log". The default bash on GitHub Actions is invoked with -e but not -o pipefail, so the step's exit status is that of tee, not the command group. If npm ci, the version check, expo prebuild, or the Gradle assembleDebug link fails (exactly the failure this workflow is meant to catch, per the LVT-217 comment), tee succeeds and the job is reported green.

    Suggestion: Add set -o pipefail at the top of the run block (or configure defaults.run.shell as bash -e -o pipefail {0}) so the step fails when the build fails.

Review details

  • Review batches: 1
  • Diff characters reviewed: 3,245
  • Tokens: 3,138 prompt + 469 completion
  • Estimated inference cost: $0.0002

Limitations

  • The reviewer examined only changed lines and their diff context, not the whole repository.

@jackshim415
jackshim415 merged commit aa9908f into main Nov 23, 2026
24 checks 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.

1 participant