Skip to content

KubeCoder environment, YouTrack plugin design, and PR build fixes - #213

Merged
pvginkel merged 11 commits into
mainfrom
kubecoder-environment
Nov 21, 2026
Merged

pvginkel merged 11 commits into
mainfrom
kubecoder-environment

Conversation

@pvginkel

Copy link
Copy Markdown
Member

Lets TQL be developed in a KubeCoder environment. It adds a design for a YouTrack plugin and fixes the two failures that kept every PR build red.

PR build fixes

  • Prettier. runprettier.bat ran npm install --save-dev prettier @prettier/plugin-xml. That upgrades prettier past the version scripts/package-lock.json pins and rewrites scripts/package.json, so the uncommitted-changes check after it always failed. It now runs npm ci.

  • NuGet audit. dotnet restore -warnaserror failed on two advisories:

    • NU1902 on Azure.Identity 1.10.4 → 1.11.4
    • NU1903 on System.Text.Json 8.0.0 → 8.0.5

    The lock files are regenerated.

KubeCoder environment

  • Linux builds. .kubecoder/ sets up the dotnet toolchain. Directory.Build.props sets EnableWindowsTargeting when not on Windows, which lets the net8.0-windows projects compile on Linux.
  • Windows test build. kc project build publishes a self-contained win-x64 Tql.DebugApp into build/DebugApp. Windows refuses to run it from the Samba share, so scripts/Run-KubeCoder-Build.bat, run from the share, mirrors it into %TEMP%\TQL-DebugApp and starts it.
  • Debug playbook fallback. A Debug build run outside the source tree used to crash on startup with "Cannot find playbook path". It now falls back to the embedded playbook.
  • Docs. docs/Designs is excluded from the docfx site.

YouTrack plugin design

docs/Designs/YouTrack-plugin.md designs the plugin, including self-hosted installations. No plugin code yet.

Verified

Checked in the KubeCoder environment (Linux):

  • Restore. dotnet restore -warnaserror passes.
  • Build. dotnet build -c Release -warnaserror gives 0 warnings.
  • Formatting. CSharpier and prettier checks are clean.
  • Docs. docfx --warningsAsErrors gives 0 warnings after the Markdown preprocessing step. On Linux this needed docs/Template/Plugins lowercased in a scratch copy, because of case sensitivity; Windows is unaffected.

Two steps are only checked by this PR's Windows build:

  • The localization check
  • Running runprettier.bat under PowerShell

The Azure plugin should get a manual check on Windows after the Azure.Identity bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX

pvginkel and others added 11 commits November 21, 2026 09:26
The environment carries the .NET toolchain and a YouTrack token for checking
the planned YouTrack plugin's REST calls. EnableWindowsTargeting lets the
net8.0-windows projects compile on Linux; it has no effect on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
…cks.

`kc project build` compiles Tql.sln and publishes Tql.DebugApp self-contained
for win-x64 into build/DebugApp, which the Windows desktop reaches over the
Samba share. `kc project lint` runs CSharpier and the PR build's prettier
check. No test verb: no test project can run on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
The design covers self-hosted installations first (service URL with or
without a path prefix, a URL copied from the address bar, host-relative
URLs, certificates, Hub), the version 1 scope at JIRA parity, the project
structure, and a test strategy that runs the REST client's tests on Linux.
Its facts were measured against https://issues.webathome.org (2026.2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
A debug build loads the quick start playbook from the source tree so edits
show up live, and failed to start when it couldn't find one: "Cannot find
playbook path". A published debug build, such as the one a KubeCoder
environment copies to Windows, has no source tree. It now falls back to the
embedded playbook a release build uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
Windows won't run the build from the environment's Samba share.
scripts/Sync-KubeCoder-Build.bat, run from the share, mirrors build\DebugApp
into %TEMP%\TQL-DebugApp. The environment's instructions, the build verb's
comment and the YouTrack design now point at it. /tmp is ignored for local
scratch files such as copied logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
docfx builds every Markdown file under docs/, so docs/Designs would have
been published to GitHub Pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
The environment's Samba share refuses to execute a file without the Unix
execute bit, so Windows couldn't run the script from the share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
The script now kills a running Tql.DebugApp before copying, so its files
can be replaced, and starts the copy in the Debug environment afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
It copies the build and starts it now, so the name says run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
runprettier.bat ran `npm install --save-dev prettier @prettier/plugin-xml`,
which upgrades prettier past the version package-lock.json pins and rewrites
scripts/package.json, so the uncommitted-changes check after it always failed.
It now runs `npm ci`.

`dotnet restore -warnaserror` failed on the NuGet audit: NU1902 on
Azure.Identity 1.10.4 (fixed in 1.11.4) and NU1903 on System.Text.Json 8.0.0
(fixed in 8.0.5). Both are bumped and the lock files regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGjkV3AFfnNjd6n2D9pwGX
@pvginkel
pvginkel merged commit 662cb35 into main Nov 21, 2026
1 check passed
@pvginkel
pvginkel deleted the kubecoder-environment branch November 21, 2026 09:22
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