Skip to content

q-test: run in qpbuild docker image locally#765

Merged
ecmel merged 3 commits into
devfrom
ee-qtest
Jul 23, 2026
Merged

q-test: run in qpbuild docker image locally#765
ecmel merged 3 commits into
devfrom
ee-qtest

Conversation

@ecmel

@ecmel ecmel commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Changes introduced by this PR

  • npm run q-test now runs in Docker — switched the script from invoking a local q qcumber.q (which required q on PATH) to running the test suite inside the private qpbuild image via qcumber.sh. No local q install needed.
  • Automatic license resolutionqcumber.sh passes the kdb+ license to the container as KDB_K4LICENSE_B64 (how CI supplies it, from a secret). If that env var is unset, it base64-encodes a k4.lic found in $QLIC, $QHOME, or ~/.kx — so no manual setup when those are already configured.
  • Private-registry pull — the qpbuild image lives in a private GitLab registry. If it isn't already local, the script pulls it. It logs in first when it can — from GITLAB_TOKEN (a GitLab PAT with read_registry scope) or an interactive prompt — otherwise it relies on an existing docker login.
  • Works in CI — GitHub Actions authenticates with a docker/login-action step before running qcumber.sh, so no GITLAB_TOKEN is needed there; the license is supplied as the KDB_K4LICENSE_B64 secret. If a pull fails with no credentials, the script errors with a clear message.

@ecmel ecmel self-assigned this Jul 10, 2026
@ecmel
ecmel marked this pull request as draft July 10, 2026 14:26
…ITLAB_TOKEN is absent, so CI (docker/login-action) works

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ecmel
ecmel marked this pull request as ready for review July 10, 2026 14:36
@ecmel
ecmel requested a review from bjeffery-kx July 10, 2026 14:36
…ompt for GITLAB_TOKEN only if the pull fails
@ecmel
ecmel marked this pull request as draft July 14, 2026 13:57
@ecmel
ecmel marked this pull request as ready for review July 16, 2026 07:50
Comment thread qcumber.sh
Co-authored-by: bjeffery-kx <bjeffery@kx.com>
@kx-sonarqube

kx-sonarqube Bot commented Jul 23, 2026

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@ecmel
ecmel merged commit b3128ae into dev Jul 23, 2026
8 checks passed
@ecmel
ecmel deleted the ee-qtest branch July 23, 2026 07:32
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.

2 participants