From 6bf07d234bc23aff0dbe46d0a0c57fb6adb12811 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Tue, 2 Dec 2025 17:27:15 +0800 Subject: [PATCH 1/2] VERCEL: add to intergration test --- .github/workflows/pr_integration_tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index 1f7ff1d0f7..e1e1dafce5 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -52,7 +52,7 @@ jobs: Write-Host "Integration test providers: $Providers" echo "integration_test_providers=$(ConvertTo-Json -InputObject $Providers -Compress)" >> $env:GITHUB_OUTPUT env: - PROVIDERS: "['ALIDNS', 'AXFRDDNS', 'AXFRDDNS_DNSSEC', 'AZURE_DNS','BIND','BUNNY_DNS','CLOUDFLAREAPI','CLOUDNS','CNR','DIGITALOCEAN','FORTIGATE','GANDI_V5','GCLOUD','HEDNS','HETZNER_V2','HEXONET','HUAWEICLOUD','INWX','JOKER','MYTHICBEASTS', 'NAMEDOTCOM','NS1','POWERDNS','ROUTE53','SAKURACLOUD','TRANSIP']" + PROVIDERS: "['ALIDNS', 'AXFRDDNS', 'AXFRDDNS_DNSSEC', 'AZURE_DNS','BIND','BUNNY_DNS','CLOUDFLAREAPI','CLOUDNS','CNR','DIGITALOCEAN','FORTIGATE','GANDI_V5','GCLOUD','HEDNS','HETZNER_V2','HEXONET','HUAWEICLOUD','INWX','JOKER','MYTHICBEASTS', 'NAMEDOTCOM','NS1','POWERDNS','ROUTE53','SAKURACLOUD','TRANSIP','VERCEL']" ENV_CONTEXT: ${{ toJson(env) }} VARS_CONTEXT: ${{ toJson(vars) }} SECRETS_CONTEXT: ${{ toJson(secrets) }} @@ -99,6 +99,7 @@ jobs: ROUTE53_DOMAIN: ${{ vars.ROUTE53_DOMAIN }} SAKURACLOUD_DOMAIN: ${{ vars.SAKURACLOUD_DOMAIN }} TRANSIP_DOMAIN: ${{ vars.TRANSIP_DOMAIN }} + VERCEL_DOMAIN: ${{ vars.VERCEL_DOMAIN }} # PROVIDER SECRET LIST # The above providers have additional env variables they @@ -193,6 +194,9 @@ jobs: # TRANSIP_ACCOUNT_NAME: ${{ secrets.TRANSIP_ACCOUNT_NAME }} TRANSIP_PRIVATE_KEY: ${{ secrets.TRANSIP_PRIVATE_KEY }} + # + VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }} + VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} concurrency: group: ${{ github.workflow }}-${{ matrix.provider }} From f500bfb1fbaf3374c85af09e4ec4b47b8fc4317f Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 7 Dec 2025 15:35:40 +0800 Subject: [PATCH 2/2] VERCEL: skip all `IGNORE*` tests --- integrationTest/integration_test.go | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 090d08620b..ec54583164 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -1286,6 +1286,9 @@ func makeTests() []*TestGroup { // them anyway because one never knows. Ready? Let's go! testgroup("IGNORE main", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), + tc("Create some records", a("foo", "1.2.3.4"), a("foo", "2.3.4.5"), @@ -1430,6 +1433,9 @@ func makeTests() []*TestGroup { // Same as "main" but with an apex ("@") record. testgroup("IGNORE apex", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), + tc("Create some records", a("@", "1.2.3.4"), a("@", "2.3.4.5"), @@ -1565,6 +1571,9 @@ func makeTests() []*TestGroup { // IGNORE with unsafe notation testgroup("IGNORE unsafe", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), + tc("Create some records", txt("foo", "simple"), a("foo", "1.2.3.4"), @@ -1604,6 +1613,9 @@ func makeTests() []*TestGroup { // IGNORE with wildcards testgroup("IGNORE wilds", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), + tc("Create some records", a("foo.bat", "1.2.3.4"), a("foo.bat", "2.3.4.5"), @@ -1663,7 +1675,10 @@ func makeTests() []*TestGroup { // IGNORE with changes testgroup("IGNORE with modify", - not("NAMECHEAP"), // Will fail until converted to use diff2 module. + not( + "NAMECHEAP", // Will fail until converted to use diff2 module. + "VERCEL", // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + ), tc("Create some records", a("foo", "1.1.1.1"), a("foo", "10.10.10.10"), @@ -1772,6 +1787,8 @@ func makeTests() []*TestGroup { // https://github.com/StackExchange/dnscontrol/issues/2285 testgroup("IGNORE_TARGET b2285", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), tc("Create some records", cname("foo", "redact1.acm-validations.aws."), cname("bar", "redact2.acm-validations.aws."), @@ -1791,6 +1808,8 @@ func makeTests() []*TestGroup { // changes. This resulted in the deSEC provider generating an // empty upsert, which the API rejected. testgroup("IGNORE everything b2822", + // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + not("VERCEL"), tc("Create some records", a("dyndns-city1", "91.42.1.1"), a("dyndns-city2", "91.42.1.2"), @@ -1815,7 +1834,10 @@ func makeTests() []*TestGroup { // https://github.com/StackExchange/dnscontrol/issues/3227 testgroup("IGNORE w/change b3227", - not("NAMECHEAP"), // Will fail until converted to use diff2 module. + not( + "NAMECHEAP", // Will fail until converted to use diff2 module. + "VERCEL", // Vercel has a very strict rate limit, let's just skip IGNORE* tests for Vercel + ), tc("Create some records", a("testignore", "8.8.8.8"), a("testdefined", "9.9.9.9"),