Skip to content

chore: update flask latest version to 3.1.1 #13680

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

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 16, 2025

Update flask lockfiles and dependency package lockfiles.
This performs the following updates:

  1. Some flask lockfiles use flask latest. This will update flask and dependencies.
  2. Some flask lockfiles use a pinned (non-latest) version of flask, but require the latest version of another package. This will update all such packages.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@github-actions github-actions bot added the changelog/no-changelog A changelog entry is not required for this PR. label Jun 16, 2025
@github-actions github-actions bot requested review from a team as code owners June 16, 2025 20:58
@github-actions github-actions bot requested a review from sabrenner June 16, 2025 20:58
@github-actions github-actions bot added the changelog/no-changelog A changelog entry is not required for this PR. label Jun 16, 2025
@emmettbutler emmettbutler enabled auto-merge (squash) June 17, 2025 16:24
Copy link
Contributor Author

github-actions bot commented Jun 17, 2025

CODEOWNERS have been resolved as:

.riot/requirements/107d8f2.txt                                          @DataDog/apm-python
.riot/requirements/130158f.txt                                          @DataDog/apm-python
.riot/requirements/1ad89c5.txt                                          @DataDog/apm-python
.riot/requirements/2634bf7.txt                                          @DataDog/apm-python
.riot/requirements/4a85f6d.txt                                          @DataDog/apm-python
.riot/requirements/4d27459.txt                                          @DataDog/apm-python
.riot/requirements/530c983.txt                                          @DataDog/apm-python
.riot/requirements/b5d5a35.txt                                          @DataDog/apm-python
ddtrace/internal/test_visibility/_internal_item_ids.py                  @DataDog/ci-app-libraries
scripts/get-native-sources-hash.sh                                      @DataDog/apm-core-python
tests/telemetry/test_telemetry_log_handler.py                           @DataDog/apm-python
.github/CODEOWNERS                                                      @DataDog/python-guild @DataDog/apm-core-python
.github/workflows/generate-package-versions.yml                         @DataDog/python-guild @DataDog/apm-core-python
.gitlab-ci.yml                                                          @DataDog/apm-core-python
.gitlab/one-pipeline.locked.yml                                         @DataDog/python-guild @DataDog/apm-core-python
.riot/requirements/116b0a1.txt                                          @DataDog/apm-python
.riot/requirements/1415ef8.txt                                          @DataDog/apm-python
.riot/requirements/1634f79.txt                                          @DataDog/apm-python
.riot/requirements/19f3b8d.txt                                          @DataDog/apm-python
.riot/requirements/1b1c34d.txt                                          @DataDog/apm-python
.riot/requirements/1c53a7f.txt                                          @DataDog/apm-python
.riot/requirements/1c6c710.txt                                          @DataDog/apm-python
.riot/requirements/2b426ba.txt                                          @DataDog/apm-python
.riot/requirements/3cbe634.txt                                          @DataDog/apm-python
.riot/requirements/3f2ebdc.txt                                          @DataDog/apm-python
.riot/requirements/6dbf615.txt                                          @DataDog/apm-python
.riot/requirements/a3c3dfa.txt                                          @DataDog/apm-python
.riot/requirements/b29075f.txt                                          @DataDog/apm-python
.riot/requirements/c3912b5.txt                                          @DataDog/apm-python
.riot/requirements/e06abee.txt                                          @DataDog/apm-python
.riot/requirements/e6872f6.txt                                          @DataDog/apm-python
.riot/requirements/e9e35ef.txt                                          @DataDog/apm-python
.riot/requirements/f3bee4b.txt                                          @DataDog/apm-python
.riot/requirements/f408d1f.txt                                          @DataDog/apm-python
.riot/requirements/f850b22.txt                                          @DataDog/apm-python
.riot/requirements/fcfaa6e.txt                                          @DataDog/apm-python
.riot/requirements/ff0c51d.txt                                          @DataDog/apm-python
ddtrace/_monkey.py                                                      @DataDog/apm-core-python
ddtrace/_trace/processor/__init__.py                                    @DataDog/apm-sdk-api-python
ddtrace/_trace/sampler.py                                               @DataDog/apm-sdk-api-python
ddtrace/_trace/trace_handlers.py                                        @DataDog/apm-sdk-api-python
ddtrace/_trace/tracer.py                                                @DataDog/apm-sdk-api-python
ddtrace/appsec/_common_module_patches.py                                @DataDog/asm-python
ddtrace/appsec/_handlers.py                                             @DataDog/asm-python
ddtrace/appsec/_iast/_listener.py                                       @DataDog/asm-python
ddtrace/appsec/_iast/_patch_modules.py                                  @DataDog/asm-python
ddtrace/appsec/_iast/main.py                                            @DataDog/asm-python
ddtrace/appsec/_iast/secure_marks/__init__.py                           @DataDog/asm-python
ddtrace/appsec/_iast/secure_marks/sanitizers.py                         @DataDog/asm-python
ddtrace/appsec/_iast/secure_marks/validators.py                         @DataDog/asm-python
ddtrace/appsec/_iast/taint_sinks/sql_injection.py                       @DataDog/asm-python
ddtrace/appsec/trace_utils/__init__.py                                  @DataDog/asm-python
ddtrace/appsec/track_user_sdk.py                                        @DataDog/asm-python
ddtrace/contrib/dbapi.py                                                @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/dbapi_async.py                                          @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/integration_registry/registry.yaml                      @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/algoliasearch/patch.py                         @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/anthropic/patch.py                             @DataDog/ml-observability
ddtrace/contrib/internal/botocore/patch.py                              @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/botocore/services/bedrock.py                   @DataDog/ml-observability
ddtrace/contrib/internal/langchain/patch.py                             @DataDog/ml-observability
ddtrace/contrib/internal/langchain/utils.py                             @DataDog/ml-observability
ddtrace/contrib/internal/litellm/patch.py                               @DataDog/ml-observability
ddtrace/contrib/internal/litellm/utils.py                               @DataDog/ml-observability
ddtrace/contrib/internal/openai/_endpoint_hooks.py                      @DataDog/ml-observability
ddtrace/contrib/internal/openai/patch.py                                @DataDog/ml-observability
ddtrace/contrib/internal/openai/utils.py                                @DataDog/ml-observability
ddtrace/contrib/internal/pytest/_atr_utils.py                           @DataDog/ci-app-libraries
ddtrace/contrib/internal/pytest/_attempt_to_fix.py                      @DataDog/ci-app-libraries
ddtrace/contrib/internal/pytest/_efd_utils.py                           @DataDog/ci-app-libraries
ddtrace/contrib/internal/pytest/_plugin_v2.py                           @DataDog/ci-app-libraries
ddtrace/contrib/internal/pytest/_utils.py                               @DataDog/ci-app-libraries
ddtrace/contrib/internal/rq/patch.py                                    @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/internal/_encoding.pyx                                          @DataDog/apm-core-python
ddtrace/internal/ci_visibility/_api_client.py                           @DataDog/ci-app-libraries
ddtrace/internal/ci_visibility/api/_test.py                             @DataDog/ci-app-libraries
ddtrace/internal/ci_visibility/recorder.py                              @DataDog/ci-app-libraries
ddtrace/internal/telemetry/logging.py                                   @DataDog/apm-core-python
ddtrace/internal/telemetry/writer.py                                    @DataDog/apm-core-python
ddtrace/internal/test_visibility/_atr_mixins.py                         @DataDog/ci-app-libraries
ddtrace/internal/test_visibility/_attempt_to_fix_mixins.py              @DataDog/ci-app-libraries
ddtrace/internal/test_visibility/_benchmark_mixin.py                    @DataDog/ci-app-libraries
ddtrace/internal/test_visibility/_efd_mixins.py                         @DataDog/ci-app-libraries
ddtrace/internal/test_visibility/_itr_mixins.py                         @DataDog/ci-app-libraries
ddtrace/internal/test_visibility/api.py                                 @DataDog/ci-app-libraries
ddtrace/internal/writer/writer.py                                       @DataDog/apm-core-python
ddtrace/llmobs/_constants.py                                            @DataDog/ml-observability
ddtrace/llmobs/_integrations/__init__.py                                @DataDog/ml-observability
ddtrace/llmobs/_integrations/anthropic.py                               @DataDog/ml-observability
ddtrace/llmobs/_integrations/base.py                                    @DataDog/ml-observability
ddtrace/llmobs/_integrations/bedrock.py                                 @DataDog/ml-observability
ddtrace/llmobs/_integrations/langchain.py                               @DataDog/ml-observability
ddtrace/llmobs/_integrations/litellm.py                                 @DataDog/ml-observability
ddtrace/llmobs/_integrations/openai.py                                  @DataDog/ml-observability
ddtrace/llmobs/_integrations/utils.py                                   @DataDog/ml-observability
ddtrace/llmobs/_llmobs.py                                               @DataDog/ml-observability
ddtrace/llmobs/_telemetry.py                                            @DataDog/ml-observability
ddtrace/opentracer/tracer.py                                            @DataDog/apm-sdk-api-python
ddtrace/settings/_config.py                                             @DataDog/apm-core-python
ddtrace/settings/asm.py                                                 @DataDog/asm-python
docs/build_system.rst                                                   @DataDog/python-guild
docs/configuration.rst                                                  @DataDog/python-guild
docs/contributing-release.rst                                           @DataDog/python-guild
docs/contributing.rst                                                   @DataDog/python-guild
docs/index.rst                                                          @DataDog/python-guild
docs/integrations.rst                                                   @DataDog/python-guild
docs/spelling_wordlist.txt                                              @DataDog/python-guild
hatch.toml                                                              @DataDog/python-guild
riotfile.py                                                             @DataDog/apm-python
scripts/gen_gitlab_config.py                                            @DataDog/apm-core-python
setup.py                                                                @DataDog/python-guild
supported_versions_output.json                                          @DataDog/apm-core-python
supported_versions_table.csv                                            @DataDog/apm-core-python
tests/appsec/appsec/test_appsec_trace_utils.py                          @DataDog/asm-python
tests/appsec/iast/_ast/conftest.py                                      @DataDog/asm-python
tests/appsec/iast/aspects/conftest.py                                   @DataDog/asm-python
tests/appsec/iast/aspects/test_add_aspect.py                            @DataDog/asm-python
tests/appsec/iast/conftest.py                                           @DataDog/asm-python
tests/appsec/iast/iast_utils.py                                         @DataDog/asm-python
tests/appsec/iast/secure_marks/conftest.py                              @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_command_injection.py                 @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_insecure_cookie.py                   @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_sql_injection.py                     @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_ssrf.py                              @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_stacktrace_leak.py                   @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_vulnerability_detection.py           @DataDog/asm-python
tests/appsec/iast/taint_sinks/test_weak_cipher.py                       @DataDog/asm-python
tests/appsec/iast/taint_tracking/conftest.py                            @DataDog/asm-python
tests/appsec/integrations/django_tests/conftest.py                      @DataDog/asm-python
tests/appsec/integrations/django_tests/django_app/urls.py               @DataDog/asm-python
tests/appsec/integrations/django_tests/django_app/views.py              @DataDog/asm-python
tests/appsec/integrations/django_tests/test_appsec_django.py            @DataDog/asm-python
tests/appsec/integrations/django_tests/test_iast_django.py              @DataDog/asm-python
tests/appsec/integrations/packages_tests/conftest.py                    @DataDog/asm-python
tests/appsec/integrations/packages_tests/test_iast_sql_injection.py     @DataDog/asm-python
tests/appsec/suitespec.yml                                              @DataDog/asm-python
tests/ci_visibility/api/fake_runner_all_itr_skip_suite_level.py         @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_all_itr_skip_test_level.py          @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_atr_mix_fail.py                     @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_atr_mix_pass.py                     @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_efd_all_pass.py                     @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_efd_faulty_session.py               @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_efd_mix_fail.py                     @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_efd_mix_pass.py                     @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_mix_fail_itr_suite_level.py         @DataDog/ci-app-libraries
tests/ci_visibility/api/fake_runner_mix_fail_itr_test_level.py          @DataDog/ci-app-libraries
tests/ci_visibility/api/test_internal_test_visibility_api.py            @DataDog/ci-app-libraries
tests/ci_visibility/api_client/_util.py                                 @DataDog/ci-app-libraries
tests/ci_visibility/test_ci_visibility.py                               @DataDog/ci-app-libraries
tests/ci_visibility/test_efd.py                                         @DataDog/ci-app-libraries
tests/ci_visibility/util.py                                             @DataDog/ci-app-libraries
tests/conftest.py                                                       @DataDog/apm-core-python
tests/contrib/anthropic/test_anthropic_llmobs.py                        @DataDog/ml-observability
tests/contrib/anthropic/utils.py                                        @DataDog/ml-observability
tests/contrib/botocore/bedrock_utils.py                                 @DataDog/ml-observability
tests/contrib/botocore/test_bedrock.py                                  @DataDog/ml-observability
tests/contrib/botocore/test_bedrock_llmobs.py                           @DataDog/ml-observability
tests/contrib/freezegun/test_freezegun.py                               @DataDog/ci-app-libraries
tests/contrib/langchain/conftest.py                                     @DataDog/ml-observability
tests/contrib/langchain/test_langchain_llmobs.py                        @DataDog/ml-observability
tests/contrib/langchain/utils.py                                        @DataDog/ml-observability
tests/contrib/litellm/test_litellm_llmobs.py                            @DataDog/ml-observability
tests/contrib/openai/test_openai_llmobs.py                              @DataDog/ml-observability
tests/contrib/openai/test_openai_v1.py                                  @DataDog/ml-observability
tests/contrib/openai/utils.py                                           @DataDog/ml-observability
tests/integration/test_integration_snapshots.py                         @DataDog/apm-core-python
tests/integration/test_priority_sampling.py                             @DataDog/apm-sdk-api-python
tests/llmobs/suitespec.yml                                              @DataDog/ml-observability
tests/llmobs/test_llmobs_service.py                                     @DataDog/ml-observability
tests/snapshots/tests.contrib.openai.test_openai.test_response_error.json  @DataDog/apm-python
tests/snapshots/tests.contrib.openai.test_openai.test_response_stream.json  @DataDog/apm-python
tests/snapshots/tests.contrib.openai.test_openai.test_response_tools_stream.json  @DataDog/apm-python
tests/telemetry/test_writer.py                                          @DataDog/apm-python
tests/tracer/test_processors.py                                         @DataDog/apm-sdk-api-python
tests/tracer/test_sampler.py                                            @DataDog/apm-sdk-api-python
tests/tracer/test_tracer.py                                             @DataDog/apm-sdk-api-python
tests/tracer/test_writer.py                                             @DataDog/apm-sdk-api-python
tests/utils.py                                                          @DataDog/python-guild
.riot/requirements/15f7356.txt                                          @DataDog/apm-python
.riot/requirements/18de44f.txt                                          @DataDog/apm-python
.riot/requirements/1c1f9ea.txt                                          @DataDog/apm-python
.riot/requirements/1e6bd37.txt                                          @DataDog/apm-python
.riot/requirements/1ecd900.txt                                          @DataDog/apm-python
.riot/requirements/222519c.txt                                          @DataDog/apm-python
.riot/requirements/26381f8.txt                                          @DataDog/apm-python
.riot/requirements/5295cd7.txt                                          @DataDog/apm-python
.riot/requirements/df0b19d.txt                                          @DataDog/apm-python
.riot/requirements/e1342cb.txt                                          @DataDog/apm-python
.riot/requirements/e648105.txt                                          @DataDog/apm-python
tests/contrib/dbapi/test_dbapi_appsec.py                                @DataDog/asm-python
tests/snapshots/tests.opentelemetry.test_context.test_sampling_decisions_across_processes.json  @DataDog/apm-python

