TorgLink

Technical Specification

Language: English (required)

Field Value
Ticket TRL-49
Title Organize test environment for developers and community
Responsible (YouTrack Assignee) Igor
Status Approved
Date 2026-11-29
Base URL A (Dev community) https://103.195.5.190:51111
Base URL B (Others / community) https://103.195.6.73:51111

1. Preamble

TorgLink needs a shared test environment so developers and the wider community can install known builds, register on always-on test servers, and dogfood the messenger (community metric: client + test registration + chat activity).

Related context:

2. Problem statement

Goal

Provide:

  1. Two always-on ShortP2P / TorgLink test servers with a manual update path from CI.
  2. A canonical build catalog listing test/use builds with links to GitHub Actions pipeline runs (artifacts).

Current behavior

Desired behavior

Acceptance criteria

Non-goals

3. Technologies and solutions

Constraints

Solution variants

Option Summary Pros Cons
A One shared test server for everyone Simple ops Dev breakage hits community; rejected by owner
B Two always-on servers (dev community / others); manual Maintainer-only pipeline promote; build catalog on site (+ optional ops doc) Matches audiences; controlled deploys; reuses existing Actions/site patterns Two hosts to run; catalog must be kept in sync
C Fully automated CD to test on every main/dev push Fast feedback Conflicts with Maintainer gate; unsafe for community server

Chosen solution

Option B — owner-confirmed.

Technical approach

  1. Provisioning: Base URLs are fixed (see Infrastructure). SSL/domain polish and catalog/onboarding text use these endpoints.
  2. Deploy path: GitHub Actions Test servers: promote on TorgLink/TorgLink (workflow_dispatch, Maintainer-only). Inputs: target + ShortP2P branch. Remote: checkout into /shortp2p_server, then nohup dotnet run -c Release in src/Server/ShortP2P.MessengerServer.Api.
  3. Build catalog: extend or rationalize _data/downloads.yml / related site data (and optional community/ or ops note) so each listed build has a stable Actions run (or prerelease) link; refresh cadence defined in implementation.
  4. Child tickets: epic TRL-49 may spawn TRL tasks for server/runbook and TS tasks for site catalog pages.

Risks

4. Infrastructure

Environment Required Existing / gap Owner / notes
dev community test server Always-on + manual promote Base URL: https://103.195.5.190:51111 Maintainer of TorgLink/TorgLink for deploys; uptime on-call TBD
others / community test server Always-on + manual promote Base URL: https://103.195.6.73:51111 Same deploy gate; isolated from dev community
prod Not in scope for this epic — —
Build catalog (site) Public list + Actions links Partial (downloads.yml, news) Site repo / TS child tasks as needed

Secrets: SSH host/user/password for servers A and B live in GitHub Actions secrets on TorgLink/TorgLink (SSH_HOST_A / SSH_USER_A / SSH_PASS_A, SSH_HOST_B / SSH_USER_B / SSH_PASS_B; optional SHORTP2P_GIT_TOKEN). Values never in git. Promote clones https://github.com/TorgLink/ShortP2P, checks out the selected branch into /shortp2p_server, and runs nohup dotnet run -c Release in src/Server/ShortP2P.MessengerServer.Api. Only Maintainers operate promote.

Rollout: promote intentionally per environment. Rollback: redeploy previous known-good artifact via the same manual pipeline.

5. Responsible

Export

Export this Markdown to Word (.docx) with the same section headings for sign-off. Attach both files to the YouTrack issue.