feat: add Prom remote-write query regression scenario (#8413)

* feat: add Prom remote-write query regression scenario

Signed-off-by: discord9 <discord9@163.com>

* test: add high-cardinality remote-write query case

Signed-off-by: discord9 <discord9@163.com>

* feat: chunk remote-write query regression loads

Signed-off-by: discord9 <discord9@163.com>

* test: use multi-day remote-write regression case

Signed-off-by: discord9 <discord9@163.com>

* fix: address query regression review comments

Signed-off-by: discord9 <discord9@163.com>

* ci: allow large query regression comments

Signed-off-by: discord9 <discord9@163.com>

---------

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2026-07-07 15:58:56 +08:00
committed by GitHub
parent 8f5d681e4b
commit 12f83828b1
13 changed files with 791 additions and 75 deletions

View File

@@ -49,7 +49,7 @@ function text(value) {
.replace(/@/g, '@\u200b')
.replace(/\|/g, '\\|')
.replace(/\r?\n/g, ' ');
return result.length > 512 ? `${result.slice(0, 509)}...` : result;
return result;
}
function statusEmoji(status) {
@@ -251,10 +251,6 @@ module.exports = async function validateQueryRegressionComment({ github, context
} else {
const rendered = [];
for (const reportPath of reportPaths) {
const size = fs.statSync(reportPath).size;
if (size > 1024 * 1024) {
return skip(core, `Report file too large: ${reportPath} (${size} bytes).`);
}
let report;
try {
report = JSON.parse(fs.readFileSync(reportPath, 'utf8'));
@@ -266,9 +262,6 @@ module.exports = async function validateQueryRegressionComment({ github, context
body += rendered.join('\n\n---\n\n') + '\n';
}
if (body.length > 59999) {
body = `${body.slice(0, 59500)}\n\n\n\n_Comment truncated because it exceeded 60000 characters._\n`;
}
fs.writeFileSync(summaryPath, body);
core.setOutput('should_post', 'true');