Copy link
Contributor Author

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 278 ± 4 ms.

The average import time from base is: 277 ± 2 ms.

The import time difference between this PR and base is: 0.3 ± 0.2 ms.

The difference is not statistically significant (z = 1.98).

Import time breakdown

The following import paths have grown:

ddtrace.auto 0.020 ms (0.01%)
ddtrace.bootstrap.sitecustomize 0.020 ms (0.01%)
ddtrace.bootstrap.preload 0.020 ms (0.01%)
ddtrace.internal.remoteconfig._connectors 0.020 ms (0.01%)

The following import paths have shrunk:

ddtrace.auto 1.801 ms (0.65%)
ddtrace.bootstrap.sitecustomize 1.132 ms (0.41%)
ddtrace.bootstrap.preload 1.132 ms (0.41%)
ddtrace.internal.remoteconfig.client 0.592 ms (0.21%)
ddtrace 0.669 ms (0.24%)
ddtrace.internal._unpatched 0.030 ms (0.01%)
json 0.030 ms (0.01%)
json.decoder 0.030 ms (0.01%)
re 0.030 ms (0.01%)
enum 0.030 ms (0.01%)
types 0.030 ms (0.01%)

@pr-commenter
Copy link

pr-commenter bot commented Jun 17, 2025

Benchmarks

