Skip to content

Conversation

abdhaleegit
Copy link
Collaborator

Earlier the CI build jobs was cloning the linux source with full git history increasing job time, now as per nysal suggesion added shallow-since option to download code history only till last good commit.

With this changes, requires CI code changes to fetch and update last good commit date for further reference

Earlier the CI build jobs was cloning the linux source
with full git history increasing job time, now as per
nysal suggesion added shallow-since option to download
code history only till last good commit.

With this changes, requires CI code changes to fetch and
update last good commit date for further reference

Signed-off-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
@abdhaleegit abdhaleegit self-assigned this Aug 18, 2025
@vrbagalkot
Copy link

@abdhaleegit Please attach run logs.

if not self.branch:
self.branch='master'
self.con.run_command("git clone -b {} {} linux".format( self.branch, self.repo),timeout=3000)
self.con.run_command("git clone --shallow-since={} -b {} {} linux".format(self.commit_date, self.branch, self.repo),timeout=3000)

Choose a reason for hiding this comment

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

I also see git clone command being used in other places in the code, dont we need to use --shallow there?

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.

2 participants