Skip to content
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

feat: use git-sync action to sync with private mirror #1965

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Jan 27, 2021

Issue #, if available:
Follow-up to aws/aws-sdk-js#3610

Description of changes:
use git-sync action to sync with private mirror

Testing:
Testing done with the following packages:

Config tested: https://github.com/trivikr/git-sync-test/blob/302d7d5cf429594757c9a32ead5e0816715f9b95/.github/workflows/git-sync.yml
Example GitHub Action run: https://github.com/trivikr/git-sync-test/runs/1778705960?check_suite_focus=true

Verified that secrets are not shown in the GitHub Action log

GitHub Action log
Cloning into '/root/source'...
SOURCE=git@github.com:***.git:main
DESTINATION=git@github.com:***.git:main
Warning: Permanently added 'github.com,140.82.113.3' (RSA) to the list of known hosts.
* main                302d7d5 [source/main] chore: update step name to git-sync
  remotes/source/HEAD -> source/main
  remotes/source/main 302d7d5 chore: update step name to git-sync
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
To github.com:***.git
   de881a8..302d7d5  main -> main

Note that:

  • source GitHub URL is hidden SOURCE=git@github.com:***.git:main
  • destination GitHub URL is hidden DESTINATION=git@github.com:***.git:main
  • destination GitHub URL is hidden in git output To github.com:***.git

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr
Copy link
Member Author

trivikr commented Jan 27, 2021

Values populated in GitHub repositories:

  • Source repo aws/aws-sdk-js-v3
    • secrets.GIT_SYNC_SOURCE_REPO
    • secrets.GIT_SYNC_DESTINATION_REPO
    • secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY
    • secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY
    • deploy public key for secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY
  • Destination repo **private**
    • deploy public key for secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY

@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • CodeBuild project: sdk-staging-test
  • Commit ID: c4109c9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@trivikr
Copy link
Member Author

trivikr commented Jan 27, 2021

The unit test failure appears to be intermittent, as this PR just updates GitHub Action configuration and not code.
Issue is being tracked in #1968

@trivikr trivikr merged commit 10ab6a1 into aws:master Jan 28, 2021
@trivikr trivikr deleted the git-sync branch January 28, 2021 21:25
@trivikr
Copy link
Member Author

trivikr commented Jan 28, 2021

Verified that git-sync run was successful.
GitHub Action run: https://github.com/aws/aws-sdk-js-v3/runs/1787384362?check_suite_focus=true

