Git Repositories and Builds
Apps have platform-managed Git repositories and a build pipeline. Code provides files, commits and pull requests; Build provides CI configuration, history and logs. CI packages a recorded source commit into a .gxpapp and imports it into an app draft. Publication and project rollout happen afterward.
Repository readiness and access
Creating or forking an app queues repository initialization. Wait for an initialized repository before cloning, starting hosted work or building. Failed initialization needs attention even if the app's metadata page is available. A fork uses its eligible published source commit and creates a separate app/repository; variants share one app's repository.
For local SSH access, open your dashboard Profile → SSH Keys and add your public key. A locally saved key can still have an unconfirmed Git-server sync; resolve that result before assuming clone access works. Copy the clone URL shown for your app; hosts and owners vary by environment. The standard hosted SSH service uses port 2222, for example:
git clone ssh://git@git-ssh.eventfinity.app:2222/TEAM/APP.git
cd APP
Replace TEAM and APP with the displayed values. Use the repository's HTTPS URL when that is your chosen authentication path. Keep private SSH keys and privileged platform credentials outside the repository.
Viewing repository/build information and managing it are separate app permissions. Use the owning team/app; a build from another repository cannot provide this app's release provenance.
Code workspace context
Code contains six views: Files, Commits, Pull Requests, Branches, Plans and Sessions. The former Git page still has a direct route but is not a separate top-level tab. Choose the view for the task; Plans/Sessions are saved planning/runtime history, not production release history.
Files initially prefers main, then falls back to the repository default or an available branch if that ref is absent. It does not inherit Settings' selected variant automatically. Confirm the Files/Commits branch and PR source/target explicitly, especially for variant/{name} editions. A branch-list request failure can leave a default-only fallback; absence from that view is not proof that a remote branch was deleted.
In Code → Commits, All branches shows branch tips; choose a branch to inspect its commit history. Loading branches or Loading commits means the corresponding request is still pending, while Couldn't load branches/commits reports a failed request. A denied request is not an empty repository. No branches or No commits describes the settled response for that view, not proof that remote source was deleted. Refresh is disabled while that view is loading; an earlier branch refresh finishing must not be interpreted as completion of the selected branch's commit request. Confirm the selected branch and wait for its result before diagnosing missing history.
Repository browsing and management are separate. A viewer can inspect authorized source/history without mutation controls. File editing in an active hosted session additionally depends on session ownership; app management alone does not take over another person's workspace. The active session is app-wide, so it can belong to another variant. Use session recovery rather than creating duplicate work after an uncertain request.
The no-repository empty state is an initialization diagnosis, not proof the app's source was deleted. Inspect setup state and obtain platform assistance with the app/repository identity. Do not create another App merely to dismiss that message. Repository reads, file mutations, PR operations and branch operations have their own server checks; this workspace description is not a complete endpoint authorization audit.
Browse and commit individual files
In Code → Files, confirm the branch before opening or changing a file. The tree initially scopes to src/; the Files header's settings control exposes Show all files for repository-root configuration and lockfiles. This preference is stored in your browser. Repositories without src/ can fall back to the root. A filtered tree is not proof a file is absent from Git.
Select a text file to inspect it. Edit is available only when the host exposes editing and the file is not classified as binary. A download link appears only when the repository response provides one; binary content is not a text-editor input. Browsing requires the App's view permission; create/update/delete handlers require its update permission and matching team ownership. A visible control does not bypass those server checks.
For a small text change, choose Edit, change the content, review the displayed branch and path, and select Commit changes. You may supply a commit message; the editor otherwise uses Update {path}. This writes a commit directly to the selected branch. It does not open a review PR for that edit, publish an App or wait for a later session close. Branch push/build rules still apply. For coordinated edits, use a working branch with your normal PR process or the hosted session workflow; a modal save and a session workspace save have different commit boundaries.
The update request includes the file SHA read when it was opened. If the controller detects a changed SHA, it returns a conflict instead of applying that edit. Copy your unsaved text somewhere safe, reload the selected branch/file, compare the newer content and reapply the intended change. Do not replace the newer SHA blindly or assume every provider failure is reported as a conflict. After an uncertain save, inspect the file and commit history before retrying so you do not create an unnecessary duplicate commit.
The create dialog resolves names relative to its displayed parent path, accepts slash-separated subpaths and rejects names containing .. in its current client checks. Its Folder mode attempts to commit an empty .gitkeep placeholder because Git does not track empty directories. However, the reviewed App file controller validates content as required|string, while the dialog sends an empty string for folders and permits empty files. Do not rely on either empty-content path succeeding: inspect validation errors and use an ordinary nonempty tracked file through your authorized Git workflow when appropriate. This is an unresolved UI/controller contract mismatch, not a documented successful folder-creation feature. Path checks in the dialog also do not certify the server's complete path/security boundary.
Creation and editing have separate request/error states. A successful Git commit is not evidence that CI built, draft ingestion completed, or a project is running the new version. Continue with the build record and publication workflow. These instructions describe the App Files controls; Theme and other repository hosts can expose different endpoints or capabilities.
Branches and automatic builds
| Branch | Purpose | Current automatic push behavior |
|---|---|---|
main | Default variant's usual production trunk | Builds when CI is enabled |
variant/{name} | Another variant's production trunk | Builds when CI is enabled |
dev/session-{id} | Hosted work branched from the selected trunk | No automatic build under the main/variant rule |
release/vN or release/{name}/vN | Published release source reference | Not a production-trunk push trigger |
The push handler also supports legacy v{number} branches. Main/variant matching is a naming rule: it does not establish that every matching branch has a live variant. Archival does not itself remove its Git branch or stop all builds for that branch.
Open Build → CI configuration and enable CI; the current panel autosaves the switch. Webhook delivery and workers must also be available. Inspect history after a push/merge to confirm a build actually completed.
The panel does not offer an editable trigger branch, runtime, build command or artifact path. Stored/API configuration includes legacy fields, but the automatic matcher uses main/variant/ rather than ci_branch, and the isolated builder follows the managed pipeline below. Changing a stored field does not establish that builds follow it.
Use Code → Pull Requests to review source/target branches before merging. Hosted closure creates/merges a PR only when explicitly selected. A checkpoint on a feature/session branch is not source on the production trunk.
Trigger, inspect and retry
- Open the app's Build tab.
- In Build history, enter the intended branch in Build branch, or leave it empty for the repository default. Use the exact production branch for a release candidate.
- Choose Trigger build. Pending confirms queuing, not successful compilation.
- Select the new entry to inspect logs, branch, commit and verification.
- Wait through pending/building to the final result. Compare its recorded commit with the source you intended to ship.
The Build page initially loads 20 history entries and selects the first one. Its selected log view polls pending/building work and updates that row; this does not automatically refresh every build or show unlimited history. If an older build is absent, use an authorized history query or platform assistance with its build ID instead of treating absence from this slice as deletion. Viewers retain history/log selection, while management controls and stored CI environment values require App update permission.
Manual builds can use another branch for diagnosis; that does not make it the variant's publishable production draft. Publication still requires the correct repository and production branch.
Retry on a failed/cancelled entry creates a new build with that entry's recorded branch and commit. It does not include later fixes automatically. After fixing source, trigger the branch again or inspect its newer push build. Legacy entries without a recorded commit need additional care: confirm what the replacement actually checked out.
Cancel currently marks the build record cancelled. The handler does not cancel its queue job or isolated runtime, and the worker can update that record again. Do not use the badge as proof commands stopped or no draft can be updated. Recheck history/draft before publication; involve an operator when runtime termination must be confirmed.
Managed build contract
The isolated builder defaults to Node 24 Alpine; operators can configure another image. App-specific runtime settings do not override this path. Its finite, noninteractive sequence is:
- Extract the committed source snapshot into a disposable workspace.
- Run
npm ciwithpackage-lock.json; otherwise runnpm install. - Run
npm testwhenpackage.jsondefines a test script. - Run
npm run build. - Return exactly one package from
dist/for ingestion.
Commit a compatible npm lockfile for reproducibility. Yarn/pnpm lockfiles alone do not select those package managers. Keep the scaffold's package tooling and make scripts exit with meaningful status instead of staying in watch mode.
Source, naming and size limits
Managed source requires app-manifest.json with name/version fields and numeric manifest_version: 3. Its nonempty name uses letters, numbers, underscores or hyphens. The source archive comes from the checked-out Git HEAD, excluding uncommitted files and .git authentication configuration.
The compressed/base64 source payload is limited to 700,000 encoded characters, rather than 700 KB of uncompressed source. Keep generated output/dependency directories out of committed source. Reduce committed assets or discuss supported packaging when the payload exceeds this limit.
The final package must be exactly one regular, non-symlink file under dist/, with letters, numbers, underscores or hyphens and the .gxpapp extension, for example dist/my-app.gxpapp. Its base name must match the source manifest name, allowing managed hyphen/underscore normalization. The runner rejects artifacts larger than 20,000,000 bytes. Missing, duplicate or loose JavaScript outputs do not satisfy this contract.
Current command timeouts are 300 seconds for installation, 300 for tests and 600 for build. The runtime also has a total deadline; consuming all stage limits does not guarantee the entire run fits. Inspect the actual timeout/error in history.
See Building for Platform for local preparation and package contents. The source CI contract is stricter than the standalone importer's legacy manifest support.
Environment variables
The Environment Variables card states that the feature is under development; its add/save workflow is disabled. The API can store configuration, but the isolated builder receives only its managed environment and source payload. It does not inject ci_env_vars into app commands.
Do not rely on those stored values for current builds. Client-side values can be compiled into the bundle; keep privileged keys/server secrets out of source and assets. Use supported runtime configuration/bindings for installed app behavior.
Understand verification
Build status and verification are separate evidence. The runner interprets test exit status and recognizable output; it does not inspect test coverage of the intended behavior.
| Verification | Meaning | Release action |
|---|---|---|
passed | Command completed and output reported passing tests | Inspect which meaningful cases ran |
failed | Command failed or output reported failures | Fix and rebuild; packaging should not proceed |
no_tests | Output reported no tests | Add/run meaningful verification |
unverified | Command completed without recognized passing-test evidence | Inspect logs and establish the actual result |
not_configured | No test script configured | Configure finite tests or record separate acceptance |
not_run | Pipeline did not reach tests | Diagnose the preceding stage |
A successful package can carry not_configured, no_tests or unverified. Publication checks build/source provenance but currently has no passed-tests gate. Keep tests and installed-app acceptance in your release process rather than inferring them from the Publish button.
Draft ingestion and configuration
After compilation, the worker stores/imports the artifact into the unpublished draft for its branch and variant. A draft can be updated repeatedly; currently or historically published rows cannot be reopened/overwritten. The default variant can adopt an eligible legacy unbranched draft; other variants cannot borrow it.
Builds/publication serialize app-version updates. A late result with an older artifact ID cannot replace a draft linked to a higher ID. This ordering is not Git ancestry comparison. A build can succeed while its version update is skipped, so compare the draft's attached build with the history entry you intend to release.
Import updates declared runtime, manifest/configuration and assets. Optional omissions can retain old values: missing style, asset directory, configuration flags or instructions do not universally clear existing state, and empty/omitted dependencies do not clear prior dependencies. Inspect Settings on the correct draft after a rebuild intended to remove these fields.
Validation/import failure makes the build fail even when compilation produced an artifact. A stored raw artifact and completed draft runtime are separate outcomes. Current artifact storage is keyed by repository, build ID and full verified commit; do not identify a package solely by branch or a seven-character display abbreviation. Invalid/missing repository/build/40-character commit identity prevents that storage step. Database rollback does not undo every external storage/Git operation; inspect failed/processing state before publication.
Troubleshoot
| Symptom | Check |
|---|---|
| No automatic build | CI switch, actual branch, webhook delivery and workers |
| Pending indefinitely | Queue availability and app/repository identity |
| Checkout/source error | Ref exists, repository authentication and payload size |
| Install failure | npm lockfile consistency and compatible dependencies |
| Tests hang/fail | CI script, watch mode, output and timeout |
| Build command fails | Actual runtime log and npm run build output |
| Package rejected | Exactly one valid dist/*.gxpapp, name match and size |
| Artifact exists but draft failed | Import logs, required files and storage error |
| Draft points at another build | Branch/variant identity, immutable rows and newer build ID |
| Cancelled status changes again | Record-only cancellation; inspect the worker's later result |
| Publish unavailable | Production branch, completed bundle/path and owning build commit |
Include app, variant, build ID, branch, commit and failing log stage in support reports; redact credentials. Continue in Publish with variants and releases.