ci/praktika/html_page_development.md
This guide explains how to preview and validate the CI HTML page (ci/praktika/json.html) locally with an AI agent and how to deploy changes for test or production.
Configure Selenium MCP Server for your AI agent
Add the following configuration to your MCP settings:
{
"selenium": {
"command": "npx",
"args": ["-y", "@angiejones/mcp-selenium"]
}
}
Prepare a commit SHA and parameters
You'll need a commit SHA and a base reports URL. The page accepts query parameters, for example:
REF: branch or ref name (e.g., master)sha: the commit SHA to testbase_url: URL-encoded base URL to CI reports (encoded https://s3.amazonaws.com/clickhouse-test-reports becomes https%3A%2F%2Fs3.amazonaws.com%2Fclickhouse-test-reports)name_0: display name for the data source (e.g., MasterCI)Ask your agent to start Chrome with CORS disabled and open ./ci/praktika/json.html with parameters, for example:
Please start Chrome with disabled CORS and open ./ci/praktika/json.html file with params:
REF=master&sha=YOUR_COMMIT_SHA&base_url=https%3A%2F%2Fs3.amazonaws.com%2Fclickhouse-test-reports&name_0=MasterCI
Note: Replace YOUR_COMMIT_SHA with the specific commit SHA you need to test.
On macOS, you can launch Google Chrome with web security disabled to allow local file access with remote resources:
open -a "Google Chrome" --args \
--disable-web-security \
--disable-site-isolation-trials \
--allow-file-access-from-files \
--user-data-dir="/tmp/ch-dev" \
"file:///ABSOLUTE_PATH_TO_REPO/ci/praktika/json.html?REF=master&sha=YOUR_COMMIT_SHA&base_url=https%3A%2F%2Fs3.amazonaws.com%2Fclickhouse-test-reports&name_0=MasterCI"
ABSOLUTE_PATH_TO_REPO with your local path.Please start Chrome with disabled CORS and open ./ci/praktika/json.html file with params:
REF=master&sha=59d18f406d9ef99bbf400184fd0ba47a84381bec&base_url=https%3A%2F%2Fs3.amazonaws.com%2Fclickhouse-test-reports&name_0=MasterCI
Run the following from the repository root.
json.html with json_test.html in any CI report URL.python -m ci.praktika infrastructure --deploy --only html --test
python -m ci.praktika infrastructure --deploy --only html
sha points to a valid commit with existing CI results.base_url is URL-encoded.