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

143 Коммитов

Автор SHA1 Сообщение Дата
Engin Polat 501f5dcc70
Merge remote-tracking branch 'private/main' into v2 2022-11-11 22:31:38 +00:00
Engin Polat 2307e7d335
Merge pull request #52 from benchpress-team/main
changing the architecture
2022-11-11 13:51:15 -08:00
Engin Polat d21e3e06e8
Update README.md 2022-11-11 13:50:32 -08:00
Robert David Hernandez e6e2ca23bf
spike/engine lifecycle (#28)
* add Mermaid formatted sequence diagram

* add draft engine interfaces and sequence diagram

* A post-create script that gets executed when the container first launches

* Example of using Aspect-oriented programming to start test engine

* wired up engine lifecycle manager

* reformat to C# bracket style

* add additional lifecycle hooks for more granualarity

* Create StateMachineExample.cs

* WIP state machine

* Lifecycle diagram

* API, example test, state diagram.

* close to done on example code diagram and doc

* More examples and text updates

* Update engine_lifecycle_spike.md

* minor refactoring

* minor refactorings

* minor refactorings

* minor refactorings, add awaits

* update markdown doc and minor refactoring to example code

* remove unused code

* update doc

* Make sure code compiles. Minor updates to wording

* refactoring and aligning doc to code

* delete duplicate code in /sequence_diagram.md

* delete unused code

* update casing to match convention

* comment strings added to design class

* remove unused code, rename main

* move Attributes folder to designs

Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
Co-authored-by: Uffaz Nathaniel <ThePedestrian@users.noreply.github.com>
2022-11-11 15:00:11 -06:00
Dilmurod Makhamadaliev 479f542ea6
PowerShell Test / GitHub Actions Workflow Docs Update (#29)
* integrate BicepTranspileService (#23)

* doc update

* small changes

* FileNotFoundException test added

* transpile bicep test mokc refactoring

Co-authored-by: jessica-ern <107070686+jessica-ern@users.noreply.github.com>
2022-11-11 10:59:27 -05:00
Dilmurod Makhamadaliev 9b853fa996
FileSerice Wrapper - Integration with ArmDeploymentService and TranspileBicepSerivice (#26)
* transpile bicep to arm template feature

* bicep submodule restructured

* rename the bicepSubmodule to BicepExecute

* change method signature and make async

* Renaming Bicep Service - main have existing BicepService.cs

* additional tests added

* corrections for feedbacks

* actual manual deployment is tested

* changed from method wrapping Bicep.Cli into direct calling Bicep.Cli.Programs.Main

* fixing linting errors

* additional mock test to throw exception and dotnet workflow update

* linting fix

* liniting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* come on now

* come on now

* come on now

* adding submodule checkout

* turn off dotnet build

* file service interface

* file service implementation

* changes

* file delete feature

* file service implementation

* file service implementation

* tested locally

* adding file service into transpile bicep

* file service integration

* integrate BicepTranspileService (#23)

* fix build errors

* fix linitn errors

* corrections for feedbacks

* parameter content

* change async

* FileNotFoundException test added

* DeploymenServiceTests FileService setup

* transpile bicep test mokc refactoring

Co-authored-by: Jessica Ern <jessicaern@microsoft.com>
Co-authored-by: jessica-ern <107070686+jessica-ern@users.noreply.github.com>
2022-11-10 18:19:40 -05:00
jessica-ern 6788879f35
update the main README and add a Manually Testing the Test Engine doc (#27)
* update the main README and add a Manually Testing the Test Engine doc

* linting and spelling errors

* Apply suggestions from code review

Co-authored-by: Omeed Musavi <omusavi@users.noreply.github.com>

* addressing PR comments

* add sample code to samples

Co-authored-by: Omeed Musavi <omusavi@users.noreply.github.com>
2022-11-10 15:53:05 -06:00
jessica-ern 59a2644e76
expose gRPC endpoint for deploying at the subscription scope (#24)
* expose gRPC endpoint for deploying at the subscription scope

* not the template name I wanted
2022-11-10 13:38:33 -06:00
jessica-ern 027e4f456b
integrate BicepTranspileService (#23) 2022-11-09 14:34:33 -06:00
Dilmurod Makhamadaliev 55ad2e1ead
Bicep Transpile Service - Takes Bicep File, Generates Arm Template Using Bicep Submodule (#20)
* transpile bicep to arm template feature

* bicep submodule restructured

* rename the bicepSubmodule to BicepExecute

* change method signature and make async

* Renaming Bicep Service - main have existing BicepService.cs

* additional tests added

* corrections for feedbacks

* actual manual deployment is tested

* changed from method wrapping Bicep.Cli into direct calling Bicep.Cli.Programs.Main

* fixing linting errors

* additional mock test to throw exception and dotnet workflow update

* linting fix

* liniting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* linting fix

* come on now

* come on now

* come on now

* adding submodule checkout

* turn off dotnet build

* dotnet build

* removing duplicate package refrence

* change dotnet setup version to 3

* fetch depth 0

* test null exception change

* lint fix

* mock bicep submodule

Co-authored-by: Jessica Ern <jessicaern@microsoft.com>
2022-11-09 15:03:54 -05:00
Engin Polat a8da0971d9
Merge pull request #44 to update url under samples
Updated url under 'samples'
2022-11-08 11:35:08 -08:00
jessica-ern 49eeb64be0
added gRPC requirements for python (#19)
* added gRPC requirements for python

* move grpc install into the setup.cfg
2022-11-08 10:47:11 -06:00
jessica-ern 3aed3b129b
Deploy (an ARM Template) to a Resource Group (#13)
* Injected ArmClient into the BicepService

* added resource group deployment code. Includes temporary testing code in the Framework

* wrapped the ArmClient in a service to ease mocking

* Add some deployment group tests

* add tests for the ArmDeploymentService

* remove testing code from framework, but keep the gRPC packages

* bicep will not be transpiling the parameter files

* add comment

* line ending

* addressing PR comments: parameter validation and variable renames

* rename test

* cut down duplicate lines
2022-11-08 10:41:23 -06:00
Uffaz Nathaniel 25e107cd93
Dev Container: Add a post create shell script for post-creation actions (#12)
* A post-create script that gets executed when the container first launches

* Post create shell script

Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
2022-11-04 15:55:40 -07:00
Dilmurod Makhamadaliev 23b28709db
Issue/33 working agreement document update with linting error fix (#38)
* Add files via upload

Draft working agreement for review.

* Add files via upload

* Delete WorkingAgreement.docx

* Update working agreement 

Working agreement updated based on Uffaz and Omeed's feedback

* Update Working Agreement.md

Chages made include:
1. Updated to T-shirt sizes (removing estimation efforts)
2. Changed Sprint Planning to Tuesday, same day with Sprint Review
3. Changed duration of DSU to 30 mins, Sprint Review, Sprint Planning, Backlog refinement to 60 minutes.

* cspell errors

Co-authored-by: ayomustapha <105678915+ayomustapha@users.noreply.github.com>
2022-11-04 13:47:44 -07:00
jessica-ern 29925e8d06
basic engine layout (#1)
* basic engine layout

* addressing PR comments

* add engine and proto files to the github workflows

* fix linter erros hopefully

* trying line endings again

* we don't actually need that file anyway

* remove push jobs

* updated the docs with issues I ran into

* fix docker files

* add back in accidentally removed line

* added some stuff to the getting started doc

* remove some stuff from the getting started doc
2022-11-04 09:55:10 -05:00
Dilmurod Makhamadaliev 3f24833567
GitHub Actions Pull Request Workflow - On Pull Request to Specific File Path, only the required file path will be linted instead of running all linting workflow (#11)
* change to linting workflow filter path

* test doc linting wrokflow

* test doc and dotnet linting wrokflow

* test python and dotnet linting wrokflow

* test python pull request workflow

* test dotnet pull request workflow

* test dotnet pull request workflow

* test dotnet pull request workflow

* test dotnet and docs request workflow

* test docs pull request workflow

* moving github actions  to private repo

* change linting workflow trigger to pull request only

* update to linting docs

* change to megalinter config

* change to megalinter config

* change to megalinter config

* change to megalinter config
2022-11-04 10:45:23 -04:00
Robert David Hernandez 51f78ef9ed
add docker-in-docker so we can run megalinter inside a devcontainer (#36) 2022-11-01 10:32:27 -04:00
Dilmurod Makhamadaliev 0f0da61121
Update to PowerShell Sample Code after Running in the Dev Container (#34)
* PowerShell Sample code dev container update

* update dev container post commands

* dev container run command for powershell

* fixing python linting errors

* fixing python linting errors
2022-10-31 15:32:41 -04:00
Robert David Hernandez eeee250e81
Feature/python sample tests (#27)
* first draft of python sample code for running basic benchpress test with most things mocked out

* add basic sample python test with many things still mocked

* update python sample code to be more conformant with issue description

* minor improvements and bug fixes

* configure python linters to ignore try,except,pass or no positive except assertion because we are at the mocking stage

* remove unused lint config files (#26)

Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>

* Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module

* Revert "Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module"

This reverts commit 5572ced9ed.

* update config directory vars in .mega-linter.yml from pointers to indv files to single pointer to parent dir (#32)

* remove unused lint config files

* update config directory vars from pointers to indv files to single pointer to parent dir

Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>

* Feature/pws sample (#28)

* working on workflow

* workig document workfow

* dotnet lint rules

* test python workflow

* test python workflow

* test python workflow

* pr_python

* pr_worflow check pyhton and dotnet

* test workflow

* test workflow

* test workflow

* test workflow

* test pyhton

* test pyhton

* test python

* pr_doc workflow

* docs check

* docs check

* docs check

* pr_workflow

* pr_workflow

* pr_workflow

* pr_workflow

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* corrections to pr md files

* cspell configuration

* cspell configuration

* cspell configuration

* cspell configuration

* doc file update and add config for markdown-link-check

* doc file update and add config for markdown-link-check

* change folder structure for linter config files

* fix documentation

* fix documentation

* resolve document misspell

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon

* powershell test sample

* powershell test sample

* fix dotnet issue

* powershell changes

* storage account and bicep helpers

* storage account and bicep helpers

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* code cleanup

* updated documentation

* updated documentation

* updated test file

* remove .pylintrc

* configure python linters to ignore try,except,pass or no positive except assertion because we are at the mocking stage

* update bandit and pylintrc linting rules to ignore try,except,pass

* attempt to bypass try-except-pass lint fail with a no-op

Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
Co-authored-by: Dilmurod Makhamadaliev <104784252+DilmurodMak@users.noreply.github.com>
2022-10-28 10:32:54 -07:00
Uffaz Nathaniel 21386f3044
Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module. (#30)
* Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module.

* Fix linting errors

* update megalinter config

* don't report missing imports

* Do not report missing imports.

Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
2022-10-28 08:45:51 -07:00
Dilmurod Makhamadaliev 7d729a3ae8
Feature/pws sample (#28)
* working on workflow

* workig document workfow

* dotnet lint rules

* test python workflow

* test python workflow

* test python workflow

* pr_python

* pr_worflow check pyhton and dotnet

* test workflow

* test workflow

* test workflow

* test workflow

* test pyhton

* test pyhton

* test python

* pr_doc workflow

* docs check

* docs check

* docs check

* pr_workflow

* pr_workflow

* pr_workflow

* pr_workflow

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* corrections to pr md files

* cspell configuration

* cspell configuration

* cspell configuration

* cspell configuration

* doc file update and add config for markdown-link-check

* doc file update and add config for markdown-link-check

* change folder structure for linter config files

* fix documentation

* fix documentation

* resolve document misspell

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon

* powershell test sample

* powershell test sample

* fix dotnet issue

* powershell changes

* storage account and bicep helpers

* storage account and bicep helpers

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* PowerShell Storage Account test sample

* code cleanup

* updated documentation

* updated documentation

* updated test file

* remove .pylintrc
2022-10-28 10:54:14 -04:00
Robert David Hernandez b91971ace4
update config directory vars in .mega-linter.yml from pointers to indv files to single pointer to parent dir (#32)
* remove unused lint config files

* update config directory vars from pointers to indv files to single pointer to parent dir

Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>
2022-10-28 07:43:58 -07:00
Uffaz 0a1f58b072 Revert "Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module"
This reverts commit 5572ced9ed.
2022-10-26 17:01:59 -07:00
Uffaz 5572ced9ed Create an installable benchpress python module. Configure dev container. Update documentation on how to use Python module 2022-10-26 16:55:25 -07:00
Robert David Hernandez 4ccab42ad8
remove unused lint config files (#26)
Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>
2022-10-25 12:20:47 -04:00
Engin Polat 005542bfec
add compilation stage to dotnet pipelines (#25)
* adding dotnet restore and build steps into dotnet pr pipeline

* removing non-existent project

* adding new words and merging separate words sections
2022-10-25 08:56:25 -07:00
Robert David Hernandez 53b2d2a218
Feature/megalinter (#23)
* add contributing.md, works across many linters now

* needs a python file to run python linters

* remove unused code

Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>
2022-10-24 15:22:02 -04:00
Dilmurod Makhamadaliev df4050df83
GitHub Actions Workflow for Linting python and dotnet source code, and docs (#22)
* working on workflow

* workig document workfow

* dotnet lint rules

* test python workflow

* test python workflow

* test python workflow

* pr_python

* pr_worflow check pyhton and dotnet

* test workflow

* test workflow

* test workflow

* test workflow

* test pyhton

* test pyhton

* test python

* pr_doc workflow

* docs check

* docs check

* docs check

* pr_workflow

* pr_workflow

* pr_workflow

* pr_workflow

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* link check edit

* corrections to pr md files

* cspell configuration

* cspell configuration

* cspell configuration

* cspell configuration

* doc file update and add config for markdown-link-check

* doc file update and add config for markdown-link-check

* change folder structure for linter config files

* fix documentation

* fix documentation

* resolve document misspell

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon

* resolve editorconfig for markdwon
2022-10-24 14:15:59 -04:00
Engin Polat 140e90e044
configure code analysis in csharp projects (#24)
* adding csharp and typescript specific editor configuration

* adding global config for csharp projects

* configuring .net projects to use global config at the root of the repo
2022-10-24 09:57:59 -07:00
Uffaz Nathaniel 6848c545e4
Dev container to support C#, Python, MegaLinter, Azure CLI, Pester, and VS Code extensions for ARM, Bicep, C#, Python (#20)
* Dev container to support C#, Python, MegaLinter, and VS Code extensions for ARM, Bicep, C#, Python

* Adding docs

Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
2022-10-24 07:36:42 -07:00
Robert David Hernandez f81bfa708e
Feature/megalinter (#18)
* add vim, linux, macos, visualstudiocode, python, csharp to gitignore file

* add vim, linux, macos, visualstudiocode, python, csharp to gitignore file

* add node to gitignore

* add package jsons

Co-authored-by: Robert David Hernandez <robhernandez@microsoft.com>
2022-10-20 17:38:35 -04:00
ayomustapha b64dd66807
Delete pull_request_template.md 2022-10-20 12:12:45 -07:00
Uffaz Nathaniel 19e293152c
Delete pull_request_template.md 2022-10-20 11:49:06 -07:00
Uffaz Nathaniel c2732728a6
Pull request template 2022-10-20 11:47:41 -07:00
ayomustapha e84c9c8a12
Update Issue template for PR (#21)
Add "Pull Request" template
2022-10-19 14:20:04 -07:00
Dilmurod Makhamadaliev b0c9babc8f
Feature/dotnet folder structure v2 (#19)
* dotnet folder structure

* Generator code added

* Generator code added
2022-10-19 10:55:28 -07:00
Uffaz 3128b52a3c Revert "Dev container to support C#, Python, MegaLinter, and VS Code extensions for ARM, Bicep, C#, Python"
This reverts commit 78c0904e92.
2022-10-19 08:09:27 -07:00
Uffaz 9cd9c93215 Revert "dotnet folder structure (#16)"
This reverts commit 700ef792de.
2022-10-19 08:07:33 -07:00
Uffaz 78c0904e92 Dev container to support C#, Python, MegaLinter, and VS Code extensions for ARM, Bicep, C#, Python 2022-10-19 08:05:13 -07:00
Dilmurod Makhamadaliev 700ef792de
dotnet folder structure (#16)
* dotnet folder structure

* Generator code added

* Generator code added
2022-10-18 08:57:20 -04:00
John 724ee12c6f
Updated url under 'samples' 2022-09-30 09:16:26 +02:00
Engin Polat 32049f325d
fixing typo 2022-09-28 23:07:34 +00:00
Engin Polat a9f2107be7
fixing typo 2022-09-28 23:07:18 +00:00
Engin Polat 91a5421acc
bumping bicep submodule to latest commit 2022-09-28 23:06:45 +00:00
Engin Polat f5532509f0
parsing generated parameters and provide params and variables to tests 2022-08-21 16:01:26 +00:00
Engin Polat 7872eaa413
formatting template document 2022-08-21 01:48:52 +00:00
Engin Polat 50ba60fde5
adding check to create the output folder before accessing it 2022-08-21 01:46:31 +00:00
Engin Polat d60eccf518
adding generated parameters file to the output folder 2022-08-21 01:45:01 +00:00
Engin Polat 3531d56ec7
updating bicep submodule dependency 2022-08-21 01:41:55 +00:00