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

Release 2.3.0 #946

Merged
merged 41 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
129fb21
Feautre/1323 reorganize branches plat2 (#849)
sambles Jul 18, 2023
ec54621
Fix/migrations plat1 to plat2 (#862)
sambles Jul 28, 2023
4a301ec
Fix to tag piwind repo on publish (#865)
sambles Aug 3, 2023
4db85fe
Fix cryptography CVE-2023-38325 - platform 2 (#873)
sambles Aug 25, 2023
61f480a
Revert "update keycloak" (#877)
sambles Aug 31, 2023
8eefdba
Merge branch 'stable/2.2.x'
sambles Aug 31, 2023
f15e35b
Fix/flower keycloak (#882)
sambles Sep 7, 2023
f6f938b
Catch and report all execptions from ods-tools val (#883)
sambles Sep 7, 2023
7508c58
Fix/702 worker controller stuck pending (#886)
sambles Sep 7, 2023
e53d345
Update/remote trig python tests (#818)
sambles May 16, 2023
a9ca30e
Fix ods-tools changelog call (#898)
sambles Sep 18, 2023
f694d8e
Fix/869 worker controller fixes and enhancements (main) (#899)
sambles Sep 26, 2023
7c7aee6
Collected Websocket fixes (#906)
sambles Oct 3, 2023
ad64469
Fix syntax in flower chart template (#912)
sambles Oct 11, 2023
c093937
Fix/websock schmea (#914)
sambles Oct 12, 2023
b29f2e0
Fix/websock schmea (#914)
sambles Oct 12, 2023
890cd0e
Fix worker_count_max assigment (#918)
sambles Nov 2, 2023
53e7682
Updating link for ODS Tools in changelog/release notes (#921)
fl-ndaq Nov 6, 2023
14d49e8
Fix Keycloak DB connection (#930)
sambles Nov 22, 2023
40c12c1
Merge pull request #931 from OasisLMF/feature/893-plat1-Support-versi…
sambles Nov 23, 2023
1aed1a6
Updated Package Requirements: oasislmf==1.28.5 ods-tools==3.1.4 (#942)
sambles Jan 11, 2024
e0f832c
Added chunking options to analysis level (#944)
sambles Jan 15, 2024
c3299ac
Fixed generate and run endpoint (#945)
sambles Jan 17, 2024
2c5ce3b
Added post analysis hook call before returning outputs (#947)
sambles Jan 17, 2024
6db360b
Always post model version info on worker startup (platform 2) (#948)
sambles Jan 18, 2024
1b8a36e
Fix/903 portfolio linking sub directories (#950)
sambles Jan 19, 2024
711e4a5
Call channel close before returning queue query (#954)
sambles Jan 19, 2024
43e2c52
Revert "Always post model version info on worker startup (platform 2)…
sambles Jan 22, 2024
645b2e4
Submit Celery runs based on run_mode instead of API version (#956)
sambles Jan 30, 2024
2ee7896
Split OpenAPI schemas between v1 and v2 versions of the API (#957)
sambles Jan 30, 2024
9193b3e
Fix compose example
sambles Jan 31, 2024
4c53c00
Remove pip from 2nd stage server build (#963)
sambles Feb 6, 2024
5180c51
Update external images & python packages (2.3.0 release) (#960)
sambles Feb 6, 2024
7a3a746
Merge branch 'stable/2.3.x' into release/2.3.0
sambles Feb 6, 2024
fcc3d97
Fix broken swagger calls when SUB_PATH_URL=True (#966)
sambles Feb 6, 2024
116e5fb
Merge branch 'main' into release/2.3.0
sambles Feb 6, 2024
9d5a0cf
Fix model reg script -- use v2 api now that it supports both model ru…
sambles Feb 6, 2024
420a3f1
Merge branch 'main' into release/2.3.0
sambles Feb 6, 2024
2bd0863
Fix missing CI triggers
sambles Feb 6, 2024
77aaf75
Fix-release-ci-script
sambles Feb 6, 2024
26d2e0e
Update changelog
awsbuild Feb 6, 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
43 changes: 38 additions & 5 deletions .github/workflows/build-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
- stable**
workflow_dispatch:
inputs:
ods_branch:
Expand All @@ -21,7 +22,7 @@ on:

jobs:
ods_tools:
if: inputs.ods_branch != ''
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: OasisLMF/ODS_Tools/.github/workflows/build.yml@main
secrets: inherit
with:
Expand All @@ -31,7 +32,9 @@ jobs:
if: ${{ ! failure() || ! cancelled() }}
needs: ods_tools
env:
SCHEMA: 'reports/openapi-schema.json'
SCHEMA_ALL: 'reports/openapi-schema.json'
SCHEMA_V1: 'reports/v1-openapi-schema.json'
SCHEMA_V2: 'reports/v2-openapi-schema.json'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -59,15 +62,45 @@ jobs:

- name: Generate OpenAPI
run: |
test -d $(dirname ${{ env.SCHEMA }}) || mkdir -p $(dirname ${{ env.SCHEMA }})
test -d $(dirname ${{ env.SCHEMA_ALL }}) || mkdir -p $(dirname ${{ env.SCHEMA_ALL }})
python ./manage.py migrate
python ./manage.py generate_swagger ${{ env.SCHEMA }}
python ./manage.py generate_swagger ${{ env.SCHEMA_ALL }}

- name: Generate OpenAPI (only v1)
run: |
test -d $(dirname ${{ env.SCHEMA_V1 }}) || mkdir -p $(dirname ${{ env.SCHEMA_V1 }})
python ./manage.py migrate
python ./manage.py generate_swagger ${{ env.SCHEMA_V1 }}
env:
OASIS_GEN_SWAGGER_V1: 1

- name: Generate OpenAPI (only v2)
run: |
test -d $(dirname ${{ env.SCHEMA_V2 }}) || mkdir -p $(dirname ${{ env.SCHEMA_V2 }})
python ./manage.py migrate
python ./manage.py generate_swagger ${{ env.SCHEMA_V2 }}
env:
OASIS_GEN_SWAGGER_V2: 1

- name: Store OpenAPI schema
uses: actions/upload-artifact@v3
with:
name: openapi-schema
path: ${{ env.SCHEMA }}
path: ${{ env.SCHEMA_ALL }}
retention-days: 3

- name: Store OpenAPI schema (only v1)
uses: actions/upload-artifact@v3
with:
name: v1-openapi-schema
path: ${{ env.SCHEMA_V1 }}
retention-days: 3

- name: Store OpenAPI schema (only v2)
uses: actions/upload-artifact@v3
with:
name: v2-openapi-schema
path: ${{ env.SCHEMA_V2 }}
retention-days: 3

- name: Test Schema
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Run (partial) flake8
if: ${{ ! cancelled() }}
run: flake8 --select F401,F522,F524,F541 --show-source src/
run: flake8 --select F401,F522,F524,F541 --show-source src/ --config tox.ini

- name: check PEP8 compliance
if: ${{ ! cancelled() }}
Expand Down
50 changes: 45 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
env:
pre_release: ${{ inputs.pre_release == '' && 'false' || inputs.pre_release }}
push_latest: ${{ inputs.push_latest == '' && 'false' || inputs.push_latest }}
latest_tag: '2-latest'
latest_tag: 'latest'

release_tag: ${{ inputs.release_tag }}
prev_release_tag: ${{ inputs.prev_release_tag }}
Expand Down Expand Up @@ -367,12 +367,31 @@ jobs:
name: openapi-schema
path: ${{ github.workspace }}/

- name: Download API schema (v1)
uses: actions/download-artifact@v3
with:
name: v1-openapi-schema
path: ${{ github.workspace }}/

- name: Download API schema (v2)
uses: actions/download-artifact@v3
with:
name: v2-openapi-schema
path: ${{ github.workspace }}/

- name: Name API schema
id: api_schema
run: |
schema_filename="openapi-schema-${{ env.release_tag }}.json"
v1_schema_filename="v1-openapi-schema-${{ env.release_tag }}.json"
v2_schema_filename="v2-openapi-schema-${{ env.release_tag }}.json"

mv openapi-schema.json $schema_filename
echo "filename=$schema_filename" >> $GITHUB_OUTPUT
mv v1-openapi-schema.json $v1_schema_filename
mv v2-openapi-schema.json $v2_schema_filename
echo "filename_all=$schema_filename" >> $GITHUB_OUTPUT
echo "filename_v1=$v1_schema_filename" >> $GITHUB_OUTPUT
echo "filename_v2=$v2_schema_filename" >> $GITHUB_OUTPUT

# --- Create Changelog --- #
- name: Tag Release
Expand Down Expand Up @@ -464,17 +483,38 @@ jobs:
prerelease: ${{ env.pre_release }}

# --- Attach build assest --- #
- name: Upload Schema
- name: Upload Schema (base)
id: upload-source-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.BUILD_GIT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ steps.api_schema.outputs.filename }}
asset_name: ${{ steps.api_schema.outputs.filename }}
asset_path: ${{ github.workspace }}/${{ steps.api_schema.outputs.filename_all }}
asset_name: ${{ steps.api_schema.outputs.filename_all }}
asset_content_type: application/json

- name: Upload Schema (v1)
id: upload-source-release-asset-v1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.BUILD_GIT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ steps.api_schema.outputs.filename_v1 }}
asset_name: ${{ steps.api_schema.outputs.filename_v1 }}
asset_content_type: application/json

- name: Upload Schema (v2)
id: upload-source-release-asset-v2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.BUILD_GIT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ steps.api_schema.outputs.filename_v2 }}
asset_name: ${{ steps.api_schema.outputs.filename_v2 }}
asset_content_type: application/json
# --- Slack notify --- #
- name: slack message vars
id: slack_vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
branches:
- main
- stable**

workflow_dispatch:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
- stable**
schedule:
- cron: '0 */6 * * *' # Run scan every 6 hours

Expand Down
Loading