Benchmark execution time: 2025-06-17 17:15:57

Comparing candidate commit e05be0f in PR branch upgrade-latest-flask-version with baseline commit bd7f202 in branch main.

Found 0 performance improvements and 2 performance regressions! Performance is the same for 506 metrics, 6 unstable metrics.

scenario:iastaspects-format_map_aspect

  • 🟥 execution_time [+417.503ns; +517.218ns] or [+12.950%; +16.042%]

scenario:iastaspectsospath-ospathsplitdrive_aspect

  • 🟥 execution_time [+336.702ns; +396.134ns] or [+9.183%; +10.804%]

@bm1549 bm1549 requested review from ZStriker19 and mabdinur and removed request for rachelyangdog June 20, 2025 14:14
@brettlangdon brettlangdon force-pushed the upgrade-latest-flask-version branch from e05be0f to a7bd8d6 Compare June 25, 2025 19:43
@brettlangdon brettlangdon requested review from a team as code owners June 25, 2025 19:43
@brettlangdon brettlangdon requested a review from gnufede June 25, 2025 19:43
auto-merge was automatically disabled June 25, 2025 19:43

Pull request was closed

Comment on lines +615 to +616
print(f"INFO: Excluding extension {ext.name}")
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Quality Violation

duplicate blocks between conditions (...read more)

