Commit Graph
11 Commits
Author SHA1 Message Date
Yang CaoandChris Sidi 6f33e4c7b0 Close destination steam before reject
Co-authored-by: Chris Sidi <hashtagchris@github.com>
2020-12-04 11:03:17 -05:00
Yang Cao 2c4f1a3166 style change, refactor arg sequence 2020-12-04 09:41:00 -05:00
Yang Cao 2b5da11156 pipeResponseToFile already throws when reading truncated stream 2020-12-04 09:19:58 -05:00
Yang Cao 760a39afb9 Try close stream before unlink 2020-12-03 13:34:59 -05:00
Yang Cao bd9c0f996d Always print skip validation log 2020-12-03 13:09:43 -05:00
Yang Cao 1e10fa415c Add some debugging statements 2020-12-03 12:40:37 -05:00
Yang Cao 09e68f92cd More styling fix 2020-12-03 10:57:04 -05:00
Yang Cao 8f05cccf8e Fix styling 2020-12-03 10:33:10 -05:00
Yang Cao 9d3d4bec1b Adding retry when we received 200
If we received 200, we will attempt to download the stream. If the
stream is gzipped, gzip should throw an error when trying to decompress
the stream; or if the stream is truncated, the received bytes should be
different from the value set in content-length header.
2020-12-03 10:15:12 -05:00
Yang Cao 53a6f99290 Release preparation of artifact 0.4.0 (#578) 2020-09-18 19:06:53 +02:00
Yang CaoandKonrad Pabjan da436eaab9 Add an option to specify retention days for artifacts (#575)
* Add an option to specify retention days for artifacts

* Validate against settings exposed as env var to give early feedback

* Fix lint

* Add tests and addressing feedback

* Update packages/artifact/__tests__/upload.test.ts

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>

* Update packages/artifact/README.md

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>

* Update packages/artifact/src/internal/utils.ts

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>

* Update packages/artifact/__tests__/util.test.ts

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
2020-09-18 11:30:00 -04:00