Skip to content

Enable APK workflow on codex branches, auto-detect trigger context, and add flight-conditions API#6

Open
Capybla wants to merge 3 commits intomainfrom
codex/make-code-functional-for-apk-packaging
Open

Enable APK workflow on codex branches, auto-detect trigger context, and add flight-conditions API#6
Capybla wants to merge 3 commits intomainfrom
codex/make-code-functional-for-apk-packaging

Conversation

@Capybla
Copy link
Copy Markdown
Owner

@Capybla Capybla commented Feb 22, 2026

Motivation

  • Make GitHub Actions APK builds runnable from the user's working branch patterns (codex/**) and reduce friction when triggering the remote build from local shells.
  • Improve the remote trigger script so it infers GITHUB_REPO/GITHUB_REF when possible to avoid manual errors.
  • Add useful backend features for flight safety (flight-condition scoring and a /conditions endpoint) and include necessary frontend packaging/config files for Capacitor.

Description

  • Updated .github/workflows/android-apk.yml to trigger on workflow_dispatch, tag pushes v* and pushes to main, work, and codex/** so branches like codex/paraweather build the APK.
  • Enhanced frontend/scripts/trigger_github_apk.sh to auto-detect GITHUB_REPO from git remote origin and GITHUB_REF from the current branch when those environment variables are not provided, while keeping the GITHUB_TOKEN guard.
  • Edited README.md to document the new triggers, examples targeting codex/paraweather, and clarified the CLI/PowerShell usage and auto-detection behavior.
  • Backend changes in backend/server.py include safer MongoDB env handling and client options, added/adjusted Pydantic models (RouteSegment.altitude_status, FlightCondition), new helper functions (classify_altitude_status, weather_code_to_text, compute_flight_score), and a new API endpoint GET /api/conditions that returns a flight recommendation and score.
  • Added frontend/capacitor.config.ts and updated frontend packaging artifacts (package-lock.json and other frontend files in previous diffs) to prepare the project for Capacitor/Android packaging.

Testing

  • Ran bash -n frontend/scripts/trigger_github_apk.sh to validate the trigger script syntax, which passed. — OK
  • Executed python -c "import json;json.load(open('frontend/package.json'));print('package ok')" to validate frontend/package.json presence/parseability, which printed package ok. — OK
  • Searched and validated the README/workflow/script updates with rg for codex/**, GITHUB_REF, and GITHUB_REPO occurrences to confirm documentation and workflow alignment. — OK
  • Attempted to run frontend/scripts/trigger_github_apk.sh end-to-end in this environment and it exited with a clear error due to missing GITHUB_TOKEN, which is expected (the script intentionally requires a token). — EXPECTED FAILURE

Codex Task

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant