Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 483f42c

Browse files
authored
Syncs main and develop
Syncs main and develop
2 parents 1c17313 + fb7fc9f commit 483f42c

File tree

65 files changed

+464
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+464
-123
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ source/cdk_solution_helper_py/helpers_cdk/build/*
6565
source/cdk_solution_helper_py/helpers_common/build/*
6666
source/scheduler/common/build/*
6767
source/scheduler/cdk/build/*
68+
69+
# nightswatch test results
70+
.nightswatch/functional/test-results.xml

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.6] - 2025-06-26
9+
10+
### Fixed
11+
12+
- Tests failure due to relative import issues
13+
14+
### Changed
15+
16+
- Upgraded requests to 2.32.4
17+
- Upgraded urllib3 to 2.5.0
18+
19+
## [1.4.5] - 2024-10-21
20+
21+
### Changed
22+
23+
- Upgraded requests to 2.32.0
24+
- Upgraded urllib3 to 1.26.19
25+
- Upgraded black to 24.3.0
26+
- Onboarded anonymized operational metrics.
27+
828
## [1.4.4] - 2023-10-13
929

1030
### Changed

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## Code of Conduct
2-
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3-
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4-
[email protected] with any additional questions or comments.
2+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4+
[email protected] with any additional questions or comments.

CONTRIBUTING.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,57 +6,54 @@ documentation, we greatly value feedback and contributions from our community.
66
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
77
information to effectively respond to your bug report or contribution.
88

9-
109
## Reporting Bugs/Feature Requests
1110

1211
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1312

1413
When filing an issue, please check [existing open](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/issues), or [recently closed](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
1514
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1615

17-
* A reproducible test case or series of steps
18-
* The version of our code being used
19-
* Any modifications you've made relevant to the bug
20-
* Anything unusual about your environment or deployment
21-
16+
- A reproducible test case or series of steps
17+
- The version of our code being used
18+
- Any modifications you've made relevant to the bug
19+
- Anything unusual about your environment or deployment
2220

2321
## Contributing via Pull Requests
22+
2423
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2524

26-
1. You are working against the latest source on the *master* branch.
25+
1. You are working against the latest source on the _master_ branch.
2726
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
2827
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
2928

3029
To send us a pull request, please:
3130

3231
1. Fork the repository.
3332
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34-
3. Ensure all build processes execute successfully (see README.md for additional guidance).
35-
4. Ensure all unit, integration, and/or snapshot tests pass, as applicable.
36-
5. Commit to your fork using clear commit messages.
37-
6. Send us a pull request, answering any default questions in the pull request interface.
38-
7. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
33+
3. Ensure local tests pass.
34+
4. Commit to your fork using clear commit messages.
35+
5. Send us a pull request, answering any default questions in the pull request interface.
36+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
3937

4038
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
4139
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4240

43-
4441
## Finding contributions to work on
45-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/labels/help%20wanted) issues is a great place to start.
4642

43+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/labels/help%20wanted) issues is a great place to start.
4744

4845
## Code of Conduct
46+
4947
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
5048
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
5149
[email protected] with any additional questions or comments.
5250

53-
5451
## Security issue notifications
55-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
5652

53+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
5754

5855
## Licensing
5956

6057
See the [LICENSE](https://github.com/aws-solutions/maintaining-personalized-experiences-with-machine-learning/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
6158

62-
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
59+
We may ask you to sign a [Contributor License Agreement (CLA)](https://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

NOTICE.txt

Lines changed: 53 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Maintaining Personalized Experiences with Machine Learning
22

33
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4-
Licensed under the Apache License Version 2.0 (the "License"). You may not use this file except
4+
Licensed under the Apache-2.0 license (the "License"). You may not use this file except
55
in compliance with the License. A copy of the License is located at http://www.apache.org/licenses/
66
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
77
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the
@@ -12,38 +12,57 @@ THIRD PARTY COMPONENTS
1212
**********************
1313
This software includes third party software subject to the following copyrights:
1414

15-
Apache Avro under the Apache License 2.0
16-
AWS Lambda Java Support Libraries under the Apache License Version 2.0
17-
AWS Lambda Powertools for Python under the MIT No Attribution license
18-
AWS SDK under the Apache License Version 2.0
19-
boto3 under the Apache License Version 2.0
20-
black under the Massachusetts Institute of Technology (MIT) license
21-
click under the BSD 3-Clause license
22-
coverage under the Apache License Version 2.0
23-
crhelper under the Apache License Version 2.0
24-
cronex under the Massachusetts Institute of Technology (MIT) license
25-
docker-py under the Apache License Version 2.0
26-
Gradle under the Apache License Version 2.0
27-
jmespath under the Apache License Version 2.0
15+
avro under the Apache-2.0 license
16+
AWS Lambda Java Support Libraries under the Apache-2.0 license
17+
aws-lambda-powertools under the MIT No Attribution license
18+
aws_cdk_lib under the Apache-2.0 license under the Apache-2.0 license
19+
aws_solutions_constructs.aws_lambda_sns under the Apache-2.0 license
20+
aws-cdk.aws-servicecatalogappregistry-alpha under the Apache-2.0 license
21+
cdk-nag under the Apache-2.0 license
22+
AWS SDK under the Apache-2.0 license
23+
boto3 under the Apache-2.0 license
24+
black under the MIT license
25+
Click under the BSD 3-Clause license
26+
coverage under the Apache-2.0 license
27+
crhelper under the Apache-2.0 license
28+
cronex under the MIT license
29+
docker-py under the Apache-2.0 license
30+
docker under the Apache-2.0 license
31+
responses under the Apache-2.0 license
32+
Gradle under the Apache-2.0 license
33+
jmespath under the Apache-2.0 license
2834
junit under the Eclipse Public License Version 2.0
29-
moto under the Apache License Version 2.0
30-
pytest under the Massachusetts Institute of Technology (MIT) license
31-
pytest-cov under the Massachusetts Institute of Technology (MIT) license
32-
pytest-mock under the Massachusetts Institute of Technology (MIT) license
33-
pytest-env under the Massachusetts Institute of Technology (MIT) license
34-
PyYAML under the Massachusetts Institute of Technology (MIT) license
35-
requests under the Apache License Version 2.0
36-
requests-mock under the Apache License Version 2.0
37-
rich under the Massachusetts Institute of Technology (MIT) license
38-
tenacity under the Apache License Version 2.0
39-
quartz-scheduler under the Apache License Version 2.0
40-
parsedatetime under the Apache License Version 2.0
41-
urllib3 under the Massachusetts Institute of Technology (MIT) license
42-
setuptools under the Massachusetts Institute of Technology (MIT) license
43-
pipenv under the Massachusetts Institute of Technology (MIT) license
44-
virtualenv under the Massachusetts Institute of Technology (MIT) license
45-
tox under the Massachusetts Institute of Technology (MIT) license
46-
tox-pyenv under the Apache License Version 2.0
47-
poetry under the Massachusetts Institute of Technology (MIT) license
35+
org.jacoco/org.jacoco.core under the Eclipse Public License 2.0 license(s)
36+
./package under the 0BSD license
37+
moto under the Apache-2.0 license
38+
pytest under the MIT license
39+
pytest-cov under the MIT license
40+
pytest-mock under the MIT license
41+
pytest-env under the MIT license
42+
pyyaml under the MIT license
43+
requests under the Apache-2.0 license
44+
requests-mock under the Apache-2.0 license
45+
rich under the MIT license
46+
tenacity under the Apache-2.0 license
47+
quartz-scheduler under the Apache-2.0 license
48+
parsedatetime under the Apache-2.0 license
49+
urllib3 under the MIT license
50+
setuptools under the MIT license
51+
pipenv under the MIT license
52+
virtualenv under the MIT license
53+
tox under the MIT license
54+
tox-pyenv under the Apache-2.0 license
55+
poetry under the MIT license
56+
aws-xray-sdk under the Apache-2.0 license
4857

49-
The Apache License Version Version 2.0 is included in LICENSE.txt.
58+
59+
The Apache License Version Version 2.0 is included in LICENSE.txt.
60+
61+
********************
62+
OPEN SOURCE LICENSES
63+
********************
64+
65+
0BSD - https://opensource.org/licenses/0BSD
66+
Apache-2.0 - https://opensource.org/licenses/Apache-2.0
67+
MIT - https://opensource.org/licenses/MIT
68+
MIT-0 - https://opensource.org/licenses/MIT-0

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ To customize the solution, follow the steps below:
609609
The following procedures assumes that all the OS-level configuration has been completed. They are:
610610

611611
- [AWS Command Line Interface](https://aws.amazon.com/cli/)
612-
- [Python](https://www.python.org/) 3.9 or newer
612+
- [Python](https://www.python.org/) 3.11 or newer
613613
- [Node.js](https://nodejs.org/en/) 16.x or newer
614614
- [AWS CDK](https://aws.amazon.com/cdk/) 2.88.0 or newer
615615
- [Amazon Corretto OpenJDK](https://docs.aws.amazon.com/corretto/) 17.0.4.1
@@ -708,8 +708,7 @@ After running the command, you can deploy the template:
708708
709709
## Collection of operational metrics
710710

711-
This solution collects anonymous operational metrics to help AWS improve the quality of features of the solution.
712-
For more information, including how to disable this capability, please see the [implementation guide](https://docs.aws.amazon.com/solutions/latest/maintaining-personalized-experiences-with-ml/reference.html).
711+
This solution collects anonymized operational metrics to help AWS improve the quality and features of the solution. For more information, including how to disable this capability, please see the [implementation guide](https://docs.aws.amazon.com/solutions/latest/maintaining-personalized-experiences-with-ml/reference.html).
713712

714713
---
715714

SECURITY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Reporting Security Issues
2+
3+
We take all security reports seriously. When we receive such reports,
4+
we will investigate and subsequently address any potential vulnerabilities as
5+
quickly as possible. If you discover a potential security issue in this project,
6+
please notify AWS/Amazon Security via our [vulnerability reporting page]
7+
(http://aws.amazon.com/security/vulnerability-reporting/) or directly via email
8+
to [AWS Security](mailto:[email protected]).
9+
Please do *not* create a public GitHub issue in this project.

deployment/run-unit-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ echo "--------------------------------------------------------------------------
4141
echo "[Env] Create virtual environment and install dependencies"
4242
echo "------------------------------------------------------------------------------"
4343

44-
virtualenv .venv
44+
#Set the python version to 3.11
45+
pip install virtualenv
46+
python3.11 -m virtualenv .venv
4547
source .venv/bin/activate
4648

4749
cd $source_dir

source/cdk_solution_helper_py/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This README summarizes using the tool.
1111

1212
Install this package. It requires at least
1313

14-
- Python 3.9
14+
- Python 3.11
1515
- AWS CDK version 2.75.0 or higher
1616

1717
To install the packages:

source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_hash/hash.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from aws_solutions.cdk.aws_lambda.python.function import SolutionsPythonFunction
2222
from aws_solutions.cdk.cfn_nag import add_cfn_nag_suppressions, CfnNagSuppression
23+
from aws_solutions.cdk.cfn_guard import add_cfn_guard_suppressions
2324

2425
from cdk_nag import NagSuppressions
2526
from cdk_nag import NagPackSuppression
@@ -58,6 +59,10 @@ def __init__(
5859
),
5960
],
6061
)
62+
add_cfn_guard_suppressions(
63+
self._resource_name_function.role.node.try_find_child("Resource"),
64+
["IAM_NO_INLINE_POLICY_CHECK"]
65+
)
6166

6267
NagSuppressions.add_resource_suppressions(self._resource_name_function.role, [
6368
NagPackSuppression(

0 commit comments

Comments
 (0)