Code in the branches of an if condition must be unique. If you have duplicated branches, merge the conditions.

View in Datadog  Leave us feedback  Documentation

@@ -164,27 +156,15 @@ def _llmobs_set_meta_tags_from_embedding(span: Span, kwargs: Dict[str, Any], res
span._set_ctx_item(OUTPUT_VALUE, "[{} embedding(s) returned]".format(len(resp.data)))

@staticmethod
def _extract_llmobs_metrics_tags(span: Span, resp: Any, span_kind: str) -> Dict[str, Any]:
def _extract_llmobs_metrics_tags(span: Span, resp: Any) -> Dict[str, Any]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Quality Violation

do not use Any, use a concrete type (...read more)

Use the Any type very carefully. Most of the time, the Any type is used because we do not know exactly what type is being used. If you want to specify that a value can be of any type, use object instead of Any.

Learn More

View in Datadog  Leave us feedback  Documentation

instance: Any,
args: Sequence,
kwargs: dict,
vulnerability_type: VulnerabilityType, wrapped: Callable, instance: Any, args: Sequence, kwargs: dict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Quality Violation

do not use Any, use a concrete type (...read more)

Use the Any type very carefully. Most of the time, the Any type is used because we do not know exactly what type is being used. If you want to specify that a value can be of any type, use object instead of Any.

Learn More

View in Datadog  Leave us feedback  Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog A changelog entry is not required for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants