@toptal/davinci-ci 2.0.15-alpha-fx-3248-update-davinci-to-the-latest-version-containing-metrics-in-talent-portal-frontend-ad7c96d7.8 → 2.1.1-alpha-fix-skeleton-script-a66044fa.2
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.
- package/CHANGELOG.md +23 -0
- package/README.md +3 -0
- package/package.json +3 -3
- package/src/configs/danger/conventional-commits/dangerfile.js +10 -0
- package/src/configs/danger/plugins/empty-assignee.js +24 -0
- package/src/configs/danger/toptal/dangerfile.js +10 -0
- package/src/configs/jobs/deploy-helm-run/Jenkinsfile +3 -3
- package/src/configs/jobs/master-main/Jenkinsfile +5 -5
- package/src/configs/jobs/publish-alpha-package/Jenkinsfile +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1774](https://github.com/toptal/davinci/pull/1774) [`ca7a20f2`](https://github.com/toptal/davinci/commit/ca7a20f248784371af9db64df31e05ada1e69179) Thanks [@TomasSlama](https://github.com/TomasSlama)! - ---
|
|
8
|
+
|
|
9
|
+
### davinci.yaml (config)
|
|
10
|
+
|
|
11
|
+
- add new options to the config
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
master:
|
|
15
|
+
# danger check will require every PR
|
|
16
|
+
# created by not whitelisted user to have an assignee
|
|
17
|
+
require_assignee: false
|
|
18
|
+
require_assignee_whitelist: ['dependabot-preview[bot]', 'dependabot[bot]']
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`ca7a20f2`](https://github.com/toptal/davinci/commit/ca7a20f248784371af9db64df31e05ada1e69179)]:
|
|
24
|
+
- @toptal/davinci-cli-shared@1.10.0
|
|
25
|
+
|
|
3
26
|
## 2.0.14
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -47,6 +47,9 @@ master:
|
|
|
47
47
|
deploy_staging: false
|
|
48
48
|
deploy_storybook_staging: false
|
|
49
49
|
deploy: false
|
|
50
|
+
conventional_commits: false # danger check will require each commit to follow convential commits
|
|
51
|
+
require_assignee: false # danger check will require each PR to have assignee
|
|
52
|
+
require_assignee_whitelist: ['dependabot-preview[bot]', 'dependabot[bot]']
|
|
50
53
|
|
|
51
54
|
# Customize Slack channel where the notifications will get posted
|
|
52
55
|
slack_channel: 'custom-slack-channel'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1-alpha-fix-skeleton-script-a66044fa.2+a66044fa",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@commitlint/cli": "^17.0.2",
|
|
34
34
|
"@commitlint/config-conventional": "^17.1.0",
|
|
35
|
-
"@toptal/davinci-cli-shared": "1.
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.10.1-alpha-fix-skeleton-script-a66044fa.2+a66044fa",
|
|
36
36
|
"danger": "^11.0.7",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a66044fa5edea35b6cc1385f0a11233feaa571d5"
|
|
40
40
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
const { schedule } = require('danger')
|
|
2
|
+
const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
|
|
2
3
|
|
|
3
4
|
const { conventionalCommits } = require('./plugins/conventional-commits')
|
|
4
5
|
const { conventionalPRTitle } = require('./plugins/conventional-pr-title')
|
|
6
|
+
const { checkAssigneeExist } = require('../plugins/empty-assignee')
|
|
5
7
|
|
|
6
8
|
schedule(conventionalCommits)
|
|
7
9
|
schedule(conventionalPRTitle)
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
master: { requireAssignee },
|
|
13
|
+
} = davinciProjectConfig
|
|
14
|
+
|
|
15
|
+
if (requireAssignee) {
|
|
16
|
+
schedule(checkAssigneeExist)
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="danger" />
|
|
2
|
+
/* globals danger, fail */
|
|
3
|
+
const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
|
|
4
|
+
|
|
5
|
+
const {
|
|
6
|
+
master: { requireAssigneeWhiteList = [] },
|
|
7
|
+
} = davinciProjectConfig
|
|
8
|
+
|
|
9
|
+
const WHITELISTED_USERS = requireAssigneeWhiteList
|
|
10
|
+
const checkAssigneeExist = () => {
|
|
11
|
+
const isLocalRun = !danger.github
|
|
12
|
+
|
|
13
|
+
if (isLocalRun || WHITELISTED_USERS.includes(danger.github.pr.user.login)) {
|
|
14
|
+
return
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (!danger.github.pr.assignee || danger.github.pr.assignees.length === 0) {
|
|
18
|
+
fail('Please assign someone to this PR before merging.')
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = {
|
|
23
|
+
checkAssigneeExist,
|
|
24
|
+
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
const { schedule } = require('danger')
|
|
2
|
+
const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
|
|
2
3
|
|
|
3
4
|
const { toptalCommits } = require('./plugins/toptal-commits')
|
|
4
5
|
const { toptalPRTitle } = require('./plugins/toptal-pr-title')
|
|
6
|
+
const { checkAssigneeExist } = require('../plugins/empty-assignee')
|
|
5
7
|
|
|
6
8
|
schedule(toptalCommits)
|
|
7
9
|
schedule(toptalPRTitle)
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
master: { requireAssignee },
|
|
13
|
+
} = davinciProjectConfig
|
|
14
|
+
|
|
15
|
+
if (requireAssignee) {
|
|
16
|
+
schedule(checkAssigneeExist)
|
|
17
|
+
}
|
|
@@ -13,7 +13,7 @@ def hasCommandInDavinci(args) {
|
|
|
13
13
|
docker run \
|
|
14
14
|
--rm \
|
|
15
15
|
-u 469:469 \
|
|
16
|
-
|
|
16
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repoName}:${tag} \
|
|
17
17
|
yarn davinci help
|
|
18
18
|
""",
|
|
19
19
|
returnStdout: true
|
|
@@ -109,7 +109,7 @@ pipeline {
|
|
|
109
109
|
HELM_OPTS='\
|
|
110
110
|
$set_params_env \
|
|
111
111
|
--set image.tag=${params.TAG} \
|
|
112
|
-
--set image.repository=
|
|
112
|
+
--set image.repository=us-central1-docker.pkg.dev/toptal-hub/containers/${params.REPOSITORY_NAME}-release' \
|
|
113
113
|
make $chart $release dep_build upgrade
|
|
114
114
|
"""
|
|
115
115
|
}
|
|
@@ -137,7 +137,7 @@ pipeline {
|
|
|
137
137
|
-e SENTRY_ORG=${sentryOrg} \
|
|
138
138
|
-e SENTRY_PROJECT=${REPOSITORY_NAME} \
|
|
139
139
|
-e SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} \
|
|
140
|
-
|
|
140
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${REPOSITORY_NAME}:${TAG} \
|
|
141
141
|
yarn davinci-engine sentry-upload-source-maps
|
|
142
142
|
"""
|
|
143
143
|
} else {
|
|
@@ -91,7 +91,7 @@ def hasParamInDavinciCommand(args) {
|
|
|
91
91
|
docker run \
|
|
92
92
|
--rm \
|
|
93
93
|
-u 469:469 \
|
|
94
|
-
|
|
94
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repoName}:${tag} \
|
|
95
95
|
yarn davinci help ${command}
|
|
96
96
|
""",
|
|
97
97
|
returnStdout: true
|
|
@@ -205,7 +205,7 @@ pipeline {
|
|
|
205
205
|
-u 469:469 \
|
|
206
206
|
-v ${jenkinsTestsCoverageDirectory}:/app/${testsCoverageDirectory} \
|
|
207
207
|
-v ${jenkinsTestsPactContractsDirectory}:/app/${testsPactsDirectory} \
|
|
208
|
-
|
|
208
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repositoryName}:${commitId} \
|
|
209
209
|
yarn test --ci
|
|
210
210
|
"""
|
|
211
211
|
}
|
|
@@ -231,7 +231,7 @@ pipeline {
|
|
|
231
231
|
-e GIT_BRANCH=${branch} \
|
|
232
232
|
-e GIT_СOMMIT=${commitId} \
|
|
233
233
|
-v ${jenkinsTestsPactContractsDirectory}:/app/${testsPactsDirectory} \
|
|
234
|
-
|
|
234
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repositoryName}:${commitId} \
|
|
235
235
|
yarn publish-pact
|
|
236
236
|
"""
|
|
237
237
|
}
|
|
@@ -316,7 +316,7 @@ pipeline {
|
|
|
316
316
|
-v $SSH_AUTH_SOCK:/ssh-agent \
|
|
317
317
|
-e SSH_AUTH_SOCK=/ssh-agent \
|
|
318
318
|
-v ${PWD}/.git:/app/.git \
|
|
319
|
-
|
|
319
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repositoryName}:${commitId} \
|
|
320
320
|
${releasePackageCommand}
|
|
321
321
|
"""
|
|
322
322
|
}
|
|
@@ -380,7 +380,7 @@ pipeline {
|
|
|
380
380
|
sh """
|
|
381
381
|
docker run \
|
|
382
382
|
--user="root" \
|
|
383
|
-
--rm
|
|
383
|
+
--rm us-central1-docker.pkg.dev/toptal-hub/containers/${repositoryName}:${commitId} /bin/bash -c "apt update && apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && yarn cypress install > /dev/null && yarn test:$testCommand:ci"
|
|
384
384
|
"""
|
|
385
385
|
}
|
|
386
386
|
} //steps
|
|
@@ -124,7 +124,7 @@ pipeline {
|
|
|
124
124
|
-v $SSH_AUTH_SOCK:/ssh-agent \
|
|
125
125
|
-e SSH_AUTH_SOCK=/ssh-agent \
|
|
126
126
|
-v ${PWD}/.git:/app/.git \
|
|
127
|
-
|
|
127
|
+
us-central1-docker.pkg.dev/toptal-hub/containers/${repositoryName}:${commitId} \
|
|
128
128
|
/bin/bash -c "yarn ${params.BUILD_PACKAGE_SCRIPT_NAME} && \
|
|
129
129
|
yarn davinci-engine publish-package \
|
|
130
130
|
--alpha \
|