diff --git a/.github/scripts/upload-integ-test-metrics.py b/.github/scripts/upload-integ-test-metrics.py index d592f776d..28595d647 100644 --- a/.github/scripts/upload-integ-test-metrics.py +++ b/.github/scripts/upload-integ-test-metrics.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import sys import xml.etree.ElementTree as ET -from datetime import datetime, UTC +from datetime import datetime from dataclasses import dataclass from typing import Any, Literal, TypedDict import os @@ -67,7 +67,7 @@ def parse_junit_xml(xml_file_path: str) -> list[TestResult]: def build_metric_data(test_results: list[TestResult], repository: str) -> list[MetricDatum]: metrics: list[MetricDatum] = [] - timestamp = datetime.now(UTC) + timestamp = datetime.utcnow() for test in test_results: test_name = f"{test.classname}.{test.name}" diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 96e0eb7c4..2baa450b4 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -60,5 +60,6 @@ jobs: hatch test tests_integ - name: Publish test metrics to CloudWatch + if: always() run: | python .github/scripts/upload-integ-test-metrics.py ./build/test-results.xml ${{ github.event.repository }} diff --git a/README.md b/README.md index 8e4d9d0e8..cfd37b955 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,6 @@ Seamlessly integrate Model Context Protocol (MCP) servers: from strands import Agent from strands.tools.mcp import MCPClient from mcp import stdio_client, StdioServerParameters - aws_docs_client = MCPClient( lambda: stdio_client(StdioServerParameters(command="uvx", args=["awslabs.aws-documentation-mcp-server@latest"])) )