# Unable to determine a parent commit to compare against in base branch after Squash and Merge

**URL:** <https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480>\
**Category:** Support\
**Created:** [January 19, 2021, 8:21am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480 "2021-01-19T08:21:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollana](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ollana/32/1488_2.png) [@ollana](https://community.codecov.com/u/ollana)\
**Post date:** [January 19, 2021, 8:21am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/1 "2021-01-19T08:21:35Z")

</div>

### Description

We are using codecov in our CI, lately we stoped seeing the codecov reports on PRs.  
Turns out the base report is always missing.  
Every PR has to run CI before it could be merged, and as part of CI we are uploading codecov reports. The reports are attached to the branch’s latest commit - the one that is tasted in CI.  
We are able to see the reports in the codecov UI as expected, but always there is the “Missing base report” error and there is no commit to compare.

We stoped having reports on the base branch starting 2020-12-02 although we didn’t changed anything.

To merge PRs we are using ‘squash and merge’ strategy. As a result, the commit that is merged to the base branch is different from the commit we submitted report to and missing the report.  
I actually don’t understand how it worked previously, since the only commits that we are uploading belongs to feature branches and does not enters the base branch.

Is it a known issue? Is codecov is incompatible with squash? how can we fix it?

### Commit SHAs

Please include the commit SHA(s)

### Repository

Private

### CI/CD or Build URL

Jenkins

### Uploader

bash

bash -c 'bash \<(curl -s https:///bash) -f go/idps/unit\_coverage.txt -f /integration\_coverage.txt -F server -C

### Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

### Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

### Actual Results

Please provide what actually happened.

### Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [January 19, 2021, 5:06pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/2 "2021-01-19T17:06:55Z")

</div>

@ollana, closing this out as I believe we are handling through other support channels.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [January 28, 2021, 11:17pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/3 "2021-01-28T23:17:18Z")

</div>

> [@ollana](#):
>
> Is codecov is incompatible with squash? how can we fix it?

@tom Was there any answer to these questions? We recently started using the ‘squash and merge’ strategy on Github and now all of our PRs are missing their base reports. Thanks

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [January 28, 2021, 11:49pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/4 "2021-01-28T23:49:46Z")

</div>

@mdemoret-nv can you share the Codecov output? If you are running GitHub Actions, you need to set `fetch-depth` to \> 1 or 0 in the `actions/checkout` stage.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [January 29, 2021, 12:09am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/5 "2021-01-29T00:09:35Z")

</div>

Sure, here is an example codecov output for a PR I am working on (ignore the `-N` command arg. Was experimenting):

```
16:33:50 ++ curl -s https://codecov.io/bash
16:33:50 ++ bash -s -- -F ubuntu18.04,python3.8,cuda11.0,dask -f /tmp/workspace/rapidsai/gpuci/cuml/prb/cuml-gpu-test/CUDA/11.0/GPU_LABEL/gpu-a100/OS/ubuntu18.04/PYTHON/3.8/python/cuml/cuml-dask-coverage.xml -N ''
16:33:50 
16:33:50 _____ _
16:33:50 / ____ | | |
16:33:50 | | _____ | | ______  _______
16:33:50 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
16:33:50 | |___| (_) | (_| |__/ (_| (_) \ V /
16:33:50 \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
16:33:50 Bash-20210115-cec3c92
16:33:50 
16:33:50 
16:33:50 ==> git version 2.29.2 found
16:33:50 ==> curl 7.71.1 (x86_64-conda-linux-gnu) libcurl/7.71.1 OpenSSL/1.1.1h zlib/1.2.11 libssh2/1.9.0 nghttp2/1.41.0
16:33:50 Release-Date: 2020-07-01
16:33:50 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
16:33:50 Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets
16:33:50 ==> Jenkins CI detected.
16:33:50 project root: /tmp/workspace/rapidsai/gpuci/cuml/prb/cuml-gpu-test/CUDA/11.0/GPU_LABEL/gpu-a100/OS/ubuntu18.04/PYTHON/3.8/ci/artifacts/cuml/cpu/conda_work
16:33:50 --> token set from env
16:33:50 Yaml found at: codecov.yml
16:33:50 -> Found 1 reports
16:33:50 ==> Detecting git/mercurial file structure
16:33:50 ==> Reading reports
16:33:50 + /tmp/workspace/rapidsai/gpuci/cuml/prb/cuml-gpu-test/CUDA/11.0/GPU_LABEL/gpu-a100/OS/ubuntu18.04/PYTHON/3.8/python/cuml/cuml-dask-coverage.xml bytes=663874
16:33:50 ==> Appending adjustments
16:33:50 https://docs.codecov.io/docs/fixing-reports
16:33:52 + Found adjustments
16:33:52 ==> Gzipping contents
16:33:52 96K	/tmp/codecov.Y8MTnD.gz
16:33:52 ==> Uploading reports
16:33:52 url: https://codecov.io
16:33:52 query: branch=origin%2Fpr%2F3338%2Fmerge&commit=1015a577984df158e0d0fd8e9ac776fa810340c9&build=433&build_url=https%3A%2F%2Fgpuci.gpuopenanalytics.com%2Fjob%2Frapidsai%2Fjob%2Fgpuci%2Fjob%2Fcuml%2Fjob%2Fprb%2Fjob%2Fcuml-gpu-test%2FCUDA%3D11.0%2CGPU_LABEL%3Dgpu-a100%2COS%3Dubuntu18.04%2CPYTHON%3D3.8%2F433%2F&name=&tag=&slug=%2Fopt%2Fconda%2Fenvs%2Frapids%2Fconda-bld%2Fgit_cache%2Fjenkins%2Fworkspace%2Frapidsai%2Fgpuci%2Fcuml%2Fprb%2Fcuml-cpu-cuda-build%2FCUDA%2F11.0&service=jenkins&flags=ubuntu18.04,python3.8,cuda11.0,dask&pr=&job=&cmd_args=F,f,N
16:33:52 -> Pinging Codecov
16:33:52 https://codecov.io/upload/v4?package=bash-20210115-cec3c92&token=secret&branch=origin%2Fpr%2F3338%2Fmerge&commit=1015a577984df158e0d0fd8e9ac776fa810340c9&build=433&build_url=https%3A%2F%2Fgpuci.gpuopenanalytics.com%2Fjob%2Frapidsai%2Fjob%2Fgpuci%2Fjob%2Fcuml%2Fjob%2Fprb%2Fjob%2Fcuml-gpu-test%2FCUDA%3D11.0%2CGPU_LABEL%3Dgpu-a100%2COS%3Dubuntu18.04%2CPYTHON%3D3.8%2F433%2F&name=&tag=&slug=%2Fopt%2Fconda%2Fenvs%2Frapids%2Fconda-bld%2Fgit_cache%2Fjenkins%2Fworkspace%2Frapidsai%2Fgpuci%2Fcuml%2Fprb%2Fcuml-cpu-cuda-build%2FCUDA%2F11.0&service=jenkins&flags=ubuntu18.04,python3.8,cuda11.0,dask&pr=&job=&cmd_args=F,f,N
16:33:53 -> Uploading to
16:33:53 https://storage.googleapis.com/codecov/v4/raw/2021-01-21/90E8FDF45022B885DD3241BDCE6BA529/ec2ce30f1753bdb3eaa301c3051757a88cdcd6a1/2968281e-446f-491f-9423-e7af00b42379.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20210121%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210121T233353Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7f20ab9400425e6fe126a94010498abda2f211b8b1559d897ce0d3c20d1ff4de
16:33:53 % Total % Received % Xferd Average Speed Time Time Time Current
16:33:53 Dload Upload Total Spent Left Speed
16:33:53 
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 94730 0 0 100 94730 0 656k --:--:-- --:--:-- --:--:-- 660k
16:33:53 -> View reports at https://codecov.io/github/rapidsai/cuml/commit/ec2ce30f1753bdb3eaa301c3051757a88cdcd6a1

```

You can see our PRs that are all missing the base report here: [Codecov](https://app.codecov.io/gh/rapidsai/cuml/pulls?page=1&state=open&order=-pullid). Let me know if you need any more info.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 3, 2021, 7:12pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/6 "2021-02-03T19:12:24Z")

</div>

@tom any updates? Since I posted this message, we are encountering another issue where all recent commits are saying “Unable to find commit in Github”.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/4/4f60c6927b45e1f0df55424e45bbae4920a634e5.png)

We have never seen these messages before and it is making it difficult to work around my earlier “squash and merge” issue.

Thanks

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [February 4, 2021, 3:19pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/7 "2021-02-04T15:19:42Z")

</div>

Hi @mdemoret-nv, I have a suspicion as to why this is happening, but I’d like to try to rule out a few things. If you don’t mind, I would like to see if it was a particular change in the bash uploader that caused this. Would you be able to upload using this in the curl `https://raw.githubusercontent.com/codecov/codecov-bash/20201130-cc6d3fe/codecov` as opposed to `https://codecov.io/bash`?

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 4, 2021, 8:55pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/8 "2021-02-04T20:55:41Z")

</div>

@tom We actually don’t use the bash uploader because it exits with a 500 error on some of our nodes and not others (You can see the error at the end of the build log [here](https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cuml/job/prb/job/cuml-gpu-test/CUDA=10.1,GPU_LABEL=gpu,OS=ubuntu16.04,PYTHON=3.7/433/console)). Instead we have been using v2.1.11 of the python uploader which doesn’t run into the same 500 error.

I can try to use that version of the bash uploader if you think it would still be useful. If there is anything else I can try to rule out issues, let me know.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [February 11, 2021, 12:19am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/9 "2021-02-11T00:19:38Z")

</div>

@mdemoret-nv, yes that would be helpful. I can’t track down the 500 as our logs don’t go that far back, but if you do get it again, let me know. Our bash uploader should be more sturdy and reliable.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 11, 2021, 12:41am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/10 "2021-02-11T00:41:14Z")

