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

Bump golang.org/x/net from 0.17.0 to 0.23.0 #194

Closed
wants to merge 348 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
adaedb3
[refactor] status reporting & instantation. Remove URI tracking for now.
vmarcella Aug 1, 2023
4cf1ca0
[update] resource URIs to be populated in the end after all of the de…
vmarcella Aug 1, 2023
02e49f7
[update] status code exits by capturing the command exit status
vmarcella Aug 4, 2023
4d6ee1b
[remove] az cli error check now that exit codes are working, refactor…
vmarcella Aug 8, 2023
73dc17e
[remove] python modules no longer part of the project.
vmarcella Aug 9, 2023
ac654d6
[update] path for demo scripts.
vmarcella Aug 9, 2023
0b012de
[update] styling for step titles, spinner, and verbose output.
vmarcella Aug 9, 2023
b3407b8
[add] styling for the ocd status to set it's foreground to black.
vmarcella Aug 9, 2023
9cbf5b9
[update] cursor positioning to be simplified.
vmarcella Aug 9, 2023
efb1621
[update] moveCursorPosition to also handle printing it.
vmarcella Aug 9, 2023
826328c
[update] all cursor adjustments to be in common.go & update report OC…
vmarcella Aug 10, 2023
8154ef2
[update] resource URIs to be attached before the last interactive ssh…
vmarcella Aug 10, 2023
bdef1ea
[add] unique postfixes to ssh scenario.
vmarcella Aug 10, 2023
6d59a5e
[update] status to succeeded.
vmarcella Aug 10, 2023
7722d4e
[add] --working-directory flag for ie execute so that directories wit…
vmarcella Aug 11, 2023
4f154e2
Replace AGIC with NGINX ingress controller
rguptar Aug 14, 2023
60d2333
Add README.md to ocd scenarios
ralphr123 Aug 15, 2023
3c9f89f
Change export block to plaintext so it doesn't get run by engine
ralphr123 Aug 16, 2023
aa396f0
remove ssh clone command
ralphr123 Aug 16, 2023
8af22f7
Move export commands to the top
ralphr123 Aug 16, 2023
6619490
Added expected_similarity comments to markdown
ralphr123 Aug 16, 2023
721269f
Merge pull request #18 from ralphr123/ralph/deploy-container-app-from…
vmarcella Aug 16, 2023
7d9eb51
Fix export command typo, add note about accepting AI terms on portal
ralphr123 Aug 19, 2023
bd06316
Remove lb after similarity comments
ralphr123 Aug 19, 2023
f93a313
Add instruction to install containerapp extension
ralphr123 Aug 19, 2023
af06393
Added cd instruction after cloning repo
ralphr123 Aug 19, 2023
063baaf
[add] test for markdown title parsing.
vmarcella Aug 22, 2023
d584650
[add] first tests for markdown parsing.
vmarcella Aug 22, 2023
5529e3f
[rm] invalid test file.
vmarcella Aug 22, 2023
4a5deac
[update] deps.
vmarcella Aug 22, 2023
adade90
[update] test runner and add test for parsing a basic codeblock.
vmarcella Aug 22, 2023
4da24e6
Merge branch 'vmarcella/port-to-go' of https://github.com/Azure/Innov…
vmarcella Aug 22, 2023
1536c66
[update] test structure and add a new test.
vmarcella Aug 23, 2023
a313ba2
[update] test names.
vmarcella Aug 23, 2023
0028f4f
[update] INI parsing to return an error instead of panicking, add a t…
vmarcella Aug 23, 2023
db8bd65
[add] tests for map utilities.
vmarcella Aug 23, 2023
ab6048f
Env vars are auto generated, go bash only splits on first =
ralphr123 Aug 23, 2023
ee82495
Update source path for containerapp up
ralphr123 Aug 23, 2023
09f0139
Merge pull request #19 from ralphr123/ralph/clarify-container-app-doc
vmarcella Aug 23, 2023
6276516
Merge branch 'vmarcella/port-to-go' of https://github.com/Azure/Innov…
vmarcella Aug 23, 2023
a9ee7ab
[update] execution to compare outputs & refactor output comparisons i…
vmarcella Aug 23, 2023
59ff2bf
[add] expected similarity blocks and format outputs.
vmarcella Aug 23, 2023
3f75cb7
[update] logging to not include the caller for now, as logs were too …
vmarcella Aug 24, 2023
b2366ab
[add] cursor adjustment back.
vmarcella Aug 24, 2023
12118eb
AKS Best practice setup and NGINX Ingress Controller (#21)
naioja Aug 25, 2023
4abcf43
[add] the logic to write the command execution to the bash history fi…
vmarcella Aug 26, 2023
74b6951
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Aug 26, 2023
c1841b9
[fix] bug with interactive command error reporting.
vmarcella Aug 26, 2023
017b75d
[update] do not write interactive commands to history
rguptar Aug 28, 2023
95e7f4c
Fix SSL user email address (#25)
naioja Aug 30, 2023
5cb2d3b
[add] contributing guide.
vmarcella Aug 31, 2023
4e452a8
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Aug 31, 2023
192fd64
anonymizing resource groups and other ids (#26)
naioja Sep 5, 2023
94461a4
Using Ubuntu 22.04 and AAD extension for SSH (#28)
naioja Sep 5, 2023
26042cb
Update CONTRIBUTING.md (#27)
mbifeld Sep 5, 2023
3971b23
[update] expected output jsons to be compared despite the casing of t…
vmarcella Sep 6, 2023
e6d2145
[add] identity to the created vm & update logging so that errors are …
vmarcella Sep 7, 2023
f6acf7a
Adding LAMP scenario (#22)
naioja Sep 8, 2023
95ec51a
[add] --variables flag to allow for environment variables to be overi…
vmarcella Sep 11, 2023
e23e448
[update] parameter name to be --var & update the parser to inject the…
vmarcella Sep 11, 2023
b9abcbd
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 11, 2023
0aae1d0
[update] all scenarios to use REGION as their location variable.
vmarcella Sep 11, 2023
14e2aca
[update] documentation and organization.
vmarcella Sep 12, 2023
feff2bc
Fixing all markdownlint messages. (#35)
naioja Sep 19, 2023
49f268a
Fixing all markdownlint messages the LAMP doc. (#36)
naioja Sep 19, 2023
6feac36
Fix scenarios (#40)
rguptar Sep 19, 2023
bf5e75b
[add] command stdout and stderr to our logs.
vmarcella Sep 19, 2023
f9c61f5
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 19, 2023
6febd8b
Wait for resource to reach ready state (#43)
rguptar Sep 19, 2023
0164c76
[add] a functional but basic test mode, update logging, and add new t…
vmarcella Sep 20, 2023
1ce60b8
[fix] correlationId not being set.
vmarcella Sep 20, 2023
9e0f21d
[update] the ssh command and add a unit test to test our regex out.
vmarcella Sep 20, 2023
d135966
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 20, 2023
13cf701
[remove] access token/login auth from engine initialization for now.
vmarcella Sep 20, 2023
fdbd219
[update] scenario to send a yes into the az ssh config command on clo…
vmarcella Sep 20, 2023
8ffe4a8
[update] title.
vmarcella Sep 20, 2023
15e12fe
[update] ssh scenario to temporarily not configure the ssh config.
vmarcella Sep 20, 2023
9ae4977
[add] az ssh config command back.
vmarcella Sep 20, 2023
23dff75
Add envsubst
rguptar Sep 20, 2023
22212ef
Merge pull request #44 from Azure/guptar/scenarios
rguptar Sep 20, 2023
d6d6dfd
Alterntives to envsubst
naioja Sep 21, 2023
6b2f18b
Merge pull request #45 from naioja/aj_envsubst_alternative
rguptar Sep 21, 2023
92dceb8
[remove] az ssh command again.
vmarcella Sep 21, 2023
82f1ce8
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 21, 2023
b4e8345
[add] pipeline to run scenarios automatically.
vmarcella Sep 21, 2023
bb52ca1
[update] name of the stage.
vmarcella Sep 21, 2023
331dea8
[update] pipeline.
vmarcella Sep 21, 2023
46690a1
[update] subscription ID.
vmarcella Sep 21, 2023
8ca6735
[update] subscription to be passed in from top level scope.
vmarcella Sep 21, 2023
0853012
[fix] subscription.
vmarcella Sep 21, 2023
02a35c2
[update] pipeline to print out the ie log file.
vmarcella Sep 21, 2023
16ec206
ReadMe for LinuxSecureWebServer (#24)
brmoreir Sep 22, 2023
181d5b2
[update] ssh config name and for the scenario to assign an identity t…
vmarcella Sep 22, 2023
08f4bdc
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 22, 2023
ff798bd
[update] LEMP scenario to assign an identity and write the azure conf…
vmarcella Sep 22, 2023
a0d49bb
[remove] result block for the az ssh config scenario.
vmarcella Sep 22, 2023
512cf60
[fix] command output checking to set an error when the command output…
vmarcella Sep 22, 2023
9031085
[update] loop -> renderingLoop.
vmarcella Sep 22, 2023
2b0e418
Exclude liveness check for AKS scenario
rguptar Sep 22, 2023
c916d25
[update] json response to be properly formatted.
vmarcella Sep 22, 2023
88c14fe
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 22, 2023
cef7a1a
[update] scenario to not use az role assignment and then simplify the…
vmarcella Sep 23, 2023
76305ab
[update] utils -> lib and refactor some functions out of the engine.
vmarcella Sep 23, 2023
cd3e3bd
[remove] az ssh command from LEMP.
vmarcella Sep 25, 2023
8266409
[update] random postfix to have a bit more entropy.
vmarcella Sep 25, 2023
633bec4
[update] random postfix to have even more entropy.
vmarcella Sep 26, 2023
b08f28d
[add] to-bash command to generate scripts for both local & portal env…
vmarcella Sep 26, 2023
1340ab7
[add] identity login for the portal, update environment state file name.
vmarcella Sep 27, 2023
5ac6e33
[update] bash command executed for MSI login.
vmarcella Sep 27, 2023
1f9f0f7
Merge branch 'vmarcella/port-to-go' of github:Azure/InnovationEngine …
vmarcella Sep 28, 2023
0736eb8
[update] engine creation to be checked in ie execute.
vmarcella Sep 28, 2023
4722078
[add] token generation for one click deployments.
vmarcella Sep 28, 2023
75b46b8
[disable] access token fetching for now.
vmarcella Sep 28, 2023
8bd01fe
[refactor] SetCorrelationID, add a basic unit test, and then remove t…
vmarcella Sep 29, 2023
bdf02b8
[update] scenario testing to only run on main for now.
vmarcella Sep 29, 2023
335778e
Merge branch 'main' into vmarcella/port-to-go
vmarcella Sep 29, 2023
aa75583
[fix] gitignore.
vmarcella Sep 29, 2023
3a3f7d8
[update] workflow to run on prs into main
vmarcella Sep 29, 2023
053668f
[remove] branch from release pipeline.
vmarcella Sep 29, 2023
31f6ea5
Merge pull request #16 from Azure/vmarcella/port-to-go
vmarcella Sep 29, 2023
eb03a26
Collection of small fixes for the engine (#68)
vmarcella Oct 13, 2023
de7032b
More minor fixes (#98)
vmarcella Oct 13, 2023
33a771b
[fix] resource group name matching. (#99)
vmarcella Oct 13, 2023
48c5ca6
[add] functions to strip invalid env vars from the env state file for…
vmarcella Oct 14, 2023
fd52367
[add] quotations to all env values. (#102)
vmarcella Oct 14, 2023
41440e4
[fix] rendering of multi-line strings
rguptar Oct 16, 2023
531f3c8
[refactor] command rendering
rguptar Oct 16, 2023
0a78c14
[update] go.mod
rguptar Oct 16, 2023
6c89a08
[update] pipeline action for azure cli sign in. (#109)
vmarcella Oct 17, 2023
76e70fc
address multiline quoted case separately
rguptar Oct 17, 2023
fc51625
[add] hide value rendering behind a feature flag
rguptar Oct 17, 2023
85505f0
Fixes for scenarios (#111)
vmarcella Oct 18, 2023
44150fe
Merge pull request #106 from Azure/guptar/tutorial
rguptar Oct 19, 2023
cb791f4
[fix] subscription setting errors to be reported in the portal.
vmarcella Oct 18, 2023
2a6e0f3
LAMP Fixes
mbifeld Oct 20, 2023
69929c8
VM SSH Fixes
mbifeld Oct 20, 2023
c6aaa7d
AKS Fixes
mbifeld Oct 20, 2023
b6098e8
Bump golang.org/x/net from 0.8.0 to 0.17.0
dependabot[bot] Oct 23, 2023
28fe522
Merge pull request #97 from Azure/dependabot/go_modules/golang.org/x/…
rguptar Oct 23, 2023
f476afc
[fix] restoration of env vars
rguptar Oct 25, 2023
03880d1
[refactor] rename v to value
rguptar Oct 25, 2023
40e125e
readme: Fix path for tutorial.md (#120)
mqasimsarfraz Oct 27, 2023
c08329c
[fix] remove horizontal align (#121)
rguptar Oct 30, 2023
f299563
[update] resource URIs to be attached to the Azure status when en err…
vmarcella Nov 9, 2023
f5fa257
Add expected_contains tag. (#114)
eiffel-fl Nov 9, 2023
efef13e
Add manual scenario testing invocation and drop the requirement for r…
vmarcella Nov 10, 2023
303de1b
WP on AKS
naioja Oct 16, 2023
04e0ec0
Code ready
naioja Oct 24, 2023
203ca6f
Content ready
naioja Nov 1, 2023
60833a5
Fix possible VNet CIDR collisions
naioja Nov 2, 2023
4e41bf8
Fix Helm chart value for MySQL database name
naioja Nov 2, 2023
f7791a2
Fixes :
naioja Nov 8, 2023
f19e4ae
Updating configuration
naioja Nov 8, 2023
db3f326
Small spell fix
mbifeld Nov 20, 2023
bb6530f
scenarios: Add Inspektor Gadget on AKS use case
blanquicet Oct 5, 2023
fa0234f
[fix] scenario testing by installing make
rguptar Dec 6, 2023
eb312b6
Add installation command for ie. (#156)
vmarcella Dec 7, 2023
585633b
[update] authentication for the pipeline.
vmarcella Dec 19, 2023
0908b36
[update] pipeline environment for allowing any branch to run the scen…
vmarcella Dec 19, 2023
4f687a2
[add] comment around the environment addition.
vmarcella Dec 19, 2023
4335e88
[update] environment name.
vmarcella Dec 19, 2023
897dcd2
VMSS Scanerio update
belginceran Nov 23, 2023
3a41e28
VMSS Scanerio update
belginceran Nov 23, 2023
604f032
VMSS updates
belginceran Dec 4, 2023
d8486a1
VMSS updates
belginceran Dec 4, 2023
cdf50c0
VMSS updates
belginceran Dec 4, 2023
4ce12f9
VMSS update
belginceran Dec 5, 2023
727f7b2
VMSS update
belginceran Dec 5, 2023
b8911d7
VMSS update
belginceran Dec 5, 2023
3ea4d2a
VMSS update
belginceran Dec 5, 2023
df5506f
VMSS updates
belginceran Dec 5, 2023
02dc8cd
VMSS Updates
belginceran Dec 14, 2023
0acffa9
VMSS updates
belginceran Dec 14, 2023
17763b3
VMSS updates
belginceran Dec 14, 2023
74e563e
VMSS updates
belginceran Dec 14, 2023
71074ef
VMSS updates
belginceran Dec 18, 2023
7fab75d
update
belginceran Dec 18, 2023
f6e6f55
updated
belginceran Dec 18, 2023
64906c9
VMSS updates
belginceran Dec 19, 2023
bea8c3a
VMSS updates
belginceran Dec 19, 2023
5ae2536
VMSS updates
belginceran Dec 19, 2023
f465e74
VMSS updates
belginceran Dec 19, 2023
f02ec22
VMSS updates
belginceran Dec 19, 2023
4db8e03
Update README.md
naman-msft Dec 21, 2023
2f3787d
Update README.md
naman-msft Dec 21, 2023
3e82687
Update README.md
naman-msft Dec 21, 2023
3db495f
Update README.md
naman-msft Dec 21, 2023
82dbad0
[add] test upstream scenarios (#162)
rguptar Jan 3, 2024
a38bb66
Update install_from_release.sh to account for localized files
mbifeld Dec 22, 2023
21e8b4a
Update install_from_release.sh
mbifeld Dec 23, 2023
8715d5e
Update install_from_release.sh
mbifeld Dec 23, 2023
7fac854
Update install_from_release.sh
mbifeld Dec 23, 2023
7b52a85
Update install_from_release.sh
mbifeld Dec 23, 2023
3b20d76
Update install_from_release.sh
mbifeld Dec 23, 2023
ff98988
Update install_from_release.sh
mbifeld Dec 23, 2023
7a83870
Update install_from_release.sh
mbifeld Dec 23, 2023
819b787
Empty parameter grabs the scenarios from IE
mbifeld Dec 28, 2023
6fdaa21
Update install_from_release.sh
mbifeld Dec 28, 2023
ee7aaf4
Updated variable declariations
Jan 3, 2024
5f17eda
Switched lang to LANG
Jan 3, 2024
60caf59
Update locale variable to not incorrectly set a default of ''. (#166)
vmarcella Jan 25, 2024
5b21dd0
add: workflow for tagged release
rguptar Jan 26, 2024
9d51629
add: ie release version
rguptar Jan 26, 2024
092c954
add: testing for ie installation script
rguptar Jan 30, 2024
7cc4b63
fix: use $HOME
rguptar Jan 30, 2024
b8eb812
added static web app exec doc
naman-msft Nov 1, 2023
445b68a
add env variables, echoed website url at the end, formatted the doc
naman-msft Nov 2, 2023
05bb328
removed the first duplicate staticwebapp show block
naman-msft Nov 2, 2023
b5604de
made small formatting changes;
naman-msft Nov 2, 2023
edf7c07
added github action for automated PR generation for AI-generated exec…
naman-msft Nov 27, 2023
35d7664
added github action for automated PR generation for ai-generated-docs
naman-msft Nov 27, 2023
ff31590
made some changes to the converter
naman-msft Nov 28, 2023
4c0c1ac
added test readme.md files
naman-msft Nov 28, 2023
596648c
modified file name for pr
naman-msft Nov 28, 2023
d34c558
modified file name for pr
naman-msft Nov 28, 2023
7f3d088
AI generated doc titled
naman-msft Nov 28, 2023
f64baf7
changed filename for pr
naman-msft Nov 28, 2023
ba52bb8
changed filename for pr
naman-msft Nov 28, 2023
fb6ead7
successfully tested ai pipeline for existing exec docs now testing fo…
naman-msft Nov 28, 2023
d5b024a
successfully tested ai pipeline for existing exec docs now testing fo…
naman-msft Nov 28, 2023
e70e7f9
made changes to tool it now works
naman-msft Nov 29, 2023
d954c24
cleaned the converter and removed a file from AIDocs
naman-msft Nov 29, 2023
14a3b91
cleaned the code and added comments at necessary places
naman-msft Nov 29, 2023
7580965
added input functionality for testing exec docs
naman-msft Dec 5, 2023
f734b4f
placed the ai tool called converter under the scripts subfolder/ai_ge…
naman-msft Dec 6, 2023
1e7c1fc
configured the directory access and ie testing
naman-msft Dec 6, 2023
9673a2e
amended some code
naman-msft Dec 7, 2023
f713315
fixed curl issue while loading the app
naman-msft Jan 31, 2024
56e77e5
fixed static web app
naman-msft Jan 31, 2024
1147f69
fixed static web app
naman-msft Jan 31, 2024
7434c35
re-added linux vm doc
naman-msft Jan 31, 2024
b93f70a
fixed static web app
naman-msft Jan 31, 2024
94afea2
Update line endings/formatting. (#171)
vmarcella Feb 6, 2024
9fae711
Update test command to not wait for rg deletion. (#172)
vmarcella Feb 6, 2024
7faac03
Update release pipeline permissions. (#173)
vmarcella Feb 6, 2024
03ae339
Interactive mode (#165)
vmarcella Feb 16, 2024
1216639
Update the bash command execution to specify `set -e` when executing.…
vmarcella Mar 1, 2024
473e148
Refactor language parameter mapping in install_from_release.sh
naioja Feb 29, 2024
1429e12
Adding review comments
naioja Mar 4, 2024
a93deac
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#158)
dependabot[bot] Mar 6, 2024
17c197c
Covered case where no LANG var is set
mbifeld Mar 6, 2024
61e740c
Update install_from_release.sh
mbifeld Mar 6, 2024
a8f3a02
Update Interactive mode to render different user interfaces based on …
vmarcella Mar 7, 2024
0ce5041
Generate code coverage for tests in pipeline (#192)
vmarcella Mar 28, 2024
f18f249
Decouple installation of IE and scenarios. (#189)
vmarcella Apr 1, 2024
9b3c2d7
Parsing yaml metadata headers in markdown files (#191)
vmarcella Apr 1, 2024
d8742fd
Allow for IE to resolve remote markdown documents into scenarios (#190)
vmarcella Apr 1, 2024
b60ab88
Remove redundant scenarios from the repository (#188)
vmarcella Apr 1, 2024
f132a3b
Update locale fallbacks to use the version passed into the installati…
vmarcella Apr 10, 2024
b0ce89d
Bump golang.org/x/net from 0.17.0 to 0.23.0
dependabot[bot] Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-test-release-tagged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build-test-release-tagged

on:
push:
tags:
- v*

jobs:
build-test-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build all targets.
run: |
make build-all
- name: Run unit tests across all targets.
run: |
make test-all
- name: Prepare scenarios to be released.
run: |
sudo apt install zip
zip -r scenarios.zip scenarios
- name: Release Innovation Engine
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
files: |
./bin/ie
./scenarios.zip
32 changes: 32 additions & 0 deletions .github/workflows/build-test-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build-test-release
on:
push:
branches:
- main
jobs:
build-test-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build all targets.
run: |
make build-all
- name: Run unit tests across all targets.
run: |
make test-all
- name: Prepare scenarios to be released.
run: |
sudo apt install zip
zip -r scenarios.zip scenarios
- name: Release Innovation Engine
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
title: "IE"
automatic_release_tag: "latest"
prerelease: true
files: |
./bin/ie
./scenarios.zip
36 changes: 36 additions & 0 deletions .github/workflows/helloWorld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
70 changes: 70 additions & 0 deletions .github/workflows/scenario-testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: scenario-testing
on:
schedule:
- cron: "0 */2 * * *"
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
test-ie-installation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check ie installation
run: |
set -e
cat scripts/install_from_release.sh | /bin/bash
if ! command -v ie; then
echo "ie not found"
exit 1
fi

bash scripts/install_docs_from_release.sh en-us v1.0.1
if [ ! -d "${HOME}/scenarios" ]
then
echo "scenarios not found"
exit 1
fi
test-ocd-scenarios:
runs-on: ubuntu-latest
# This is needed in order to obtain OIDC tokens to sign this pipeline into
# the testing subscription for any branch in this repository.
environment: ScenarioTesting
steps:
- uses: actions/checkout@v2
- name: Build all targets.
run: |
make build-all
make test-all WITH_COVERAGE=true
- name: Upload test coverage
uses: actions/upload-artifact@v2
if: github.event_name == 'pull_request'
with:
name: coverage
path: coverage.html
- name: Sign into Azure
uses: azure/login@v1
if: github.event_name != 'pull_request'
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION }}
- name: Run all one click deployment scenarios.
uses: azure/CLI@v1
if: github.event_name != 'pull_request'
with:
azcliversion: 2.53.0
inlineScript: |
apk add --no-cache make git openssh openssl helm curl jq
make test-upstream-scenarios SUBSCRIPTION=${{ secrets.AZURE_SUBSCRIPTION }}
- name: Display ie.log file
if: (success() || failure()) && github.event_name != 'pull_request'
run: |
cat ie.log
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
*/*~
# Python
__pycache__

#VS Code
.vscode

# Ignore all binaries.
bin/

# Ignore ie logs
ie.log

# Ignore test coverage
coverage.html
coverage.out
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "upstream-scenarios"]
path = upstream-scenarios
url = https://github.com/MicrosoftDocs/executable-docs
180 changes: 180 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<!-- omit in toc -->
# Contributing to InnovationEngine

First off, thanks for taking the time to contribute! ❤️

All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles contributions. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉

> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
> - Star the project
> - Tweet about it
> - Refer this project in your project's readme
> - Mention the project at local meetups and tell your friends/colleagues

<!-- omit in toc -->
## Table of Contents

- [Code of Conduct](#code-of-conduct)
- [Microsoft Open Source Contribution Guide](#microsoft-open-source-contribution-guide)
- [I Have a Question](#i-have-a-question)
- [I Want To Contribute](#i-want-to-contribute)
- [Reporting Bugs](#reporting-bugs)
- [Suggesting Enhancements](#suggesting-enhancements)
- [Your First Code Contribution](#your-first-code-contribution)
<!--TODO [Improving The Documentation](#improving-the-documentation)-->
- [Styleguides](#styleguides)


## Code of Conduct

This project and everyone participating in it is governed by the
[InnovationEngine Code of Conduct](https://github.com/Azure/InnovationEngine/blob/main/CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report unacceptable behavior
to [email protected].

## Microsoft Open Source Contribution Guide

This is a Microsoft Open Source project. Please reference to the [Microsoft Open Source Contribtution Guide](https://docs.opensource.microsoft.com/contributing/) for FAQs and general information on contributing to Microsoft Open Source.

## I Have a Question

<!-- If you want to ask a question, we assume that you have read the available [Documentation](TODO: Add Documentation folder).-->
Before you ask a question, it is best to search for existing [Issues](https://github.com/Azure/InnovationEngine/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue.

If you then still feel the need to ask a question and need clarification, we recommend the following:

- Open an [Issue](https://github.com/Azure/InnovationEngine/issues/new).
- Provide as much context as you can about what you're running into.
- Provide project and platform versions (golang version, operating system, etc), depending on what seems relevant.

We will then address the issue as soon as possible.

## I Want To Contribute

> ### Legal Notice <!-- omit in toc -->
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.

### Reporting Bugs

<!-- omit in toc -->
#### Before Submitting a Bug Report

A good bug report shouldn't leave others needing to chase you down for more information. Therefore, we ask you to investigate carefully, collect information, and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.

- Make sure that you are using the latest version.
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](./README.md). If you are looking for support, you might want to check [I Have A Question](#i-have-a-question)).
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in [Issues](https://github.com/Azure/InnovationEngine/issues).
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
- Collect information about the bug:
- Stack trace (Traceback)
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM, etc)
- Version of the golang, make, etc depending on what seems relevant.
- Possibly your input and the output
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?

<!-- omit in toc -->
#### How Do I Submit a Good Bug Report?

> You must never report security related issues, vulnerabilities, or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to [email protected].
<!-- You may add a PGP key to allow the messages to be sent encrypted as well. -->

We use GitHub issues to track bugs and errors. If you run into an issue with the project:

- Open an [Issue](https://github.com/Azure/InnovationEngine/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
- Explain the behavior you would expect and the actual behavior.
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
- Provide the information you collected in the previous section.

Once it's filed:

- The project team will label the issue accordingly.
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).

### Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for InnovationEngine, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.

<!-- omit in toc -->
#### Before Submitting an Enhancement

- Make sure that you are using the latest version.
- Read the [documentation](./README.md) carefully and find out if the functionality is already covered, maybe by an individual configuration.
- Perform a [search](https://github.com/Azure/InnovationEngine/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- Find out whether your idea fits within the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.

<!-- omit in toc -->
#### How Do I Submit a Good Enhancement Suggestion?

Enhancement suggestions are tracked as [GitHub Issues](https://github.com/Azure/InnovationEngine/issues).

- Use a **clear and descriptive title** for the issue to identify the suggestion.
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to.
- **Explain why this enhancement would be useful** to most InnovationEngine users. You may also want to point out the other projects that solved it better and which could serve as inspiration.

### Your First Code Contribution
#### Innovation Engine
To get started with developing features for the Innovation Engine itself, you
will need `make` & `go`. Once you have those installed and the project cloned
to a local repository, you can attempt to build the project using:

```bash
make build-all
```

If the build completes, you should be able to start adding features/fixes
to the Innovation Engine codebase. Once you've added new changes, you can test
for regressions using:

```bash
make test-all
```

If implementing a new feature, it is expected to add & update any necessary
tests for the changes introduced by the feature.

If you're still looking for more information about how to build & run Innovation Engine,
[README](./README.md) has a more comprehensive guide for how to get started with project
development.

#### Innovation Engine markdown scenarios

If you are contributing to one of the markdown scenarios (executable documents)
for Innovation Engine, you are expected to follow the installation steps before
updating/adding your document. This is needed because once you've made changes
or have added a new scenario, you should test your executable document by
using the Innovation Engine:

```bash
ie execute <scenario-path>
```

This will attempt to parse your document into an executable scenario, make sure
that the commands extracted from codeblocks execute successfully, and that
their corresponding result blocks (if any) also line up with what the command
returned. Once you get your scenario to execute successfully, you should go ahead
and make a PR for it!

#### Creating a PR

<!-- TODO: Create a PR template -->
When creating a PR, please include as much context as possible. At minimum, this should include what the PR does and the testing strategies for it.

If your PR is a work in progress, please label it as a draft and include 'WIP' at the beginning of the PR title.

<!--### Improving The Documentation
TODO-->

## Styleguides
For working on the Innovation Engine, `go fmt` is what is used to format the
code for the project.

The commit style for individual commits doesn't necessarily matter as
all commits from a PR branch will be squashed and merged into the main
branch when PRs are completed.

<!-- omit in toc -->
## Attribution
This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
Loading
Loading