Repository: codecov/uploader
Pull request #1184 (2023-09-27 20:56:55)

chore: make status say processing instead of success
Fixes: https://github.com/codecov/engineering-team/issues/552

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/codecov/uploader/pull/1184?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) Report
> Merging [#1184](https://app.codecov.io/gh/codecov/uploader/pull/1184?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) (d9433b0) into [main](https://app.codecov.io/gh/codecov/uploader/commit/286e4d60ba50b66921fa6055ac87754d5ec373bb?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) (286e4d6) will **not change** coverage.
> The diff coverage is `100.00%`.

```diff
@@           Coverage Diff           @@
##             main    #1184   +/-   ##
=======================================
  Coverage   92.48%   92.48%           
=======================================
  Files          36       36           
  Lines        1357     1357           
  Branches      273      273           
=======================================
  Hits         1255     1255           
  Misses         70       70           
  Partials       32       32           
```

| [Flag](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | Coverage Δ | |
|---|---|---|
| [aarch64](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [aarch64-without-git](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [alpine](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [alpine-proxy](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [alpine-without-git](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [linux](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [linux-without-git](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [macos](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [macos-without-git](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `92.48% <100.00%> (ø)` | |
| [windows](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `?` | |
| [windows-without-git](https://app.codecov.io/gh/codecov/uploader/pull/1184/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `?` | |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Files](https://app.codecov.io/gh/codecov/uploader/pull/1184?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | Coverage Δ | |
|---|---|---|
| [src/helpers/web.ts](https://app.codecov.io/gh/codecov/uploader/pull/1184?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov#diff-c3JjL2hlbHBlcnMvd2ViLnRz) | `85.00% <100.00%> (ø)` | |


Patch:
diff --git a/src/helpers/web.ts b/src/helpers/web.ts
index 124639b..f837e6d 100644
--- a/src/helpers/web.ts
+++ b/src/helpers/web.ts
@@ -108,7 +108,7 @@ export async function uploadToCodecovPUT(
     )
   }
 
-  return { status: 'success', resultURL: putAndResultUrlPair.resultURL }
+  return { status: 'processing', resultURL: putAndResultUrlPair.resultURL }
 }
 
 export async function uploadToCodecovPOST(


Test patch:
diff --git a/test/index.test.ts b/test/index.test.ts
index 3b4a6e4..47fd2a9 100644
--- a/test/index.test.ts
+++ b/test/index.test.ts
@@ -92,11 +92,11 @@ describe('Uploader Core', () => {
     mockClient.intercept({
       method: 'PUT',
       path: '/',
-    }).reply(200, 'success')
+    }).reply(200, 'processing')
 
     const result = await app.main(args)
     expect(result).toEqual({
-      status: 'success',
+      status: 'processing',
       resultURL: 'https://results.codecov.io/',
     })
   }, 30000)
@@ -212,11 +212,11 @@ describe('Uploader Core', () => {
       mockClient.intercept({
         method: 'PUT',
         path: '/',
-      }).reply(200, 'success')
+      }).reply(200, 'processing')
 
       const result = await app.main(args)
       expect(result).toEqual({
-        status: 'success',
+        status: 'processing',
         resultURL: 'https://results.codecov.io/',
       })
     }, 30000)
@@ -249,11 +249,11 @@ describe('Uploader Core', () => {
     mockClient.intercept({
       method: 'PUT',
       path: '/',
-    }).reply(200, 'success')
+    }).reply(200, 'processing')
 
     const result = await app.main(args)
     expect(result).toEqual({
-      status: 'success',
+      status: 'processing',
       resultURL: 'https://results.codecov.io/',
     })
   }, 30000)