</div>

@tom I was able to do some more digging today and discovered why the bash uploader wasn’t working for us but the python client is. The root cause appears to be the `--connect-timeout 2` argument to `curl` in the bash uploader. We were not aware of this issue but our DNS lookup was taking about ~10 seconds causing the `curl` command to timeout. This issue was hidden by the bash client due to the line:

```auto
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')

```

We have fixed the issue and reverted back to using the bash uploader and everything is working smoothly now (as far as uploading the reports to CodeCov). It might be a good idea to update the bash uploader to show any curl errors in case others have similar issues.

Thanks for your help on this. We wouldn’t have looked into the issue more if you didn’t suggest trying the bash uploader again. However, we still havent solved the original issue where the base report for PR’s is missing after switching to a “squash and merge” strategy on Github.

Do you have any suggestions on fixing the “squash and merge” issue?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [February 11, 2021, 12:50am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/12 "2021-02-11T00:50:57Z")

</div>

@mdemoret-nv, that’s an incredible catch! I’ll make a note to update the uploader to expose `curl` issues. Thanks for finding that, I really appreciate it.

Do you have a PR/commit SHA that I can take a look at that has the issue? I don’t have any specific tips, but I can poke the product team with something specific, or find a workaround that fits your needs.

---

<div class="post-metadata">

