Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Oct 30, 2020

As requested in fix for checkpatch issue PR #2543 which will be rebased
on top of this.

Signed-off-by: Marc Herbert marc.herbert@intel.com

.travis.yml Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, what are those '*unshallow_for_merge_base" and "&unshallow_for_merge_base"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're YAML anchors = how to avoid copy/paste/diverge.

@kv2019i
Copy link
Collaborator

kv2019i commented Nov 2, 2020

@marc-hb Shouldn't the checkpatch run https://travis-ci.org/github/thesofproject/linux/builds/740309390 succeed here (i.e. detect git clone is too shallow and run unshallow on the repo before checkpatch)...?

@marc-hb
Copy link
Collaborator Author

marc-hb commented Nov 2, 2020

@marc-hb Shouldn't the checkpatch run succeed here (i.e. detect git clone is too shallow and run unshallow on the repo before checkpatch)...?

Yes it should. But it doesn't. @ranj063 spotted a similar issue in https://travis-ci.org/github/thesofproject/linux/jobs/739977895.

I reproduced this locally at last and root-caused it to the crazy (buggy?) way git fetch works in shallow clones. I'm drafting a bug right now to document this.

As requested in fix for checkpatch issue PR thesofproject#2543 which will be rebased
on top of this.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review November 3, 2020 17:13
@marc-hb
Copy link
Collaborator Author

marc-hb commented Nov 3, 2020

Rebased and added --all option to git merge-base command to help (a bit) with shallowness issues mentioned above.

https://travis-ci.org/github/thesofproject/linux/builds/741026106 is looking good.

Even though the #2543 "fix" is uncertain and needs to be discussed and revisited I think this PR is good because it has no real functional change, it's just removing a confusing "optimization" and making the Travis output simpler and clearer.

PS: ICL_RVP_HDA's failure to boot in https://sof-ci.01.org/linuxpr/PR2547/build4824/devicetest can obviously not be related to this.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Nov 6, 2020

I reproduced this locally at last and root-caused it to the crazy (buggy?) way git fetch works in shallow clones. I'm drafting a bug right now to document this.

Finally done, see graphical explanation of the issue in freshly filed Shallow cloning in CI can create pull requests with one million commits #2556

@plbossart
Copy link
Member

Not sure where this is going and if Travis is still relevant. closing.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Jan 22, 2021

Summary at #2543 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants