ci - improve log message on failure (#254460)

This commit is contained in:
Benjamin Pasero
2025-07-07 17:40:56 +02:00
committed by GitHub
parent 33936aa5fb
commit 55b9191fe3

View File

@@ -46,13 +46,30 @@ mocha.run(failures => {
const rootPath = join(__dirname, '..', '..', '..');
const logPath = join(rootPath, '.build', 'logs');
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY || process.env.GITHUB_WORKSPACE) {
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
console.log(`
###################################################################
# #
# Logs are attached as build artefact and can be downloaded #
# from the build Summary page (Summary -> Related -> N published) #
# #
# Please also scan through attached crash logs in case the #
# failure was caused by a native crash. #
# #
# Show playwright traces on: https://trace.playwright.dev/ #
# #
###################################################################
`);
} else if (process.env.GITHUB_WORKSPACE) {
console.log(`
###################################################################
# #
# Logs are attached as build artefact and can be downloaded #
# from the build Summary page (Summary -> Artifacts) #
# #
# Please also scan through attached crash logs in case the #
# failure was caused by a native crash. #
# #
# Show playwright traces on: https://trace.playwright.dev/ #
# #
###################################################################