Open Bug 1804694 Opened 2 years ago Updated 3 days ago

Use sparse git checkouts instead of a full clone

Categories

(Testing :: Raptor, task, P2)

task

Tracking

(Not tracked)

People

(Reporter: sparky, Assigned: aglavic)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fxp])

This bug is for performing sparse checkouts instead of a full clone for the tests. This will help dealing with larger repositories like the perf-automation one (which is 500Mb for the full clone).

I've written some code for this that works locally but it requires git 2.30+:

    def _sparse_clone(self, benchmark_repository, dest):
        subprocess.check_call(
            ["git", "clone", "--depth", "1", "--filter", "blob:none", "--sparse", benchmark_repository, dest]
        )
        subprocess.check_call(
            ["git", "sparse-checkout", "set", self.test.get("repository_path", "benchmarks")],
            cwd=dest
        )
Blocks: 1867666
Whiteboard: [fxp]
See Also: → 1884354

The dependency is now resolved, is there anything else stopping us from moving forward with this optimisation?

Flags: needinfo?(gmierz2)

Nope, we can prioritize this now.

Flags: needinfo?(gmierz2)
Assignee: nobody → aglavic
You need to log in before you can comment on or make changes to this bug.