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)
Testing
Raptor
Tracking
(Not tracked)
NEW
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
)
Updated•3 months ago
|
Whiteboard: [fxp]
Updated•3 months ago
|
Comment 1•1 month ago
|
||
The dependency is now resolved, is there anything else stopping us from moving forward with this optimisation?
Flags: needinfo?(gmierz2)
Assignee | ||
Updated•3 days ago
|
Assignee: nobody → aglavic
You need to log in
before you can comment on or make changes to this bug.
Description
•