From e5dd889b954150f01bc42faa65aff9174c81cde4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:17:22 +0000 Subject: [PATCH] Prepare release for v0.9.2 --- HISTORY.md | 15 ++++++++ static_code_analysis.txt | 74 ++++++++++++++++++++-------------------- 2 files changed, 52 insertions(+), 37 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index aa094444..79ddf037 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,20 @@ # History +## v0.9.2 - 2025-01-09 + +### Maintenance + +* Create Prepare Release workflow - Issue [#364](https://github.com/sdv-dev/SDGym/issues/364) by @R-Palazzo + +### Bugs Fixed + +* Minimum tests failing because of broken action - Issue [#351](https://github.com/sdv-dev/SDGym/issues/351) by @amontanez24 + +### New Features + +* Add integration with 3rd party synthesizer (REalTabFormer) - Issue [#347](https://github.com/sdv-dev/SDGym/issues/347) by @cristid9 +* Add support for numpy 2.0.0 - Issue [#315](https://github.com/sdv-dev/SDGym/issues/315) by @R-Palazzo + ## v0.9.1 - 2024-08-29 ### Bugs Fixed diff --git a/static_code_analysis.txt b/static_code_analysis.txt index a76679c9..c441db63 100644 --- a/static_code_analysis.txt +++ b/static_code_analysis.txt @@ -1,4 +1,4 @@ -Run started:2024-08-29 15:51:04.711485 +Run started:2025-01-09 15:17:21.988086 Test results: >> Issue: [B403:blacklist] Consider possible security implications associated with pickle module. @@ -15,53 +15,53 @@ Test results: Severity: Low Confidence: High CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html - Location: ./sdgym/benchmark.py:152:8 -151 if isinstance(synthesizer, type): -152 assert issubclass( -153 synthesizer, BaselineSynthesizer -154 ), '`synthesizer` must be a synthesizer class' -155 synthesizer = synthesizer() + Location: ./sdgym/benchmark.py:151:8 +150 if isinstance(synthesizer, type): +151 assert issubclass(synthesizer, BaselineSynthesizer), ( +152 '`synthesizer` must be a synthesizer class' +153 ) +154 synthesizer = synthesizer() -------------------------------------------------- >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Severity: Low Confidence: High CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html - Location: ./sdgym/benchmark.py:157:8 -156 else: -157 assert issubclass( -158 type(synthesizer), BaselineSynthesizer -159 ), '`synthesizer` must be an instance of a synthesizer class.' -160 + Location: ./sdgym/benchmark.py:156:8 +155 else: +156 assert issubclass(type(synthesizer), BaselineSynthesizer), ( +157 '`synthesizer` must be an instance of a synthesizer class.' +158 ) +159 -------------------------------------------------- >> Issue: [B608:hardcoded_sql_expressions] Possible SQL injection vector through string-based query construction. Severity: Medium Confidence: Low CWE: CWE-89 (https://cwe.mitre.org/data/definitions/89.html) More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b608_hardcoded_sql_expressions.html - Location: ./sdgym/benchmark.py:675:23 -674 # User data script to install the library -675 user_data_script = f"""#!/bin/bash -676 sudo apt update -y -677 sudo apt install python3-pip -y -678 echo "======== Install Dependencies ============" -679 sudo pip3 install sdgym -680 sudo pip3 install anyio -681 pip3 list -682 sudo apt install awscli -y -683 aws configure set aws_access_key_id {credentials.access_key} -684 aws configure set aws_secret_access_key {credentials.secret_key} -685 aws configure set region {session.region_name} -686 echo "======== Write Script ===========" -687 sudo touch ~/sdgym_script.py -688 echo "{script_content}" > ~/sdgym_script.py -689 echo "======== Run Script ===========" -690 sudo python3 ~/sdgym_script.py -691 echo "======== Complete ===========" -692 INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) -693 aws ec2 terminate-instances --instance-ids $INSTANCE_ID -694 """ -695 + Location: ./sdgym/benchmark.py:674:23 +673 # User data script to install the library +674 user_data_script = f"""#!/bin/bash +675 sudo apt update -y +676 sudo apt install python3-pip -y +677 echo "======== Install Dependencies ============" +678 sudo pip3 install sdgym +679 sudo pip3 install anyio +680 pip3 list +681 sudo apt install awscli -y +682 aws configure set aws_access_key_id {credentials.access_key} +683 aws configure set aws_secret_access_key {credentials.secret_key} +684 aws configure set region {session.region_name} +685 echo "======== Write Script ===========" +686 sudo touch ~/sdgym_script.py +687 echo "{script_content}" > ~/sdgym_script.py +688 echo "======== Run Script ===========" +689 sudo python3 ~/sdgym_script.py +690 echo "======== Complete ===========" +691 INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) +692 aws ec2 terminate-instances --instance-ids $INSTANCE_ID +693 """ +694 -------------------------------------------------- >> Issue: [B404:blacklist] Consider possible security implications associated with the subprocess module. @@ -96,7 +96,7 @@ Test results: -------------------------------------------------- Code scanned: - Total lines of code: 2735 + Total lines of code: 2769 Total lines skipped (#nosec): 0 Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0