**Author:** ![ollana](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ollana/32/1488_2.png) [@ollana](https://community.codecov.com/u/ollana)\
**Post date:** [February 11, 2021, 6:24pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/13 "2021-02-11T18:24:32Z")

</div>

@mdemoret-nv, for me, running tests and uploading coverage on the base branch after every merge solved the issue.

Every time new commit enters to the base branch, CI pipeline is triggered to run on the base branch.  
Then the coverage is uploaded for the commit id of the base branch and next PRs are compare to that.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 18, 2021, 2:15am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/14 "2021-02-18T02:15:54Z")

</div>

> [@tom](#):
>
> Do you have a PR/commit SHA that I can take a look at that has the issue?

This is the PR I have been working on: [https://github.com/rapidsai/cuml/pull/3338](https://github.com/rapidsai/cuml/pull/3338). If you click on the Codecov report link in the comment, it only shows an error page now:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/8/808ebf7bbcfd13795908cad3c48be1863acc4bc4.png)

@tom Please let me know if there is anything else I can help with on my end. Would be great to hear what your product team has to say about this issue.

> [@ollana](#):
>
> uploading coverage on the base branch after every merge solved the issue.

Thanks for the advice. We have been considering this approach so I am glad to hear it’s a viable method. Our hesitation with going this route is it would add to our already overworked CI system (which currently takes \>12 compute hours per commit/PR). We would like to avoid adding an additional CI run who’s only purpose is to re-upload identical coverage with a different commit SHA.

However, this may be the route we have to use.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [February 18, 2021, 4:52pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/15 "2021-02-18T16:52:16Z")

</div>

@mdemoret-nv

We have an (undocumented) option in the codecov.yml you can try adding

```auto
codecov:
  allow_coverage_offsets: true

```

I think if you add a commit to that PR it should resolve. Let me know if it doesn’t.

* * *

Something we have been working on is a better squash-\>merge strategy for users who don’t run CI on the default branch. A possible workaround so you don’t have to run EVERYTHING would be to

1. Save down the coverage report sent to Codecov using the `-q` option.
2. Save that file as an artifact (GitHub Actions has `upload-artifact`)
3. Trigger CI on merge, but only to download the above artifact and upload with the [-z](https://github.com/codecov/codecov-bash/blob/master/codecov#L150) option.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 19, 2021, 11:46pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/16 "2021-02-19T23:46:29Z")

</div>

@tom Thanks for the suggestion. I had noticed that mentioned once in the docs but couldnt find any other reference to it.

Unfortunately I tried that out and didnt see any change. You can view the PR [here](https://github.com/rapidsai/cuml/pull/3524) and the the codecov output is at the bottom of the log [here](https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cuml/job/prb/job/cuml-gpu-test/CUDA=11.0,GPU_LABEL=gpu-a100,OS=ubuntu18.04,PYTHON=3.8/673/console)

Do you have any other suggestions as to why this isn’t working for us? The only change I have seen is the [Codecov.io](http://Codecov.io) reports now show “not found” for the base:

![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/6/659c88a5ead6846145f10d40d2735942370aaf67.png)

Before this change, a base commit was still shown, even if it was incorrect.

---

<div class="post-metadata">

**Author:** ![mdemoret-nv](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mdemoret-nv/32/1517_2.png) [@mdemoret-nv](https://community.codecov.com/u/mdemoret-nv)\
**Post date:** [February 25, 2021, 12:37am UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/17 "2021-02-25T00:37:55Z")

</div>

@tom Sorry to keep bombarding you with questions but we keep running into new issues. Lately, some of our builds have failed to upload coverage with a 400 error and the message “Invalid request parameters”. Any ideas? Here is the [log](https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cuml/job/branches/job/cuml-gpu-build-branch-0.19/3/CUDA=10.1/console):

```auto
15:10:57 _____ _
15:10:57 / ____ | | |
15:10:57 | | _____ | | ______  _______
15:10:57 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
15:10:57 | |___| (_) | (_| |__/ (_| (_) \ V /
15:10:57 \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
15:10:57 Bash-20210129-7c25fce
15:10:57 
15:10:57 
15:10:57 ==> git version 2.30.1 found
15:10:57 ==> curl 7.71.1 (x86_64-conda-linux-gnu) libcurl/7.71.1 OpenSSL/1.1.1j zlib/1.2.11 libssh2/1.9.0 nghttp2/1.43.0
15:10:57 Release-Date: 2020-07-01
15:10:57 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
15:10:57 Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets
15:10:57 ==> Jenkins CI detected.
15:10:57 project root: /var/lib/jenkins/workspace/rapidsai/gpuci/cuml/branches/cuml-gpu-build-branch-0.19/CUDA/10.1/ci/artifacts/cuml/cpu/conda_work
15:10:57 --> token set from env
15:10:57 --> slug set from env
15:10:57 Yaml found at: codecov.yml
15:10:57 -> Found 1 reports
15:10:57 ==> Detecting git/mercurial file structure
15:10:57 ==> Appending build variables
15:10:57 + OS
15:10:57 + PYTHON
15:10:57 + CUDA
15:10:57 ==> Reading reports
15:10:57 + /var/lib/jenkins/workspace/rapidsai/gpuci/cuml/branches/cuml-gpu-build-branch-0.19/CUDA/10.1/python/cuml/cuml-dask-coverage.xml bytes=663872
15:10:57 ==> Appending adjustments
15:10:57 https://docs.codecov.io/docs/fixing-reports
15:11:00 + Found adjustments
15:11:00 ==> Gzipping contents
15:11:00 96K	/tmp/codecov.rxHc2R.gz
15:11:00 ==> Uploading reports
15:11:00 url: https://codecov.io
15:11:00 query: branch=origin%2Fbranch-0.19&commit=6dfff668d7f88c254f78d7568d55b3938493d6aa&build=3&build_url=https%3A%2F%2Fgpuci.gpuopenanalytics.com%2Fjob%2Frapidsai%2Fjob%2Fgpuci%2Fjob%2Fcuml%2Fjob%2Fbranches%2Fjob%2Fcuml-gpu-build-branch-0.19%2FCUDA%3D10.1%2F3%2F&name=CUDA%3D10.1%2Cdask&tag=&slug=rapidsai%2Fcuml&service=jenkins&flags=dask&pr=&job=&cmd_args=F,f,n,c,e
15:11:00 -> Pinging Codecov
15:11:00 https://codecov.io/upload/v4?package=bash-20210129-7c25fce&token=secret&branch=origin%2Fbranch-0.19&commit=6dfff668d7f88c254f78d7568d55b3938493d6aa&build=3&build_url=https%3A%2F%2Fgpuci.gpuopenanalytics.com%2Fjob%2Frapidsai%2Fjob%2Fgpuci%2Fjob%2Fcuml%2Fjob%2Fbranches%2Fjob%2Fcuml-gpu-build-branch-0.19%2FCUDA%3D10.1%2F3%2F&name=CUDA%3D10.1%2Cdask&tag=&slug=rapidsai%2Fcuml&service=jenkins&flags=dask&pr=&job=&cmd_args=F,f,n,c,e
15:11:00 Invalid request parameters
15:11:00 400

```

If I try to recreate the exact `curl` call to Codecov’s API, I do not get the same error.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 5, 2021, 4:55pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/19 "2021-04-05T16:55:52Z")

</div>

@mdemoret-nv sorry for the wait here. We’ve made a fix for your case regarding uploads. Let me know if it works for you now!

---

<div class="post-metadata">

**Author:** ![wagnerpereira](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/wagnerpereira/32/1735_2.png) [@wagnerpereira](https://community.codecov.com/u/wagnerpereira)\
**Post date:** [April 7, 2021, 3:11pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/20 "2021-04-07T15:11:27Z")

</div>

Same issue here. We run tests and build container image once on the pull request workflow and when merge to master, we just create git tag and tag the PR container aproved image.

So I’m saving PR coverage reports to send it again to codecov as the master coverage report, how to achieve that?

Searching on [community.codecov.io](http://community.codecov.io) I found the exactly solution that I’m trying to acomplish with no sucess using github actions:

Saving PR reports to send againg to codecov on merge, like:

# release\_workflow

```
 on:
  pull_request:
    types: [closed]
    branches:
      - master
 ...
    steps:
...
    - name: Download Merged PR Test coverage reports
      uses: actions/download-artifact@v2
      with:
         name: tests-report
         path: coverage/

    - name: Upload Unit Tests Coverage report to Codecov
     uses: codecov/codecov-action@v1
     with:
         token: ${{ secrets.CODECOV_TOKEN }}
         flags: unittests
         file: ./coverage/coverage-unit-tests.xml
         override_branch: master

    - name: Upload Integration Test Coverage report to Codecov
      uses: codecov/codecov-action@v1
      with:
         token: ${{ secrets.CODECOV_TOKEN }}
         flags: integrationtests
         file: ./coverage/coverage-integration-tests.xml
         override_branch: master

```

…

Codecov upload output when PR is tested ( pr workflow ):

 ![Screen Shot 2021-04-07 at 12.08.30](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/9/9b651566e82609d5be81997cfd948c1502c78a1d.png)

I can’t see results for branch master on codecov UI

Thanks in advance

---

<div class="post-metadata">

**Author:** ![wagnerpereira](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/wagnerpereira/32/1735_2.png) [@wagnerpereira](https://community.codecov.com/u/wagnerpereira)\
**Post date:** [April 7, 2021, 3:12pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/21 "2021-04-07T15:12:19Z")

</div>

Codecov upload output when PR is closed and merged to master ( release workflow ):

 ![Screen Shot 2021-04-07 at 12.04.59](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/8/8124a726f7209afd1ad23dfb19c824f8e80e2a6d.png)

Thanks againg for any help

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 7, 2021, 9:43pm UTC](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480/22 "2021-04-07T21:43:30Z")

</div>

@wagnerpereira, apologies I’m not sure this is the same issue. Do you mind opening a new ticket with this info?

[Next page](https://community.codecov.com/t/unable-to-determine-a-parent-commit-to-compare-against-in-base-branch-after-squash-and-merge/2480.md?page=2)
