Skip to content

Commit b7b2dc7

Browse files
author
Juliya Smith
committed
Merge upstream
2 parents 8cb1df3 + f4e59c1 commit b7b2dc7

File tree

1,106 files changed

+93017
-19604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,106 files changed

+93017
-19604
lines changed

.circleci/config.yml

Lines changed: 50 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ jobs:
33
build:
44
docker:
55
- image: devdemisto/content-build:3.0.0.7332 # disable-secrets-detection
6-
resource_class: medium+
76
parallelism: 2
87
environment:
9-
CONTENT_VERSION: "20.5.3"
8+
CONTENT_VERSION: "20.6.0"
109
SERVER_VERSION: "5.5.0"
11-
GIT_SHA1: "bb4ac8b7943a6cba0c22935ebad6b6e17939840d" # guardrails-disable-line disable-secrets-detection
10+
GIT_SHA1: "63646dff0fba977f91d6d9fc2d7fd233bfb5561b" # guardrails-disable-line disable-secrets-detection
1211
steps:
1312
- checkout
1413
- setup_remote_docker
@@ -88,6 +87,17 @@ jobs:
8887
else
8988
echo ".circleci/config.yml is up to date!"
9089
fi
90+
- run:
91+
name: Update Tests step
92+
when: always
93+
command: |
94+
if [ $CIRCLE_NODE_INDEX -ne 0 ] ;
95+
then
96+
echo "Skipping - running only in container number 0"
97+
exit 0
98+
fi
99+
python3 ./Tests/scripts/update_conf_json.py
100+
cp "./Tests/conf.json" "$CIRCLE_ARTIFACTS/conf.json"
91101
- run:
92102
name: Create ID Set
93103
when: always
@@ -116,9 +126,9 @@ jobs:
116126
name: Validate Files and Yaml
117127
when: always
118128
command: |
119-
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] ;
129+
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] || [ -n "${NIGHTLY}" ];
120130
then
121-
echo "Skipping - not running in INSTANCE_TESTS build or unit-tests container"
131+
echo "Skipping - not running in INSTANCE_TESTS build or unit-tests container or Nightly run"
122132
exit 0
123133
fi
124134
@@ -171,10 +181,14 @@ jobs:
171181
fi
172182
if [ -n "${GITHUB_TOKEN}" ] ;
173183
then
174-
python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION --github-token $GITHUB_TOKEN
184+
# python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION --github-token $GITHUB_TOKEN || echo "ignore errors"
185+
# new release notes summary generator in packs format
186+
python3 Utils/release_notes_generator.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM --output $CIRCLE_ARTIFACTS/packs-release-notes.md --github-token $GITHUB_TOKEN
175187
176188
else
177-
python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION
189+
# python3 release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION || echo "ignore errors"
190+
# new release notes summary generator in packs format
191+
python3 Utils/release_notes_generator.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM --output $CIRCLE_ARTIFACTS/packs-release-notes.md
178192
fi
179193
- run:
180194
name: Common Server Documentation
@@ -309,25 +323,11 @@ jobs:
309323
echo 'Skipping - running only in container number 0.'
310324
exit 0;
311325
fi
312-
./Tests/scripts/prepare_content_packs_for_testing.sh
313-
- run:
314-
name: Zip Content Packs From GCS
315-
command: |
316326
if [[ $CIRCLE_BRANCH =~ pull/[0-9]+ ]]; then
317327
echo "Skipping, Should not run on contributor's branch."
318328
exit 0
319329
fi
320-
if [ $CIRCLE_NODE_INDEX -ne 0 ] ;
321-
then
322-
echo 'Skipping - running only in container number 0.'
323-
exit 0;
324-
fi
325-
GCS_PATH=$(mktemp)
326-
ZIP_FOLDER=$(mktemp -d)
327-
echo $GCS_MARKET_KEY > $GCS_PATH
328-
python3 ./Tests/Marketplace/zip_packs.py -b 'marketplace-ci-build' -z $ZIP_FOLDER -a $CIRCLE_ARTIFACTS -s $GCS_PATH -n $CIRCLE_BUILD_NUM -br $CIRCLE_BRANCH
329-
rm $GCS_PATH
330-
when: always
330+
./Tests/scripts/prepare_content_packs_for_testing.sh
331331
- store_artifacts:
332332
path: artifacts
333333
destination: artifacts
@@ -352,7 +352,7 @@ jobs:
352352
export IFRA_ENV_TYPE=Nightly # disable-secrets-detection
353353
elif [ -n "${INSTANCE_TESTS}" ] ;
354354
then
355-
export IFRA_ENV_TYPE="Demisto Marketplace" # disable-secrets-detection
355+
export IFRA_ENV_TYPE="Demisto PreGA" # disable-secrets-detection
356356
357357
else
358358
export IFRA_ENV_TYPE=Content-Env # disable-secrets-detection
@@ -476,9 +476,9 @@ jobs:
476476
echo "Skipping instance tests for forked PRs"
477477
exit 0
478478
fi
479-
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] ;
479+
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] || [ -n "${NIGHTLY}" ];
480480
then
481-
echo "Skipping - not running in INSTANCE_TESTS build or unit-tests container"
481+
echo "Skipping - not running in INSTANCE_TESTS build, unit-tests container or Nightly run"
482482
exit 0
483483
fi
484484
export TEMP=$(cat ./Tests/filter_envs.json | jq '."Demisto PreGA"')
@@ -508,9 +508,9 @@ jobs:
508508
echo "Skipping instance tests for forked PRs"
509509
exit 0
510510
fi
511-
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] || [ -n "${NIGHTLY}" ];
511+
if [ -n "${INSTANCE_TESTS}" ] || [ $CIRCLE_NODE_INDEX -ne 0 ] ;
512512
then
513-
echo "Skipping - not running in INSTANCE_TESTS build, unit-tests container or Nightly run"
513+
echo "Skipping - not running in INSTANCE_TESTS build or unit-tests container"
514514
exit 0
515515
fi
516516
export TEMP=$(cat ./Tests/filter_envs.json | jq '."Demisto Marketplace"')
@@ -556,6 +556,9 @@ jobs:
556556
if [ -n "${INSTANCE_TESTS}" ] && [ $CIRCLE_NODE_INDEX -ne 1 ] ;
557557
then
558558
./Tests/scripts/instance_test.sh
559+
export RETVAL=$?
560+
cp ./Tests/failed_instances.txt $CIRCLE_ARTIFACTS/failed_instances.txt
561+
exit $RETVAL
559562
else
560563
echo "Skipping instance tests"
561564
exit 0
@@ -599,9 +602,28 @@ jobs:
599602
ID_SET=$CIRCLE_ARTIFACTS/id_set.json
600603
GCS_PATH=$(mktemp)
601604
echo $GCS_MARKET_KEY > $GCS_PATH
602-
python3 ./Tests/Marketplace/upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -b 'marketplace-dist' -d $PACKS_DEPENDENCIES -i $ID_SET -s $GCS_PATH -n $CIRCLE_BUILD_NUM -k $PACK_SIGNING_KEY -pb 'marketplace-dist-private' -o
605+
python3 ./Tests/Marketplace/upload_packs.py -a $PACK_ARTIFACTS -e $EXTRACT_FOLDER -b 'marketplace-dist' -d $PACKS_DEPENDENCIES -i $ID_SET -s $GCS_PATH -n $CIRCLE_BUILD_NUM -k $PACK_SIGNING_KEY -pb 'marketplace-dist-private'
603606
rm $GCS_PATH
604607
when: on_success
608+
- run:
609+
name: Zip Content Packs From GCS
610+
command: |
611+
if [[ $CIRCLE_BRANCH != master ]]; then
612+
echo "Skipping packs zipping on non master branch"
613+
exit 0
614+
fi
615+
616+
if [ $CIRCLE_NODE_INDEX -ne 0 ] ;
617+
then
618+
echo 'Skipping - running only in container number 0.'
619+
exit 0;
620+
fi
621+
GCS_PATH=$(mktemp)
622+
ZIP_FOLDER=$(mktemp -d)
623+
echo $GCS_MARKET_KEY > $GCS_PATH
624+
python3 ./Tests/Marketplace/zip_packs.py -b 'marketplace-dist' -z $ZIP_FOLDER -a $CIRCLE_ARTIFACTS -s $GCS_PATH -gp content/packs -rt False
625+
rm $GCS_PATH
626+
when: always
605627
- store_artifacts:
606628
path: artifacts
607629
destination: artifacts

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)