@@ -245,7 +245,7 @@ func newContainerd(cdAddress string) (*containerd.Client, error) {
245
245
246
246
// moby/buildkit#1336
247
247
func testCacheExportCacheKeyLoop (t * testing.T , sb integration.Sandbox ) {
248
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
248
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheBackendLocal )
249
249
c , err := New (sb .Context (), sb .Address ())
250
250
require .NoError (t , err )
251
251
defer c .Close ()
@@ -3747,7 +3747,7 @@ func testBuildPushAndValidate(t *testing.T, sb integration.Sandbox) {
3747
3747
}
3748
3748
3749
3749
func testStargzLazyRegistryCacheImportExport (t * testing.T , sb integration.Sandbox ) {
3750
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
3750
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendRegistry )
3751
3751
requiresLinux (t )
3752
3752
cdAddress := sb .ContainerdAddress ()
3753
3753
if cdAddress == "" || sb .Snapshotter () != "stargz" {
@@ -3945,7 +3945,12 @@ func testStargzLazyRegistryCacheImportExport(t *testing.T, sb integration.Sandbo
3945
3945
}
3946
3946
3947
3947
func testStargzLazyInlineCacheImportExport (t * testing.T , sb integration.Sandbox ) {
3948
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
3948
+ integration .CheckFeatureCompat (t , sb ,
3949
+ integration .FeatureCacheExport ,
3950
+ integration .FeatureCacheImport ,
3951
+ integration .FeatureCacheBackendInline ,
3952
+ integration .FeatureCacheBackendRegistry ,
3953
+ )
3949
3954
requiresLinux (t )
3950
3955
cdAddress := sb .ContainerdAddress ()
3951
3956
if cdAddress == "" || sb .Snapshotter () != "stargz" {
@@ -4392,7 +4397,7 @@ func testLazyImagePush(t *testing.T, sb integration.Sandbox) {
4392
4397
}
4393
4398
4394
4399
func testZstdLocalCacheExport (t * testing.T , sb integration.Sandbox ) {
4395
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4400
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheBackendLocal )
4396
4401
c , err := New (sb .Context (), sb .Address ())
4397
4402
require .NoError (t , err )
4398
4403
defer c .Close ()
@@ -4451,7 +4456,7 @@ func testZstdLocalCacheExport(t *testing.T, sb integration.Sandbox) {
4451
4456
}
4452
4457
4453
4458
func testCacheExportIgnoreError (t * testing.T , sb integration.Sandbox ) {
4454
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4459
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheBackendLocal )
4455
4460
c , err := New (sb .Context (), sb .Address ())
4456
4461
require .NoError (t , err )
4457
4462
defer c .Close ()
@@ -4558,7 +4563,7 @@ func testCacheExportIgnoreError(t *testing.T, sb integration.Sandbox) {
4558
4563
}
4559
4564
4560
4565
func testUncompressedLocalCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4561
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4566
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendLocal )
4562
4567
dir := t .TempDir ()
4563
4568
im := CacheOptionsEntry {
4564
4569
Type : "local" ,
@@ -4578,7 +4583,7 @@ func testUncompressedLocalCacheImportExport(t *testing.T, sb integration.Sandbox
4578
4583
}
4579
4584
4580
4585
func testUncompressedRegistryCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4581
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4586
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendRegistry )
4582
4587
registry , err := sb .NewRegistry ()
4583
4588
if errors .Is (err , integration .ErrRequirements ) {
4584
4589
t .Skip (err .Error ())
@@ -4603,7 +4608,7 @@ func testUncompressedRegistryCacheImportExport(t *testing.T, sb integration.Sand
4603
4608
}
4604
4609
4605
4610
func testZstdLocalCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4606
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4611
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendLocal )
4607
4612
dir := t .TempDir ()
4608
4613
im := CacheOptionsEntry {
4609
4614
Type : "local" ,
@@ -4624,7 +4629,7 @@ func testZstdLocalCacheImportExport(t *testing.T, sb integration.Sandbox) {
4624
4629
}
4625
4630
4626
4631
func testZstdRegistryCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4627
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4632
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendRegistry )
4628
4633
registry , err := sb .NewRegistry ()
4629
4634
if errors .Is (err , integration .ErrRequirements ) {
4630
4635
t .Skip (err .Error ())
@@ -4712,7 +4717,7 @@ func testBasicCacheImportExport(t *testing.T, sb integration.Sandbox, cacheOptio
4712
4717
}
4713
4718
4714
4719
func testBasicRegistryCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4715
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4720
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendRegistry )
4716
4721
registry , err := sb .NewRegistry ()
4717
4722
if errors .Is (err , integration .ErrRequirements ) {
4718
4723
t .Skip (err .Error ())
@@ -4729,7 +4734,7 @@ func testBasicRegistryCacheImportExport(t *testing.T, sb integration.Sandbox) {
4729
4734
}
4730
4735
4731
4736
func testMultipleRegistryCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4732
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4737
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendRegistry )
4733
4738
registry , err := sb .NewRegistry ()
4734
4739
if errors .Is (err , integration .ErrRequirements ) {
4735
4740
t .Skip (err .Error ())
@@ -4752,7 +4757,7 @@ func testMultipleRegistryCacheImportExport(t *testing.T, sb integration.Sandbox)
4752
4757
}
4753
4758
4754
4759
func testBasicLocalCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4755
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4760
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendLocal )
4756
4761
dir := t .TempDir ()
4757
4762
im := CacheOptionsEntry {
4758
4763
Type : "local" ,
@@ -4770,7 +4775,7 @@ func testBasicLocalCacheImportExport(t *testing.T, sb integration.Sandbox) {
4770
4775
}
4771
4776
4772
4777
func testBasicS3CacheImportExport (t * testing.T , sb integration.Sandbox ) {
4773
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4778
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendS3 )
4774
4779
4775
4780
opts := integration.MinioOpts {
4776
4781
Region : "us-east-1" ,
@@ -4808,7 +4813,7 @@ func testBasicS3CacheImportExport(t *testing.T, sb integration.Sandbox) {
4808
4813
}
4809
4814
4810
4815
func testBasicAzblobCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4811
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
4816
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendAzblob )
4812
4817
4813
4818
opts := integration.AzuriteOpts {
4814
4819
AccountName : "azblobcacheaccount" ,
@@ -4841,7 +4846,13 @@ func testBasicAzblobCacheImportExport(t *testing.T, sb integration.Sandbox) {
4841
4846
}
4842
4847
4843
4848
func testBasicInlineCacheImportExport (t * testing.T , sb integration.Sandbox ) {
4844
- integration .CheckFeatureCompat (t , sb , integration .FeatureDirectPush , integration .FeatureCacheImport )
4849
+ integration .CheckFeatureCompat (t , sb ,
4850
+ integration .FeatureDirectPush ,
4851
+ integration .FeatureCacheExport ,
4852
+ integration .FeatureCacheImport ,
4853
+ integration .FeatureCacheBackendInline ,
4854
+ integration .FeatureCacheBackendRegistry ,
4855
+ )
4845
4856
requiresLinux (t )
4846
4857
registry , err := sb .NewRegistry ()
4847
4858
if errors .Is (err , integration .ErrRequirements ) {
@@ -5001,7 +5012,7 @@ func testBasicInlineCacheImportExport(t *testing.T, sb integration.Sandbox) {
5001
5012
}
5002
5013
5003
5014
func testBasicGhaCacheImportExport (t * testing.T , sb integration.Sandbox ) {
5004
- integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport )
5015
+ integration .CheckFeatureCompat (t , sb , integration .FeatureCacheExport , integration . FeatureCacheImport , integration . FeatureCacheBackendGha )
5005
5016
runtimeToken := os .Getenv ("ACTIONS_RUNTIME_TOKEN" )
5006
5017
cacheURL := os .Getenv ("ACTIONS_CACHE_URL" )
5007
5018
if runtimeToken == "" || cacheURL == "" {
@@ -5806,6 +5817,7 @@ func testProxyEnv(t *testing.T, sb integration.Sandbox) {
5806
5817
}
5807
5818
5808
5819
func testMergeOp (t * testing.T , sb integration.Sandbox ) {
5820
+ integration .CheckFeatureCompat (t , sb , integration .FeatureMergeDiff )
5809
5821
requiresLinux (t )
5810
5822
5811
5823
c , err := New (sb .Context (), sb .Address ())
@@ -5918,7 +5930,7 @@ func testMergeOpCacheMax(t *testing.T, sb integration.Sandbox) {
5918
5930
5919
5931
func testMergeOpCache (t * testing.T , sb integration.Sandbox , mode string ) {
5920
5932
t .Helper ()
5921
- integration .CheckFeatureCompat (t , sb , integration .FeatureDirectPush )
5933
+ integration .CheckFeatureCompat (t , sb , integration .FeatureDirectPush , integration . FeatureMergeDiff )
5922
5934
requiresLinux (t )
5923
5935
5924
5936
cdAddress := sb .ContainerdAddress ()
0 commit comments