GitHub Action output
SOURCE=git@github.com:***.git:master
Cloning into '/root/source'...
DESTINATION=git@github.com:***.git:master
Warning: Permanently added 'github.com,140.82.113.3' (RSA) to the list of known hosts.
Updating files:  36% (6275/17379)
Updating files:  37% (6431/17379)
Updating files:  38% (6605/17379)
Updating files:  39% (6778/17379)
Updating files:  40% (6952/17379)
Updating files:  41% (7126/17379)
Updating files:  42% (7300/17379)
Updating files:  43% (7473/17379)
Updating files:  44% (7647/17379)
Updating files:  45% (7821/17379)
Updating files:  46% (7995/17379)
Updating files:  47% (8169/17379)
Updating files:  48% (8342/17379)
Updating files:  49% (8516/17379)
Updating files:  50% (8690/17379)
Updating files:  51% (8864/17379)
Updating files:  52% (9038/17379)
Updating files:  53% (9211/17379)
Updating files:  54% (9385/17379)
Updating files:  55% (9559/17379)
Updating files:  56% (9733/17379)
Updating files:  57% (9907/17379)
Updating files:  58% (10080/17379)
Updating files:  59% (10254/17379)
Updating files:  60% (10428/17379)
Updating files:  61% (10602/17379)
Updating files:  62% (10775/17379)
Updating files:  63% (10949/17379)
Updating files:  64% (11123/17379)
Updating files:  65% (11297/17379)
Updating files:  66% (11471/17379)
Updating files:  67% (11644/17379)
Updating files:  68% (11818/17379)
Updating files:  69% (11992/17379)
Updating files:  70% (12166/17379)
Updating files:  71% (12340/17379)
Updating files:  72% (12513/17379)
Updating files:  73% (12687/17379)
Updating files:  74% (12861/17379)
Updating files:  75% (13035/17379)
Updating files:  76% (13209/17379)
Updating files:  77% (13382/17379)
Updating files:  78% (13556/17379)
Updating files:  79% (13730/17379)
Updating files:  80% (13904/17379)
Updating files:  81% (14077/17379)
Updating files:  82% (14251/17379)
Updating files:  83% (14425/17379)
Updating files:  84% (14599/17379)
Updating files:  85% (14773/17379)
Updating files:  86% (14946/17379)
Updating files:  87% (15120/17379)
Updating files:  87% (15290/17379)
Updating files:  88% (15294/17379)
Updating files:  89% (15468/17379)
Updating files:  90% (15642/17379)
Updating files:  91% (15815/17379)
Updating files:  92% (15989/17379)
Updating files:  93% (16163/17379)
Updating files:  94% (16337/17379)
Updating files:  95% (16511/17379)
Updating files:  96% (16684/17379)
Updating files:  97% (16858/17379)
Updating files:  98% (17032/17379)
Updating files:  99% (17206/17379)
Updating files: 100% (17379/17379)
Updating files: 100% (17379/17379), done.
Warning: Permanently added the RSA host key for IP address '140.82.121.3' to the list of known hosts.
From github.com:***
 * [new branch]            AllanFly120-patch-1        -> AllanFly120-patch-1
 * [new branch]            AllanFly120-patch-2        -> AllanFly120-patch-2
 * [new branch]            AllanFly120-patch-3        -> AllanFly120-patch-3
 * [new branch]            AllanFly120-patch-4        -> AllanFly120-patch-4
 * [new branch]            AllanFly120/revert-uuid-version -> AllanFly120/revert-uuid-version
 * [new branch]            AllanFly120/rn-integ-test  -> AllanFly120/rn-integ-test
 * [new branch]            AllanFly120/use-existing-e2e-resources -> AllanFly120/use-existing-e2e-resources
 * [new branch]            AllanZhengYP-fix-1063      -> AllanZhengYP-fix-1063
 * [new branch]            aforsyth/root-tsconfig     -> aforsyth/root-tsconfig
 * [new branch]            codeguru_ctes_update       -> codeguru_ctes_update
 * [new branch]            dependabot/npm_and_yarn/buffer-6.0.3 -> dependabot/npm_and_yarn/buffer-6.0.3
 * [new branch]            dependabot/npm_and_yarn/eslint-config-prettier-7.1.0 -> dependabot/npm_and_yarn/eslint-config-prettier-7.1.0
 * [new branch]            dependabot/npm_and_yarn/eslint-plugin-simple-import-sort-7.0.0 -> dependabot/npm_and_yarn/eslint-plugin-simple-import-sort-7.0.0
 * [new branch]            dependabot/npm_and_yarn/karma-jasmine-4.0.1 -> dependabot/npm_and_yarn/karma-jasmine-4.0.1
 * [new branch]            dependabot/npm_and_yarn/nock-13.0.6 -> dependabot/npm_and_yarn/nock-13.0.6
 * [new branch]            dependabot/npm_and_yarn/puppeteer-5.5.0 -> dependabot/npm_and_yarn/puppeteer-5.5.0
 * [new branch]            dependabot/npm_and_yarn/ts-loader-8.0.14 -> dependabot/npm_and_yarn/ts-loader-8.0.14
 * [new branch]            dependabot/npm_and_yarn/types/fs-extra-9.0.5 -> dependabot/npm_and_yarn/types/fs-extra-9.0.5
 * [new branch]            dependabot/npm_and_yarn/types/uuid-8.3.0 -> dependabot/npm_and_yarn/types/uuid-8.3.0
 * [new branch]            dependabot/npm_and_yarn/yargs-16.2.0 -> dependabot/npm_and_yarn/yargs-16.2.0
 * [new branch]            experimental/root-tsconfig -> experimental/root-tsconfig
 * [new branch]            fix-user-agent             -> fix-user-agent
 * [new branch]            pre-e2e-script             -> pre-e2e-script
 * [new branch]            preview-stale              -> preview-stale
 * [new branch]            remove-legacies            -> remove-legacies
 * [new branch]            revert-1937-generate-clients-fix -> revert-1937-generate-clients-fix
 * [new branch]            s3-access-point-config     -> s3-access-point-config
 * [new branch]            transcribe-client          -> transcribe-client
 * [new branch]            update-lock                -> update-lock
 * [new branch]            update_s3_waiters          -> update_s3_waiters
 * [new branch]            util-dynamodb              -> util-dynamodb
  AllanFly120-patch-1                                                           958382babf docs: update contribution guide
  AllanFly120-patch-2                                                           68536be395 chore(middleware-host-header): move to low priority
  AllanFly120-patch-3                                                           1ae3370851 test(client-s3): fix unit test
  AllanFly120-patch-4                                                           2bfc76dc1b fix(util-format-url): remove headers or path from input
  AllanFly120/revert-uuid-version                                               140a10f274 chore: revert uuid version back to 3.4.0
  AllanFly120/rn-integ-test                                                     6b32345368 chore: update lock file
  AllanFly120/use-existing-e2e-resources                                        9ad14322fd test(client-cognito-identity): using existing identity pool in e2e test
  AllanZhengYP-fix-1063                                                         9addeb747a fix: apply reviews
  aforsyth/root-tsconfig                                                        3ff565af2b fix: update tsconfig to reflect protocol tests
  codeguru_ctes_update                                                          5ecfd0889b Update CodeGuruProfiler event source
  dependabot/npm_and_yarn/buffer-6.0.3                                          7b95d9cfa5 chore(deps): bump buffer from 5.7.1 to 6.0.3
  dependabot/npm_and_yarn/eslint-config-prettier-7.1.0                          08299d27c0 chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.1.0
  dependabot/npm_and_yarn/eslint-plugin-simple-import-sort-7.0.0                e520de8a78 chore(deps-dev): bump eslint-plugin-simple-import-sort
  dependabot/npm_and_yarn/karma-jasmine-4.0.1                                   2d795ffbf6 chore(deps-dev): bump karma-jasmine from 3.3.1 to 4.0.1
  dependabot/npm_and_yarn/nock-13.0.6                                           42c04cb141 chore(deps-dev): bump nock from 13.0.5 to 13.0.6
  dependabot/npm_and_yarn/puppeteer-5.5.0                                       9fc166ca89 chore(deps-dev): bump puppeteer from 5.4.1 to 5.5.0
  dependabot/npm_and_yarn/ts-loader-8.0.14                                      2b54a417c0 chore(deps-dev): bump ts-loader from 7.0.5 to 8.0.14
  dependabot/npm_and_yarn/types/fs-extra-9.0.5                                  d097cd86d2 chore(deps-dev): bump @types/fs-extra from 8.1.1 to 9.0.5
  dependabot/npm_and_yarn/types/uuid-8.3.0                                      bf1661db02 chore(deps-dev): bump @types/uuid from 3.4.9 to 8.3.0
  dependabot/npm_and_yarn/yargs-16.2.0                                          babeb71ecd chore(deps): bump yargs from 15.4.1 to 16.2.0
  experimental/root-tsconfig                                                    b1f627a857 update
  fix-user-agent                                                                960c4a69d8 feat(signature-v4): unsign x-amz-user-agent header
