Граф коммитов

59 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] f49eb021c9
Bump lodash from 4.17.15 to 4.17.19 (#64)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samiya Akhtar <samiyaakhtar7@gmail.com>
2020-08-22 23:23:48 -07:00
dependabot[bot] 9ba9be7bb6
Bump elliptic from 6.5.2 to 6.5.3 (#65)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-21 20:56:54 -07:00
Andre Briggs 1dfc03fe99
Adding spinners for setup command (#51)
* Adding spinners for setup command

* Addressing feedback
2020-05-18 15:42:12 -07:00
Samiya Akhtar c07a156da2
bedrock deployment get minor improvements (#38)
* Some CLI updates and minor refactor

* Adding mock for author

* Adding --no-separators flag

* Rename to --remove-separators due to a commander issue

* Improved unit test

* Adding jsdoc

* Remove commented code

* Slice deployments for --top before making api requests

* More unit tests

* PR feedback

* More unit test improvements

* Left align everything but numbers, bring start time back

* Cluster sync

* Pull request id should be right aligned

* Right align duration, remove manual hld edit for now
2020-05-11 10:07:02 -07:00
Samiya Akhtar 9397b60b0d
Fixing regression in deployment get (#487)
* Fixing bug 1280

* Remove get-display-name

* Update data.json
2020-03-31 16:54:34 -07:00
Dennis Seah f6816a5c05
[HOUSEKEEPING] Finding broken links in md files and fix them (#432)
* [HOUSEKEEPING] Finding broken links in md files and fix them

* using  markdown-link-check

* update md-lint

* Update azure-pipelines.yml

* script is not needed because we do not support windows runtime

Co-authored-by: Yvonne Radsmikham <yvonne.radsmikham@gmail.com>
2020-03-23 18:04:56 -07:00
Samiya Akhtar e96489a5cd
Improve introspection integration test (#429)
* Improving introspection integration test

* Add camelcase ignore

* Adding echo -e
2020-03-23 11:34:42 -07:00
Evan Louie 75b35841b1 Dev Tools Upgrades
- Changed pipeline build/tests to support Node 12 (LTS) and 13 (current)
  - Dropped Node 10
  - Added Node 13
- Added ESLint pre-commit hook
  - `eslint --fix` now runs for JS/TS files before being committed. If any
    staged files fail linting, commit will fail.
- Added `eslint-config-prettier`
  - Helps minimize conflicts between eslint and prettier configurations.
- Upgrade to TypeScript 3.8.
  - No breaking changes.
  - View changes here:
    <https://devblogs.microsoft.com/typescript/announcing-typescript-3-8/>
- Upgrade to Jest 25
  - No breaking changes.
  - View changes here: <https://jestjs.io/blog/2020/01/21/jest-25>
- Upgrade to Prettier 2
  - No Breaking changes.
  - Default of `trailingComma`, `arrowParens`, and `endOfLine` have been
    changed. Prettier has been run on the codebase to adjust for these changes.
  - View changes here: <https://prettier.io/blog/2020/03/21/2.0.0.html>
2020-03-23 10:03:09 -07:00
Bhargav Nookala ef615d56e0
Adding helm2 install step (#406) 2020-03-16 18:17:15 -07:00
Evan Louie 78ef90f404 Migrate from TSLint to ESlint
- Removed TSLint and tslint.json configuration file
- Added ESLint with `recommended` TypeScript configurations.
- Removed all `I` prefix from type declarations (per ESLint recommendation)
- Have added return types to all function declarations (per ESLint
  recommendation)
- To have minimal conflict with integration, many of the recommended ESLint
  rules have been disabled on a per-page/line basis.
  - We should attempt to remove these `/* eslint-disable ...` lines as we
    refactor code and conform completely to the recommended linting rules.
2020-03-13 14:59:51 -07:00
Dennis Seah 8d7b245162
[FEATURE] Create resource group and ACR in spk setup command (#391)
* [FEATURE] Create resource group and ACR in spk setup command

* fix lint error

* fix lint error

* move azure container registry and resource group services to lib/azure folder

Co-authored-by: Andre Briggs <andrebriggs@users.noreply.github.com>
2020-03-12 10:49:50 -07:00
Dennis Seah 725d409d6c
[FEATURE] Get subscription id in spk setup command (#386)
* [FEATURE] Get subscription id in spk setup command

* fix typo and test

* fix typo
2020-03-11 13:15:59 -07:00
Samiya Akhtar eb855b8947
Use new version of package (#369) 2020-03-05 09:49:34 -08:00
Samiya Akhtar b7ab8fcb79
introspection cmds should consume new refactored package (#359)
* Consuming new spektate package

* Dashboard command

* Remove -it

Co-authored-by: Dennis Seah <dennis.seah@gmail.com>
2020-03-03 10:07:28 -08:00
Evan Louie 3c01578d6d
Fix broken service build trigger (#326)
* Fix broken service build trigger

- Service pipeline build triggers were set to invalid value of `./` when the
  service was in project root directory -- In such a case, we now longer include
  the path trigger.

* removing async from fileutil test

Co-authored-by: Michael Tarng <20913254+mtarng@users.noreply.github.com>
Co-authored-by: Dennis Seah <dennis.seah@gmail.com>
2020-02-24 00:16:32 -08:00
Dennis Seah 4e48b6a28f
Fix issue 1003: suppress warning in yarn build (#315)
* Fix issue 1003: suppress warning in yarn build

* use object loader

Co-authored-by: Nate <NathanielRose@users.noreply.github.com>
2020-02-20 11:37:57 -08:00
Andre Briggs 57ecd623df
Upgrading to 0.5.2 (#310)
* Upgrading to 0.5.2

* Added change log
2020-02-14 17:20:29 -08:00
Samiya Akhtar 6caf503b54
Use new version of package (#305)
Co-authored-by: Dennis Seah <dennis.seah@gmail.com>
2020-02-14 08:54:53 -08:00
Bhargav Nookala fbd2b671a8
Validating urls in service creation (#269)
* validating urls in service creation

* Supporting SSH urls
2020-02-11 11:08:16 -08:00
Samiya Akhtar 9b340b8f92
Use new version of package (#262) 2020-02-06 13:29:09 -08:00
Samiya Akhtar 87a18a15f6
Use new version of package (#238) 2020-01-31 15:19:48 -08:00
Samiya Akhtar 9538240d04
Use new spektate package (#180) 2020-01-15 10:14:25 -08:00
Evan Louie 3d019ba266 Upgrade to TypeScript 3.7
- Upgraded TypeScript dependencies to 3.7 supported versions (`typescript`,
  `prettier`, `ts-<jest|loader|node>`).
- Numerous spelling corrections in jsdoc.
2020-01-06 12:24:17 -08:00
andrebriggs@users.noreply.github.com be92c0d49a Increasing version of terser-webpack-plugin 2019-12-12 16:07:01 -08:00
Sarath Pinninty ba51da3047
Onboard refactoring (#131)
* Refactored onboard commmand that closes#681

* Fixed lint issues

* Updated onboard doc

* Updated doc

* Fixed circualr call issue

* Fixed test cases and incorporated the feedback

* Fixed test case

* Fixed lint issues

* Added comments

* Updated output messages

* Updated doc

* Added validation for storage account and table names

* updated variable values in test cases

* Removed commented line of code

* Returned empty object when config yaml is undefined

* replaced echo with logger

* Removed new line breaks
2019-11-18 13:19:07 -08:00
Andre Briggs 4505d1a083
Adding detailed test results publishing to build (#139) 2019-11-13 18:03:28 -08:00
Samiya Akhtar 03d087d0e9 Use new version of package 2019-11-13 14:47:52 -08:00
Yvonne Radsmikham c2e3a9dd27
Generate single node spk template (#124) 2019-11-11 12:11:54 -08:00
Nate 38ace65052
Nate.infra.generate: Support for source validation and cloning (#117)
* Pushing generate init

* linting

* Sourcing for infra generate

* Adding unit tests and mocks for infra generate source

* Updated tests for generate source

* master bump and unit test fix

* Updating docs

* adjusting simple-git

* refactoring infra generate per simple-git
2019-11-06 17:43:47 -08:00
Edaena Salinas fd1111a100 Upgrade spektate to version 0.1.12 (#113)
* Upgrade spektate t version 0.1.11

* Add status for multi-stage pipelines

* Remove check in docker to hld pipeline

* Fix formatting

* Change to version 0.1.12
2019-11-03 21:41:11 -08:00
Evan Louie 7190967669 Added source to ACR workflow instructions (#103)
This PR focuses around ironing out the flow of running `spk project init` or
`spk project init -m`, creating pipelines via the generated
`azure-pipelines.yaml` files, and ensuring the pipeline can create appropriately
named/tagged docker images in ACR.

In order to allow for flexibility in how SRE's choose to deploy the pipelines,
this PR does not automate the actual deployment of the pipeline. Instead, `info`
level instructions have been added specifying how to run the
`spk service create-pipeline` to deploy the `azure-pipelines.yaml` generated; If
the the user has configured the spk config correctly, the outputted command is
copy/paste ready to deploy the generated pipelines yaml:

If ran on a mono-repo:
`spk service create-pipeline --project-dir packages my-service` will be logged.

If ran on a standard repo: `spk service create-pipeline my-service` will be
logged.

The `azure-pipelines.yaml` expects 4 environment variables to be present in
order to login to `az` cli and build and push an image to ACR:

- `ACR_NAME` - name of the target ACR
- `SP_APP_ID` - service principal ID
- `SP_PASS` - service principal password
- `SP_TENANT` - service principal tenant

These requirements are also `info` logged to the end user upon
`azure-pipelines.yaml` generation.

Previously `spk service create-pipeline` only worked for mono-repositories and
the code has been refactored such that the existence of the `--packages-dir`
options implies whether or not the repository is a mono-repository or a standard
one.

closes https://github.com/microsoft/bedrock/issues/646
2019-10-28 12:44:07 -07:00
Evan Louie 5bb50fa595 Fix broken `variables` type for azure-pipelines.yaml
Fixed an issue with the starter azure-pipelines.yaml an top level type
definition for it. `variables` expects a sequence of maps but a top
level map was being generated instead.
2019-10-24 11:16:57 -07:00
Sarath Pinninty 978116faf7
Creates new Variablegroup with a link to Azure Key Vault (#73)
* Adding Variable group implementation

* added new environment variables in example file.

* refactoted code and added comments

* Changed node mode to development in webpack config and added debug statements in variable group

* Fixed naming issue in the production build. Added Service Point interfaces

* removed tslint disabling

* Fixed linting issues

* updated mock config file and extracted azure-devops interface

* Made some config variables nullable

* Updated mock config file with variablegroup info

* Added interfaces for service connection and implemented feedback comments

* Fixed lint issue

* renamed service connection to service endpoint to be consistent with rest api

* Fixed file reanming issue

* refatored azdo.ts methods to be singleton

* Fixed lint issues

* adding tests

* uncommented code

* Fixed unit test cases

* added more test cases and created new section for vsts variables

* added more test cases and created new section for vsts variables

* Added test cases

* updated test description

* updated comments

* refactored code and added create command for variable group

* added docs

* updated docs and added valiadtion to check variable group type

* Moved ts-node to dev dependencies

* updated docs

* renamed file

* Fixed type refactoring issue

* fixed doc error

* changed docs and fixed unit test

* Force merging master

* added variable group types back after force overwrite
2019-10-23 12:06:55 -07:00
Samiya Akhtar 46eb0d8434
Use the new version of spektate (#96) 2019-10-22 16:02:25 -07:00
Yvonne Radsmikham 2fed52285a
Add template to cluster definition (#69) 2019-10-16 13:10:34 -07:00
Samiya Akhtar a709f3fac6
deployment dashboard command (#70)
* Dashboard command

* Basic tests for dashboard command

* Fix imports

* Improve tests

* Testing with a higher timeout

* Test simply won't end

* Don't open port in unit test

* Kill docker container before test finish

* Logger messages

* Try catch

* docker container is not stopping

* Stop docker container in test
2019-10-16 12:45:30 -07:00
Sarath Pinninty 04b3fb91a2
Fixes `fetch` issue running `onboard` command from `spk` (#61)
* closes #658. Also removed wrapper new Error object in all catch blocks in Storage.ts file.

* Added validation in getManagementCredentials function

* Removed es6-promise
2019-10-11 07:37:17 -07:00
Michael Tarng 6b08f3221c
adding flag to commit and push new service changes (#56)
* adding flag to commit and push new service changes

* feedback

* error handling for gitutils

* editing create.ts to catch errors...
2019-10-10 13:54:20 -07:00
Bhargav Nookala 084b744423 Fixing azdo webpack issues 2019-10-04 14:20:35 -07:00
Sarath Pinninty 9a4c0b42bc Service deployment storage on boarding with init command. (#44)
* Adding deployment obboarding functionality

* Added .env for credentials

* Updated options and connected with init

* Updated options and connected with init

* addedd unit tests with mocks

* fixed tslinit error by renaming resolve

* Updated with feedback

* throwing error when storage ccount access ket is not available
2019-10-03 14:59:08 -07:00
My Ho b7f18f7902 move packages to the right location 2019-10-02 13:59:05 -07:00
My Ho a2f1820f3e refactor test 2019-10-02 13:59:05 -07:00
Michael Tarng 27dc42d3ef working addition to maintainers file, need to refactor....a lot 2019-10-02 13:59:05 -07:00
Nate 80e7631ca7
Adding spk infra command - Deploying Azure resources through bedrock (#31)
* Init infra spk command for deploying resources

* Added WIP for init.ts (#15)

* added infra init command (WIP)

* Working terraform init (brute force)

* updated init, with exec & arg parser for templates

* spk infra init with unit testing (#26)

* Adding infra create tests

* modifying spk infra tests

* Updated documentation

* adding check for bedrock source

* Adding additional checks for Bedrock source

* modified spk infra create test

* Removing test infra version (used for initial testing)

* Readme updates for spk infra create

* Removing references to spk infra version decorator

* simplify imports

* Add JSDoc

* Reverting to original working dir and adding jsdoc

* increasing timeout, failed on 10 secs

* update README, increase timeout

* camelcasing vars

* convert let to const

* change const to let for create.ts

* Linting on branch
2019-10-01 23:42:51 -07:00
Andre Briggs 6ae7049111
Adding AzDO pipeline with matrix build and code coverage (#33)
* Set up CI with Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Adding new line. Officially added nyc via yarn
2019-09-30 14:45:46 -07:00
Samiya Akhtar 222faa36f6
Adding basic unit tests for `deployment` (#27)
* Adding basic unit tests for deployment

* Fix get unit test

* Adding one more test
2019-09-26 13:42:04 -07:00
Samiya Akhtar 4f5d9b1ff7
Stop using callbacks; reduce the number of mandatory params for init (#22) 2019-09-25 17:44:30 -07:00
Bhargav Nookala 67528ae32c Adding pipelines creation lib 2019-09-25 16:33:45 -07:00
Michael Tarng 437d5ff587 fixing dependency removal 2019-09-25 14:06:55 -07:00
Michael Tarng e34a7a75e4 removing mkdirp 2019-09-25 14:06:55 -07:00