Skip to content

Commit

Permalink
Merge branch 'main' into fix-iotevents-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 16, 2025
2 parents d41df42 + 35275c3 commit 1838e61
Show file tree
Hide file tree
Showing 90 changed files with 30,296 additions and 22,158 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.v2.alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.176.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.175.1-alpha.0...v2.176.0-alpha.0) (2025-01-15)


### Features

* **scheduler-targets:** add support for universal target ([#32341](https://github.com/aws/aws-cdk/issues/32341)) ([021e6d6](https://github.com/aws/aws-cdk/commit/021e6d6ca6c01ecece485f7a51620fd42e632f0b)), closes [#32328](https://github.com/aws/aws-cdk/issues/32328)


### Bug Fixes

* **msk:** clusterName validation in Cluster class is incorrect ([#32792](https://github.com/aws/aws-cdk/issues/32792)) ([41ddd46](https://github.com/aws/aws-cdk/commit/41ddd46dc17e0afd551cce2737ecc11ed343de04)), closes [/github.com/aws/aws-cdk/pull/32505#discussion_r1891027876](https://github.com/aws//github.com/aws/aws-cdk/pull/32505/issues/discussion_r1891027876)

## [2.175.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.175.0-alpha.0...v2.175.1-alpha.0) (2025-01-10)

## [2.175.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.174.1-alpha.0...v2.175.0-alpha.0) (2025-01-09)
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.176.0](https://github.com/aws/aws-cdk/compare/v2.175.1...v2.176.0) (2025-01-15)


### Features

* **apigatewayv2-integrations:** `WebSocketMockIntegration` props ([#30622](https://github.com/aws/aws-cdk/issues/30622)) ([a5a0168](https://github.com/aws/aws-cdk/commit/a5a0168cdf0f6a3429d67cb8d300d3a3f987d0fe)), closes [#29661](https://github.com/aws/aws-cdk/issues/29661)
* **codebuild:** add new BuildImages ([#32525](https://github.com/aws/aws-cdk/issues/32525)) ([a734841](https://github.com/aws/aws-cdk/commit/a73484142ce78dbf0a63ef5bfdb9603062916399))
* **ecs:** enable Enhanced Observability for Container Insights ([#32622](https://github.com/aws/aws-cdk/issues/32622)) ([79ab137](https://github.com/aws/aws-cdk/commit/79ab137aa07337972d1da459db9b1a698a2d4513)), closes [#32618](https://github.com/aws/aws-cdk/issues/32618)
* update L1 CloudFormation resource definitions ([#32847](https://github.com/aws/aws-cdk/issues/32847)) ([9317203](https://github.com/aws/aws-cdk/commit/93172033e4a8346a86ee00017acba57b57f22aab))
* **appconfig:** environment deletion protection ([#32737](https://github.com/aws/aws-cdk/issues/32737)) ([393e5c0](https://github.com/aws/aws-cdk/commit/393e5c0058560ff10acdc2892cc40ad542dc1629))


### Bug Fixes

* **cli:** "no stack found in the main cloud assembly" ([#32839](https://github.com/aws/aws-cdk/issues/32839)) ([3c0acce](https://github.com/aws/aws-cdk/commit/3c0acce39c6179ed18cc14d33622c69a4978ec97)), closes [aws/aws-cdk#32636](https://github.com/aws/aws-cdk/issues/32636) [#32836](https://github.com/aws/aws-cdk/issues/32836) [#32836](https://github.com/aws/aws-cdk/issues/32836)
* **core:** use correct formatting for aggregate errors in `aws-cdk` ([#32817](https://github.com/aws/aws-cdk/issues/32817)) ([97af31b](https://github.com/aws/aws-cdk/commit/97af31b4562506570632c79bde79c0aaee31826a)), closes [#32237](https://github.com/aws/aws-cdk/issues/32237)
* **elasticloadbalancingv2:** open, dual-stack-without-public-ipv4 ALB does not allow IPv6 inbound traffic (under feature flag) ([#32765](https://github.com/aws/aws-cdk/issues/32765)) ([aff160b](https://github.com/aws/aws-cdk/commit/aff160b62a067bcd89feb97e020287e614e39111)), closes [#32197](https://github.com/aws/aws-cdk/issues/32197)
* **rds:** clusterScailabilityType is spelled wrong and should be clusterScalabilityType ([#32825](https://github.com/aws/aws-cdk/issues/32825)) ([d39e835](https://github.com/aws/aws-cdk/commit/d39e8356643ab89fec791df725af4ad8f0bbaecd)), closes [#32415](https://github.com/aws/aws-cdk/issues/32415) [#32415](https://github.com/aws/aws-cdk/issues/32415)
* **rds:** incorrect version definition of MySQL 8.4.3 ([#32934](https://github.com/aws/aws-cdk/issues/32934)) ([3fbc785](https://github.com/aws/aws-cdk/commit/3fbc785522e25deb1a1167f2f655235ae3f2e762)), closes [#32933](https://github.com/aws/aws-cdk/issues/32933)


### Reverts

* **prlint:** fail prlinter on codecov failures, with exemption label ([#32867](https://github.com/aws/aws-cdk/issues/32867)) ([928d3bb](https://github.com/aws/aws-cdk/commit/928d3bb05da1be25159c58cb4f8b13c44a258ba1)), closes [aws/aws-cdk#32674](https://github.com/aws/aws-cdk/issues/32674)

## [2.175.1](https://github.com/aws/aws-cdk/compare/v2.175.0...v2.175.1) (2025-01-10)

### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { URL } from 'url';
import { synthetics } from '@amzn/synthetics-playwright';

const loadBlueprints = async function () {
const urls = [process.env.URL];

const browser = await synthetics.launch();
const browserContext = await browser.newContext();
let page = await synthetics.newPage(browserContext);

for (const url of urls) {
await loadUrl(page, url);
}

// Ensure browser is closed
await synthetics.close();
};

// Reset the page in-between
const resetPage = async function(page) {
try {
// Set page.goto timeout to 30 seconds, adjust as needed
// See https://playwright.dev/docs/api/class-page for page.goto options
await page.goto('about:blank', { waitUntil: 'load', timeout: 30000 });
} catch (e) {
console.error('Unable to open a blank page. ', e);
}
};

const loadUrl = async function (page, url) {
let stepName = null;
let domcontentloaded = false;

try {
stepName = new URL(url).hostname;
} catch (e) {
const errorString = `Error parsing url: ${url}. ${e}`;
log.error(errorString);
/* If we fail to parse the URL, don't emit a metric with a stepName based on it.
It may not be a legal CloudWatch metric dimension name and we may not have an alarms
setup on the malformed URL stepName. Instead, fail this step which will
show up in the logs and will fail the overall canary and alarm on the overall canary
success rate.
*/
throw e;
};

await synthetics.executeStep(stepName, async function () {
try {
/* You can customize the wait condition here.
'domcontentloaded' - consider operation to be finished when the DOMContentLoaded event is fired.
'load' - consider operation to be finished when the load event is fired.
'networkidle' - DISCOURAGED consider operation to be finished when there are no network connections for at least 500 ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
'commit' - consider operation to be finished when network response is received and the document started loading.
Set page.goto timeout to 30 seconds, adjust as needed
See https://playwright.dev/docs/api/class-page for page.goto options
*/
const response = await page.goto(url, { waitUntil: 'load', timeout: 30000 });
if (response) {
domcontentloaded = true;
const status = response.status();
console.log(`Response status: ${status}`);

// If the response status code is not a 2xx success code
if (status < 200 || status > 299) {
console.error(`Failed to load url: ${url}, status code: ${status}`);
throw new Error('Failed');
}
} else {
console.error(`No response returned for url: ${url}`);
throw new Error(logNoResponseString);
}
} catch (e) {
const errorString = `Error navigating to url: ${url}. ${e}`;
console.error(errorString);
throw e;
}
});

// Reset page
await resetPage(page);
};

export const handler = async (event, context) => {
return await loadBlueprints();
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { URL } from 'url';
import { synthetics } from '@amzn/synthetics-playwright';

const loadBlueprints = async function () {
const urls = [process.env.URL];

const browser = await synthetics.launch();
const browserContext = await browser.newContext();
let page = await synthetics.newPage(browserContext);

for (const url of urls) {
await loadUrl(page, url);
}

// Ensure browser is closed
await synthetics.close();
};

// Reset the page in-between
const resetPage = async function(page) {
try {
// Set page.goto timeout to 30 seconds, adjust as needed
// See https://playwright.dev/docs/api/class-page for page.goto options
await page.goto('about:blank', { waitUntil: 'load', timeout: 30000 });
} catch (e) {
console.error('Unable to open a blank page. ', e);
}
};

const loadUrl = async function (page, url) {
let stepName = null;
let domcontentloaded = false;

try {
stepName = new URL(url).hostname;
} catch (e) {
const errorString = `Error parsing url: ${url}. ${e}`;
log.error(errorString);
/* If we fail to parse the URL, don't emit a metric with a stepName based on it.
It may not be a legal CloudWatch metric dimension name and we may not have an alarms
setup on the malformed URL stepName. Instead, fail this step which will
show up in the logs and will fail the overall canary and alarm on the overall canary
success rate.
*/
throw e;
};

await synthetics.executeStep(stepName, async function () {
try {
/* You can customize the wait condition here.
'domcontentloaded' - consider operation to be finished when the DOMContentLoaded event is fired.
'load' - consider operation to be finished when the load event is fired.
'networkidle' - DISCOURAGED consider operation to be finished when there are no network connections for at least 500 ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
'commit' - consider operation to be finished when network response is received and the document started loading.
Set page.goto timeout to 30 seconds, adjust as needed
See https://playwright.dev/docs/api/class-page for page.goto options
*/
const response = await page.goto(url, { waitUntil: 'load', timeout: 30000 });
if (response) {
domcontentloaded = true;
const status = response.status();
console.log(`Response status: ${status}`);

// If the response status code is not a 2xx success code
if (status < 200 || status > 299) {
console.error(`Failed to load url: ${url}, status code: ${status}`);
throw new Error('Failed');
}
} else {
console.error(`No response returned for url: ${url}`);
throw new Error(logNoResponseString);
}
} catch (e) {
const errorString = `Error navigating to url: ${url}. ${e}`;
console.error(errorString);
throw e;
}
});

// Reset page
await resetPage(page);
};

export const handler = async (event, context) => {
return await loadBlueprints();
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1838e61

Please sign in to comment.