* master                                                                        10ab6a1d32 [source/master] feat: use git-sync action to sync with private mirror (#1965)
  pre-e2e-script                                                                7fad81cb6a chore: attempt to workaround webpack issue
  preview-stale                                                                 3c06325c44 doc: update s3 presigner example
  remove-legacies                                                               59b59eed4b fix: remove credential-provider-cognito-identity
  revert-1937-generate-clients-fix                                              6934c34802 Revert "fix(generate-clients): call mergeManifest when constructor.name is Object (#1937)"
  s3-access-point-config                                                        61cffe9292 fix: address feedbacks
  transcribe-client                                                             f1bcf0e145 feat: progress on json serde
  update-lock                                                                   8d927244de chore: remove unhoisting karma packages
  update_s3_waiters                                                             2f2af7d2b2 fix: remove some s3 waiters
  util-dynamodb                                                                 a9ba167fc4 chore: temporary commit for future util-dynamodb PRs
  remotes/source/AllanFly120-patch-1                                            958382babf docs: update contribution guide
  remotes/source/AllanFly120-patch-2                                            68536be395 chore(middleware-host-header): move to low priority
  remotes/source/AllanFly120-patch-3                                            1ae3370851 test(client-s3): fix unit test
  remotes/source/AllanFly120-patch-4                                            2bfc76dc1b fix(util-format-url): remove headers or path from input
  remotes/source/AllanFly120/revert-uuid-version                                140a10f274 chore: revert uuid version back to 3.4.0
  remotes/source/AllanFly120/rn-integ-test                                      6b32345368 chore: update lock file
  remotes/source/AllanFly120/use-existing-e2e-resources                         9ad14322fd test(client-cognito-identity): using existing identity pool in e2e test
  remotes/source/AllanZhengYP-fix-1063                                          9addeb747a fix: apply reviews
  remotes/source/HEAD                                                           -> source/master
  remotes/source/aforsyth/root-tsconfig                                         3ff565af2b fix: update tsconfig to reflect protocol tests
  remotes/source/codeguru_ctes_update                                           5ecfd0889b Update CodeGuruProfiler event source
  remotes/source/dependabot/npm_and_yarn/buffer-6.0.3                           7b95d9cfa5 chore(deps): bump buffer from 5.7.1 to 6.0.3
  remotes/source/dependabot/npm_and_yarn/eslint-config-prettier-7.1.0           08299d27c0 chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.1.0
  remotes/source/dependabot/npm_and_yarn/eslint-plugin-simple-import-sort-7.0.0 e520de8a78 chore(deps-dev): bump eslint-plugin-simple-import-sort
  remotes/source/dependabot/npm_and_yarn/karma-jasmine-4.0.1                    2d795ffbf6 chore(deps-dev): bump karma-jasmine from 3.3.1 to 4.0.1
  remotes/source/dependabot/npm_and_yarn/nock-13.0.6                            42c04cb141 chore(deps-dev): bump nock from 13.0.5 to 13.0.6
  remotes/source/dependabot/npm_and_yarn/puppeteer-5.5.0                        9fc166ca89 chore(deps-dev): bump puppeteer from 5.4.1 to 5.5.0
  remotes/source/dependabot/npm_and_yarn/ts-loader-8.0.14                       2b54a417c0 chore(deps-dev): bump ts-loader from 7.0.5 to 8.0.14
  remotes/source/dependabot/npm_and_yarn/types/fs-extra-9.0.5                   d097cd86d2 chore(deps-dev): bump @types/fs-extra from 8.1.1 to 9.0.5
  remotes/source/dependabot/npm_and_yarn/types/uuid-8.3.0                       bf1661db02 chore(deps-dev): bump @types/uuid from 3.4.9 to 8.3.0
  remotes/source/dependabot/npm_and_yarn/yargs-16.2.0                           babeb71ecd chore(deps): bump yargs from 15.4.1 to 16.2.0
  remotes/source/experimental/root-tsconfig                                     b1f627a857 update
  remotes/source/fix-user-agent                                                 960c4a69d8 feat(signature-v4): unsign x-amz-user-agent header
  remotes/source/master                                                         10ab6a1d32 feat: use git-sync action to sync with private mirror (#1965)
  remotes/source/pre-e2e-script                                                 7fad81cb6a chore: attempt to workaround webpack issue
  remotes/source/preview-stale                                                  3c06325c44 doc: update s3 presigner example
  remotes/source/remove-legacies                                                59b59eed4b fix: remove credential-provider-cognito-identity
  remotes/source/revert-1937-generate-clients-fix                               6934c34802 Revert "fix(generate-clients): call mergeManifest when constructor.name is Object (#1937)"
  remotes/source/s3-access-point-config                                         61cffe9292 fix: address feedbacks
  remotes/source/transcribe-client                                              f1bcf0e145 feat: progress on json serde
  remotes/source/update-lock                                                    8d927244de chore: remove unhoisting karma packages
  remotes/source/update_s3_waiters                                              2f2af7d2b2 fix: remove some s3 waiters
  remotes/source/util-dynamodb                                                  a9ba167fc4 chore: temporary commit for future util-dynamodb PRs
To github.com:***.git
   4cdc08aef3..10ab6a1d32  master -> master

Verified that force-push was successful on the master branch of private mirror.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants