@duckduckgo/autoconsent 9.7.1 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,16 +7,20 @@ on:
7
7
  - closed
8
8
  - reopened
9
9
  - synchronize
10
+ - review_requested
10
11
 
11
12
  jobs:
12
13
  sync:
13
14
  runs-on: ubuntu-latest
15
+ environment: development
14
16
  concurrency: 'asana-${{ github.repository }}'
15
17
  steps:
16
18
  - uses: actions/checkout@v3
17
- - uses: sammacbeth/action-asana-sync@v3
19
+ - uses: sammacbeth/action-asana-sync@v4
18
20
  with:
19
21
  ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
20
22
  ASANA_WORKSPACE_ID: ${{ secrets.ASANA_WORKSPACE_ID }}
21
23
  ASANA_PROJECT_ID: '1203409672862476'
22
24
  move_to_section_id: '1203409672862480'
25
+ USER_MAP: ${{ vars.USER_MAP }}
26
+ NO_AUTOCLOSE_PROJECTS: '1203409672862476'
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ # v10.0.0 (Fri Mar 01 2024)
2
+
3
+ #### 💥 Breaking Change
4
+
5
+ - Bump the dev-dependencies group with 4 updates [#377](https://github.com/duckduckgo/autoconsent/pull/377) ([@dependabot[bot]](https://github.com/dependabot[bot]))
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - Support reject button in clinch [#375](https://github.com/duckduckgo/autoconsent/pull/375) ([@muodov](https://github.com/muodov))
10
+
11
+ #### 🐛 Bug Fix
12
+
13
+ - Update action-asana-sync [#378](https://github.com/duckduckgo/autoconsent/pull/378) ([@sammacbeth](https://github.com/sammacbeth))
14
+ - Setup github status reporting for Jenkins multibranch job [#373](https://github.com/duckduckgo/autoconsent/pull/373) ([@sammacbeth](https://github.com/sammacbeth))
15
+ - Monthly Coverage data update [#372](https://github.com/duckduckgo/autoconsent/pull/372) (dax@duckduckgo.com [@sammacbeth](https://github.com/sammacbeth))
16
+
17
+ #### ⚠️ Pushed to `main`
18
+
19
+ - Update asana.yml ([@sammacbeth](https://github.com/sammacbeth))
20
+
21
+ #### 🔩 Dependency Updates
22
+
23
+ - Bump the dev-dependencies group with 7 updates [#382](https://github.com/duckduckgo/autoconsent/pull/382) ([@dependabot[bot]](https://github.com/dependabot[bot]))
24
+ - Bump the dev-dependencies group with 5 updates [#374](https://github.com/duckduckgo/autoconsent/pull/374) ([@dependabot[bot]](https://github.com/dependabot[bot]))
25
+
26
+ #### Authors: 4
27
+
28
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
29
+ - Dax the Deployer (dax@duckduckgo.com)
30
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
31
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
32
+
33
+ ---
34
+
35
+ # v9.7.2 (Fri Feb 02 2024)
36
+
37
+ #### 🐛 Bug Fix
38
+
39
+ - Tweak some site-specific rules to support mobile versions [#371](https://github.com/duckduckgo/autoconsent/pull/371) ([@muodov](https://github.com/muodov))
40
+
41
+ #### Authors: 1
42
+
43
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
44
+
45
+ ---
46
+
1
47
  # v9.7.1 (Fri Feb 02 2024)
2
48
 
3
49
  #### 🐛 Bug Fix
package/Jenkinsfile CHANGED
@@ -7,7 +7,8 @@ def runPlaywrightTests(resultDir, browser, grep) {
7
7
  """
8
8
  }
9
9
  } finally {
10
- junit 'results.xml'
10
+ def summary = junit skipMarkingBuildUnstable: true, skipPublishingChecks: true, testResults: 'results.xml'
11
+ return summary
11
12
  }
12
13
  }
13
14
 
@@ -34,6 +35,12 @@ pipeline {
34
35
  }
35
36
  stages {
36
37
  stage('Checkout') {
38
+ when {
39
+ expression {
40
+ // skip the BRANCH variable if this is running in a multibranch job
41
+ return env.BRANCH_NAME == null
42
+ }
43
+ }
37
44
  steps {
38
45
  checkout([$class: 'GitSCM', branches: [[name: "${params.BRANCH}"]],
39
46
  extensions: [[$class: 'LocalBranch']],
@@ -48,23 +55,41 @@ pipeline {
48
55
  npx playwright install
49
56
  '''
50
57
  script {
51
- currentBuild.description = "${params.BRANCH} - ${params.BROWSER}"
58
+ if (env.BRANCH_NAME == null) {
59
+ currentBuild.description = "${params.BRANCH} - ${params.BROWSER}"
60
+ } else {
61
+ currentBuild.description = "${env.GIT_COMMIT}"
62
+ }
52
63
  }
53
64
  }
54
65
  }
55
66
 
56
67
  stage('Test') {
57
68
  steps {
58
- withEnv(["NSITES=${params.NSITES}}"]) {
59
- withEnvFile("${params.TEST_RESULT_ROOT}/de.env") {
60
- runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
61
- }
62
- withEnvFile("${params.TEST_RESULT_ROOT}/us.env") {
63
- runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
64
- }
65
- withEnvFile("${params.TEST_RESULT_ROOT}/gb.env") {
66
- runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
69
+ script {
70
+ def testsFailed = 0
71
+ def testsTotal = 0
72
+ withEnv(["NSITES=${params.NSITES}}"]) {
73
+ def testEnvs = [
74
+ "${params.TEST_RESULT_ROOT}/de.env",
75
+ "${params.TEST_RESULT_ROOT}/us.env",
76
+ "${params.TEST_RESULT_ROOT}/gb.env"
77
+ ]
78
+ for (testEnv in testEnvs) {
79
+ withEnvFile(testEnv) {
80
+ def summary = runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
81
+ testsFailed += summary.failCount
82
+ testsTotal += summary.totalCount
83
+ }
84
+ }
67
85
  }
86
+ githubNotify(
87
+ account: 'duckduckgo',
88
+ repo: 'autoconsent',
89
+ context: 'Tests / Coverage sample',
90
+ sha: "${env.GIT_COMMIT}",
91
+ description: "${testsFailed}/${testsTotal} failed",
92
+ status: testsFailed > 50 ? 'FAILURE' : 'SUCCESS')
68
93
  }
69
94
  }
70
95
  }