-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge private and public id sets #10189
Merged
Merged
Changes from all commits
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
441ed58
download private_id_set script, add to the build
ChanochShayner 456524b
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 85f5641
fix file name
ChanochShayner 30d7d86
fix file name
ChanochShayner ea115c1
fix file name
ChanochShayner 5c7cc2b
fix file name
ChanochShayner e84cacb
fix file name
ChanochShayner 543def3
some tests
ChanochShayner 37dfb5d
some tests
ChanochShayner b84735f
add service account
ChanochShayner 0af07dc
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner b86bc13
add service account
ChanochShayner bf13451
add GOOGLE_APPLICATION_CREDENTIALS
ChanochShayner 7ca513d
add artifacts
ChanochShayner 1e82dd0
add artifacts
ChanochShayner a700fdc
xsoar-ci-artifacts
ChanochShayner b464b11
merge id sets
ChanochShayner a64316b
merge id sets
ChanochShayner 6584fd3
change sdk to use merge id sets command
ChanochShayner 2defc42
change sdk to use merge id sets command
ChanochShayner 602d04b
change sdk to use merge id sets command
ChanochShayner c25f7bc
add prepare_private_id_set_for_merge and upload_private_id_set scripts
ChanochShayner 6b939a1
add test files
ChanochShayner 4a38b4c
add test
ChanochShayner c4b16bc
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 3386bc0
add test
ChanochShayner 8dccad4
fix test
ChanochShayner 81a2470
fix test
ChanochShayner 27add4d
fix test
ChanochShayner cd9867e
remove test
ChanochShayner 2616525
add test, (remove changes from build)
ChanochShayner 429a763
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 7e9209b
fix test and validation
ChanochShayner 4b41665
fix path
ChanochShayner 74dddb1
try another bucket
ChanochShayner 7d3455a
try another file
ChanochShayner 15eb957
some test
ChanochShayner 7faf179
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner e3a7fcf
some test
ChanochShayner 10dec35
some test
ChanochShayner 7e9e4de
service_account
ChanochShayner 5059df6
public_and_private_id_sets file
ChanochShayner c346338
remove public_and_private_id_sets file
ChanochShayner 17a06c2
remove cp to artifacts
ChanochShayner c46459b
remove cp to artifacts
ChanochShayner a29c9e2
$CIRCLE_ARTIFACTS
ChanochShayner 6640b35
add file
ChanochShayner 7062a81
merge to id_set file
ChanochShayner 6a9d8e5
CR changes
ChanochShayner ad22614
CR changes
ChanochShayner aa8e962
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 294c329
fix validation
ChanochShayner 1d03f81
fix validation
ChanochShayner ee2ce46
change private id set path in bucket
ChanochShayner f4a9efe
fix test, try download with gsutil
ChanochShayner 557c5c0
try download with gsutil
ChanochShayner edaad7e
try download with gsutil
ChanochShayner ad235d8
try download with gsutil
ChanochShayner 79cfd88
download with script
ChanochShayner 363494a
try to decode gcs creds
ChanochShayner 4337e18
try with gsutil
ChanochShayner a7cc7b1
try with gsutil
ChanochShayner c2a34d6
add file unified_id_sets
ChanochShayner 43c51eb
remove file
ChanochShayner 6be5e9d
change path of unified id sets
ChanochShayner 930ec19
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner b9b4055
replace sdk branch
ChanochShayner 99de447
add id_set_private_test file to bucket
ChanochShayner 9e97b74
remove scripts use gsutil instead
ChanochShayner 36aad69
use another branch
ChanochShayner 271e3c3
remove script from this PR
ChanochShayner 1aeaa24
add script and test
ChanochShayner 4f0ae20
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 85f684e
remove ref for demisto sdk
ChanochShayner d56865d
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 37ae33f
some fixes
ChanochShayner 26c0d55
some fixes
ChanochShayner 1702e94
fix artifacts
ChanochShayner 10b2d0c
unified id set file
ChanochShayner 81a12ed
fixes
ChanochShayner c2c4da8
fixes
ChanochShayner 9ff4fcc
open new file
ChanochShayner 6bfa1df
fixes
ChanochShayner 05d1385
fixes
ChanochShayner cb581a2
fixes
ChanochShayner 6fab940
try to download with script
ChanochShayner 30fcb5b
some fixes
ChanochShayner 39e28b0
some fixes
ChanochShayner e122e47
ref sdk
ChanochShayner e40035a
fixes
ChanochShayner 4d2064a
comment
ChanochShayner ec18775
remove ref
ChanochShayner a93c700
fixes
ChanochShayner b839394
try with prints
ChanochShayner 5adffb9
add ref
ChanochShayner 7877a1a
comment
ChanochShayner 17ab653
comment
ChanochShayner 0d23701
comment
ChanochShayner 1a126ff
comment
ChanochShayner 17b8a13
remove ref
ChanochShayner a55431e
comment
ChanochShayner c3e9d99
ref
ChanochShayner b35a95e
cache
ChanochShayner cc16ab2
comment
ChanochShayner 6db71c7
try to remove duplicates
ChanochShayner a018a80
fix duplicate id
ChanochShayner 0ff9d78
fix duplicate ID issue
ChanochShayner 6280a04
add check that id sets merge successfully
ChanochShayner c7e9eec
add check that id sets merge successfully
ChanochShayner 2d0d758
fix duplicate
ChanochShayner 90339a9
add check in sdk command
ChanochShayner ea85d74
comment
ChanochShayner d99a196
add duplicates for test
ChanochShayner b8f8264
fix duplicates for test
ChanochShayner d977b6a
duplicates for test
ChanochShayner c7e6744
typo
ChanochShayner 6494c8d
fix duplicates - ready
ChanochShayner e63c725
fix ref
ChanochShayner b7748f0
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 4f5ee59
unified ID set just in validate
ChanochShayner 1a05b41
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner ac6d77e
check with ref sdk
ChanochShayner 2cc6686
add id set path to validate script
ChanochShayner 8e54f7e
comment
ChanochShayner 9219640
comment
ChanochShayner 9e0df43
ref sdk to master
ChanochShayner 9af35de
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 756bc16
add artifacts to run validation step
ChanochShayner a67850e
add merge to create step
ChanochShayner 316963f
fixes
ChanochShayner 4e00343
fixes
ChanochShayner 2c5cdb7
ref to sdk validate mappers
ChanochShayner f0281e3
comment
ChanochShayner 89fbd8d
add step for merge id sets
ChanochShayner c752ce9
remove changes
ChanochShayner feec77f
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner 6cbf369
remove changes
ChanochShayner 46209f6
CR changes
ChanochShayner d7d9859
Merge branch 'master' into prepare_paid_packs_to_create_id_set
ChanochShayner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,6 +311,23 @@ references: | |
demisto-sdk create-id-set -o ./Tests/id_set.json | ||
cp ./Tests/id_set.json $CIRCLE_ARTIFACTS | ||
|
||
merge_public_and_private_id_sets: &merge_public_and_private_id_sets | ||
run: | ||
name: Merge public and private ID sets | ||
when: always | ||
command: | | ||
GCS_PATH=$(mktemp) | ||
echo "$GCS_MARKET_KEY" > "$GCS_PATH" | ||
gcloud auth activate-service-account --key-file="$GCS_PATH" > auth.out 2>&1 | ||
|
||
# Download private ID set | ||
gsutil cp gs://marketplace-dist/content/private_id_set.json $CIRCLE_ARTIFACTS/unified_id_set.json | ||
gcloud auth revoke --all | ||
rm $GCS_PATH | ||
|
||
# Merge public and private ID sets | ||
demisto-sdk merge-id-sets -i1 ./Tests/id_set.json -i2 $CIRCLE_ARTIFACTS/unified_id_set.json -o $CIRCLE_ARTIFACTS/unified_id_set.json | ||
|
||
build_content_descriptor: &build_content_descriptor | ||
run: | ||
name: Build Content Descriptor | ||
|
@@ -545,6 +562,7 @@ jobs: | |
- *prepare_environment | ||
- *secrets | ||
- *create_id_set | ||
- *merge_public_and_private_id_sets | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The references syntax is mostly useful for steps we want to use more than once, since this step is only used once - I think it can be written here directly without the pointer, but it's up to you. |
||
- *update_tests_step | ||
- *validate_files_and_yaml | ||
- run: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's important to also revoke the gcloud credentials.
In addition, it's important to do it before the sdk command because in case the sdk command fails - the step will finish immediately and the credentials will not be cleaned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done