Fix linux-coverage CI job failures (#4174)
This commit is contained in:
7
.bazelrc
7
.bazelrc
@@ -10,5 +10,12 @@ coverage --experimental_ui_max_stdouterr_bytes=10485760
|
|||||||
|
|
||||||
common:macos --linkopt=-L/opt/homebrew/lib
|
common:macos --linkopt=-L/opt/homebrew/lib
|
||||||
|
|
||||||
|
# Ensure GCC is used consistently for toolchain detection and compilation on Linux.
|
||||||
|
# This prevents a mismatch where local_config_cc detects one GCC version but compilation
|
||||||
|
# pulls headers from another, causing "absolute path inclusion" errors in Bazel's
|
||||||
|
# strict include checker (seen on Ubuntu 24.04 with rules_cc 0.2.x / Bazel 8.5+).
|
||||||
|
build:linux --repo_env=CC=gcc
|
||||||
|
build:linux --repo_env=CXX=g++
|
||||||
|
|
||||||
# disables telemetry https://github.com/aspect-build/tools_telemetry
|
# disables telemetry https://github.com/aspect-build/tools_telemetry
|
||||||
common --repo_env=ASPECT_TOOLS_TELEMETRY=
|
common --repo_env=ASPECT_TOOLS_TELEMETRY=
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ app.get('/test', function (req, res) {
|
|||||||
res.send(content);
|
res.send(content);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/stale/*', function() {
|
app.get('/stale/*path', function() {
|
||||||
// Never respond.
|
// Never respond.
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -169,18 +169,28 @@ app.get('/delayed', function(req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get('/load/:number(\\d+)', function(req, res) {
|
app.get('/load/:number', function(req, res) {
|
||||||
res.send('Request ' + req.params.number);
|
const number = parseInt(req.params.number, 10);
|
||||||
|
if (isNaN(number)) {
|
||||||
|
res.status(400).send('Bad Request');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
res.send('Request ' + number);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/online/:style(*)', function(req, res) {
|
app.get('/online/*style', function(req, res) {
|
||||||
const file = path.join(import.meta.dirname, "../fixtures/map/online", req.params.style);
|
const stylePath = [].concat(req.params.style).join('/');
|
||||||
|
const file = path.join(import.meta.dirname, "../fixtures/map/online", stylePath);
|
||||||
res.sendFile(file); // Set disposition and send it.
|
res.sendFile(file); // Set disposition and send it.
|
||||||
// res.status(200).send();
|
// res.status(200).send();
|
||||||
// res.send('Request ' + req.params.style);
|
// res.send('Request ' + req.params.style);
|
||||||
});
|
});
|
||||||
|
|
||||||
var server = app.listen(3000, function () {
|
var server = app.listen(3000, function (error) {
|
||||||
|
if (error) {
|
||||||
|
process.stderr.write('Failed to start server: ' + error.message + '\n');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
// Tell parent that we're now listening.
|
// Tell parent that we're now listening.
|
||||||
process.stdout.write("OK");
|
process.stdout.write("OK");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user