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

Split gosnappi #465

Closed
wants to merge 99 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
5aed3a0
added new reference API
ashutshkumr Feb 14, 2023
76c1f45
adding native use-cases to api yml (#398)
Vibaswan Apr 5, 2023
55fbc53
Merge branch 'main' into artifact-reorg
Vibaswan Apr 5, 2023
a38d7c6
initial commit
Vibaswan Apr 5, 2023
9ff8c20
adding more scenarios to example model and adding a problem.txt for c…
Vibaswan Apr 6, 2023
cab8b88
adding initital set of unit tests
Vibaswan Apr 6, 2023
5357850
moving new tests to different folder
Vibaswan Apr 10, 2023
7d4f988
adding x-field-pattern use-case and min max unit test
Vibaswan Apr 10, 2023
c165ff9
temporarily reducing coverage
Vibaswan Apr 10, 2023
eadb145
add unit test for choice
Vibaswan Apr 11, 2023
78d457f
Merge branch 'main' into artifact-reorg
Vibaswan Apr 11, 2023
85f5cc3
merging with main
Vibaswan Apr 11, 2023
dc5324e
initial commit for x-status changes
Vibaswan Apr 11, 2023
506e498
python test for warnings
Vibaswan Apr 11, 2023
451ea79
added type and format ut
dipendughosh Apr 11, 2023
92d7e4b
Merge branch 'artifact-reorg' of https://github.com/open-traffic-gene…
Vibaswan Apr 11, 2023
222ea21
New GO UT to validate types
dipendughosh Apr 11, 2023
81f65df
Merge branch 'artifact-reorg' of https://github.com/open-traffic-gene…
Vibaswan Apr 11, 2023
9d44fae
adding unit test for x-status
Vibaswan Apr 11, 2023
f74280b
adding unit test for x-field-pattern
Vibaswan Apr 12, 2023
36e74d0
Added ITER UTs for py and go
dipendughosh Apr 12, 2023
0ba98a9
Adding miscellaneous tests
dipendughosh Apr 12, 2023
5822e6e
Merge branch 'main' into artifact-reorg
Vibaswan Jun 22, 2023
215abc1
removing python 2.7
Vibaswan Jun 22, 2023
c450728
initial commit
Vibaswan Aug 2, 2023
b71e766
adding support for yaml as input
Vibaswan Aug 3, 2023
22e0b73
support for yaml input
Vibaswan Aug 3, 2023
f1f861d
fix_ci
Vibaswan Aug 3, 2023
f09310f
support for openapaiart cli
Vibaswan Aug 3, 2023
e870dc2
missed space
Vibaswan Aug 3, 2023
2baffb0
Merge branch 'main' into openapiart_cli
Vibaswan Aug 10, 2023
7996689
added a way to commit SDKs into the repo
Vibaswan Sep 11, 2023
04537a4
Update auto generated python code
actions-user Sep 11, 2023
99ddc39
bug fix
Vibaswan Sep 11, 2023
2fd0360
bug fix
Vibaswan Sep 11, 2023
168bbd5
Update auto generated go code
actions-user Sep 11, 2023
bb09c7f
adding git ignore
Vibaswan Sep 11, 2023
b649a8e
Update auto generated go code
actions-user Sep 11, 2023
e83d86b
move gen go files
Vibaswan Sep 11, 2023
796bd51
Merge branch 'commit_sdk_to_repo' of https://github.com/open-traffic-…
Vibaswan Sep 11, 2023
eb9eee7
remove pyc files
Vibaswan Sep 11, 2023
062ed3a
Update auto generated go code
actions-user Sep 11, 2023
f55d4a8
Merge branch 'main' into commit_sdk_to_repo
Vibaswan Sep 14, 2023
4463298
Merge branch 'commit_sdk_to_repo' of https://github.com/open-traffic-…
Vibaswan Sep 14, 2023
aa85db5
Update auto generated go code
actions-user Sep 14, 2023
5a7f371
refactor test as well gen sdk names
Vibaswan Sep 15, 2023
9b88772
bug fix
Vibaswan Sep 15, 2023
cc2733c
making changes to ci jobs to look for new folder, sdk names
Vibaswan Sep 15, 2023
1d3227e
Update auto generated go code
actions-user Sep 15, 2023
31c4985
Merge branch 'main' into commit_sdk_to_repo
Vibaswan Sep 21, 2023
d011c0a
resolve merge conflict
Vibaswan Sep 21, 2023
218323b
Update auto generated go code
actions-user Sep 21, 2023
8d3f015
changing name to previous
Vibaswan Sep 21, 2023
87b9ff3
Merge branch 'commit_sdk_to_repo' of https://github.com/open-traffic-…
Vibaswan Sep 21, 2023
832c8ac
Update auto generated go code
actions-user Sep 21, 2023
abf2858
Merge branch 'main' into openapiart_cli
Vibaswan Oct 16, 2023
41e84ec
Merge branch 'main' into commit_sdk_to_repo
Vibaswan Oct 16, 2023
a99c2d3
Merge branch 'commit_sdk_to_repo' of https://github.com/open-traffic-…
Vibaswan Oct 16, 2023
8f009cb
resolve merge conflicts
Vibaswan Oct 16, 2023
355e633
Update auto generated go code
actions-user Oct 16, 2023
e5359c8
Merge branch 'main' into openapiart_cli
Vibaswan Jan 3, 2024
066ffdb
merge main
Vibaswan Jan 3, 2024
d32e5e2
Update auto generated go code
actions-user Jan 3, 2024
0d2323f
Merge branch 'main' into artifact-reorg
Vibaswan Jan 3, 2024
671f43b
merge main
Vibaswan Jan 3, 2024
aa84f6c
merge with main
Vibaswan Jan 3, 2024
3317997
Merge branch 'commit_sdk_to_repo' into refactor-openapiart
Vibaswan Jan 3, 2024
b592351
merge with commit_sdk
Vibaswan Jan 3, 2024
0d7a97e
bug fix
Vibaswan Jan 3, 2024
fcbb3d7
Update auto generated go code
actions-user Jan 3, 2024
09cd271
bug fix
Vibaswan Jan 4, 2024
32664f3
rectify typo
Vibaswan Jan 4, 2024
6636da3
Update auto generated go code
actions-user Jan 4, 2024
6fbaaab
Merge branch 'openapiart_cli' into refactor-openapiart
Vibaswan Jan 4, 2024
d6e30a0
merging openapiart cli branch
Vibaswan Jan 4, 2024
9ff2133
Update auto generated go code
actions-user Jan 4, 2024
06b7ad2
bug fix
Vibaswan Jan 4, 2024
0e034fd
Merge branch 'refactor-openapiart' of https://github.com/open-traffic…
Vibaswan Jan 4, 2024
9f1f23a
Update auto generated go code
actions-user Jan 4, 2024
dc35cdc
bug fix
Vibaswan Jan 4, 2024
250afc8
Merge branch 'refactor-openapiart' of https://github.com/open-traffic…
Vibaswan Jan 4, 2024
50e8417
Update auto generated go code
actions-user Jan 4, 2024
dbb216d
Merge branch 'main' into refactor-openapiart
Vibaswan Jan 29, 2024
0320e26
resolve merge conflicts
Vibaswan Jan 29, 2024
22fa2e3
fix bug due to merge
Vibaswan Jan 29, 2024
b1e4a9d
Update auto generated go code
actions-user Jan 29, 2024
68b9e58
Update auto generated go code
actions-user Feb 11, 2024
7c0d883
changes to split gosdk file into multiple sub-files
Vibaswan Feb 11, 2024
7a05bc3
Update auto generated go code
actions-user Feb 11, 2024
08fb256
correct file name creation
Vibaswan Feb 11, 2024
f89eaef
Update auto generated go code
actions-user Feb 11, 2024
92243b6
Merge branch 'main' into split-gosnappi
Vibaswan Mar 21, 2024
fba4a00
fix test
Vibaswan Mar 21, 2024
c5e8775
Update auto generated go code
actions-user Mar 21, 2024
c31abd3
Merge branch 'main' into split-gosnappi
Vibaswan May 7, 2024
7294f6f
Update auto generated go code
actions-user May 7, 2024
02e21b2
Merge branch 'main' into split-gosnappi
Vibaswan May 16, 2024
063ac13
fix tests
Vibaswan May 16, 2024
99d180e
Update auto generated go code
actions-user May 16, 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
115 changes: 68 additions & 47 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,52 @@ jobs:
dist
pkg

build_yaml:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: install python requirements
run: |
python do.py setup
python do.py init
- uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.3"
- name: Setup Go and protoc
run: |
python do.py setup_ext "1.20"
- uses: actions/download-artifact@v2
id: download
with:
name: python_package
- name: Install dependencies
run: |
python do.py install_package_only
- name: Generate Python SDK
run: |
python do.py generate_from_yaml python
- name: Test python SDK
run: |
python do.py testpy
- name: Generate Go SDK
run: |
python do.py generate_from_yaml go
- name: Test Go SDK
run: |
python do.py testgo

dev_workflow_ubuntu:
runs-on: ubuntu-latest
steps:
Expand All @@ -68,50 +114,25 @@ jobs:
- name: Trigger dev workflow
run: |
python do.py build

# dev_workflow_macos:
# runs-on: macos-latest
# steps:
# - name: Checkout source
# uses: actions/checkout@v2
# with:
# ref: ${{ github.head_ref }}
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - uses: actions/setup-go@v2
# with:
# go-version: "1.20"
# - name: Install Protoc
# uses: arduino/setup-protoc@v2
# with:
# version: "23.3"
# - name: Trigger dev workflow
# run: |
# python do.py build

# dev_workflow_windows:
# runs-on: windows-latest
# steps:
# - name: Checkout source
# uses: actions/checkout@v2
# with:
# ref: ${{ github.head_ref }}
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - uses: actions/setup-go@v2
# with:
# go-version: "1.20"
# - name: Install Protoc
# uses: arduino/setup-protoc@v2
# with:
# version: "23.3"
# - name: Trigger dev workflow
# run: |
# python do.py build
- name: show artifacts
run: |
ls artifacts
ls artifacts/pyapi
ls artifacts/goapi
- name: Commit packages
run: |
git config user.name "Github Actions Bot"
git config user.email "actions@github.com"
git pull
git add --force artifacts/\*
git rm -r --cached artifacts/pyapi/__pycache__
if git status --porcelain | grep .
then
git commit -m "Update auto generated go code"
git push
else
echo "No change in auto generated go code"
fi

dev_workflow_docker:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -166,7 +187,7 @@ jobs:
with:
name: generated_py_package
path: |
art
artifacts
- name: Display structure of downloaded files
run: ls -R
- name: Run python tests
Expand Down Expand Up @@ -214,7 +235,7 @@ jobs:
name: generated_go_package
path: |
pkg
art
artifacts
- uses: actions/download-artifact@v2
with:
name: python_package
Expand Down Expand Up @@ -255,7 +276,7 @@ jobs:
- name: Check Genrated files
uses: andstor/file-existence-action@v2
with:
files: "art/openapi.json, art/openapi.yaml, art/sanity.proto"
files: "artifacts/openapi.json, artifacts/openapi.yaml, artifacts/openapi.proto"
fail: true

publish_python_package:
Expand Down
14 changes: 6 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ __pycache__
/cov_report
/**/art
/**/art_go
/artifacts/pyapi/__pycache__
.local
/pkg/coverage.txt
/pkg/coverage.out
/pkg/sanity
/pkg/go.mod
/pkg/go.sum
/pkg/openapiart.go
/pkg/httpapi
/pkg/log.txt
/pkg
!/pkg/.*_test.go
!/pkg/common.go
!/pkg/severtests
!/pkg/new_tests
_debug_bin
.env*
Loading