fix: timing

This commit is contained in:
Tom Hu 2023-11-10 08:22:10 +11:00
parent 80a3090424
commit 0cb9213bc4
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 5 additions and 9 deletions

6
dist/index.js vendored
View file

@ -24606,10 +24606,7 @@ try {
}
const filePath = external_fs_.createWriteStream(filename);
filePath
.on('open', () => {
res.pipe(filePath);
}).on('error', (err) => {
core.info(`${external_fs_.existsSync(filename)}`);
.on('error', (err) => {
core.info(`${console.trace()}`);
core.info(`Stack: ${err.stack}`);
setFailure(`Codecov:Failed to write uploader binary: ${err.message}\n${err}`, true);
@ -24632,6 +24629,7 @@ try {
unlink();
});
}));
res.pipe(filePath);
});
}
catch (err) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -34,10 +34,7 @@ try {
const filePath = fs.createWriteStream(filename);
filePath
.on('open', () => {
res.pipe(filePath);
}).on('error', (err) => {
core.info(`${fs.existsSync(filename)}`);
.on('error', (err) => {
core.info(`${console.trace()}`);
core.info(`Stack: ${err.stack}`);
setFailure(
@ -71,6 +68,7 @@ try {
unlink();
});
});
res.pipe(filePath);
});
} catch (err) {
setFailure(`Codecov: Encountered an unexpected error ${err.message}`, failCi);