chromium-dashboard/api/origin_trials_api.py

242 строки
10 KiB
Python
Исходник Обычный вид История

# Copyright 2023 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import flask
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
import json5
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
import logging
import requests
import validators
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
from base64 import b64decode
from framework import basehandlers
from framework import origin_trials_client
from internals import notifier_helpers
from framework import permissions
from internals.core_enums import OT_READY_FOR_CREATION
from internals.core_models import FeatureEntry, Stage
from internals.review_models import Gate, Vote
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
WEBFEATURE_FILE_URL = 'https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom?format=TEXT'
ENABLED_FEATURES_FILE_URL = 'https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/platform/runtime_enabled_features.json5?format=TEXT'
GRACE_PERIOD_FILE = 'https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/common/origin_trials/manual_completion_origin_trial_features.cc?format=TEXT'
# TODO(jrobbins): Fetch these in parallel, but in a way that is easy to test.
def get_chromium_file(url: str) -> str:
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
"""Get chromium file contents from a given URL"""
try:
resp = requests.get(url)
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
except requests.RequestException as e:
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
logging.exception(
f'Failed to get response to obtain Chromium file: {url}')
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
raise e
return b64decode(resp.text).decode('utf-8')
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
class OriginTrialsAPI(basehandlers.EntitiesAPIHandler):
def do_get(self, **kwargs):
"""Get a list of all origin trials.
Returns:
A list of data on all public origin trials.
"""
try:
trials_list = origin_trials_client.get_trials_list()
except requests.exceptions.RequestException:
self.abort(500, 'Error obtaining origin trial data from API')
except KeyError:
self.abort(500, 'Malformed response from origin trials API')
return trials_list
def _validate_creation_args(
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
self, body: dict) -> dict[str, str]:
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
"""Check that all provided OT creation arguments are valid."""
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
try:
enabled_features_text = get_chromium_file(ENABLED_FEATURES_FILE_URL)
webfeature_file = get_chromium_file(WEBFEATURE_FILE_URL)
grace_period_file = get_chromium_file(GRACE_PERIOD_FILE)
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
except requests.exceptions.RequestException:
self.abort(500, 'Error obtaining Chromium file for validation')
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
validation_errors: dict[str, str] = {}
chromium_trial_name = body.get(
'ot_chromium_trial_name', {}).get('value')
if chromium_trial_name is None:
self.abort(400, 'Chromium trial name not specified.')
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
# Check if a trial already exists with the same name.
try:
trials_list = origin_trials_client.get_trials_list()
except requests.exceptions.RequestException:
self.abort(500, 'Error obtaining origin trial data from API')
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
if (any(trial['origin_trial_feature_name'] == chromium_trial_name
for trial in trials_list)):
validation_errors['ot_chromium_trial_name'] = (
'Chromium trial name is already used by another origin trial')
enabled_features_json = json5.loads(enabled_features_text)
if (not any(feature.get('origin_trial_feature_name') == chromium_trial_name
for feature in enabled_features_json['data'])):
validation_errors['ot_chromium_trial_name'] = (
'Origin trial feature name not found in file')
if not body.get('ot_is_deprecation_trial', {}).get('value', False):
use_counter = body.get('ot_webfeature_use_counter', {}).get('value')
if not use_counter:
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
validation_errors['ot_webfeature_use_counter'] = (
'No UseCounter specified for non-deprecation trial.')
Obtain Chromium file contents asynchronously (#3801) * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * async calls * update tests * type hinting * remove print * Changes suggested by @jrobbins * lint fix
2024-04-18 21:39:01 +03:00
elif f'{use_counter} =' not in webfeature_file:
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
validation_errors['ot_webfeature_use_counter'] = (
'UseCounter not landed in web_feature.mojom')
if body.get('ot_has_third_party_support', {}).get('value', False):
for feature in enabled_features_json['data']:
if (feature.get('origin_trial_feature_name') == chromium_trial_name and
not feature.get('origin_trial_allows_third_party', False)):
validation_errors['ot_has_third_party_support'] = (
'One or more features do not have third party support '
'set in runtime_enabled_features.json5. Feature name: '
f'{feature["name"]}')
if body.get('ot_is_critical_trial', {}).get('value', False):
if (f'blink::mojom::OriginTrialFeature::k{chromium_trial_name}'
not in grace_period_file):
validation_errors['ot_is_critical_trial'] = (
'Use counter has not landed in grace period array '
'for critical trial')
return validation_errors
def check_post_permissions(self, feature_id) -> flask.Response | dict:
"""Raise an exception or redirect if the user cannot request OT."""
if permissions.is_google_or_chromium_account(self.get_current_user()):
return {}
redirect_resp = permissions.validate_feature_edit_permission(
self, feature_id)
return redirect_resp
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
def do_post(self, **kwargs):
feature_id = int(kwargs['feature_id'])
# Check that feature ID is valid.
if not feature_id:
self.abort(404, msg='No feature specified.')
feature: FeatureEntry | None = FeatureEntry.get_by_id(feature_id)
if feature is None:
self.abort(404, msg=f'Feature {feature_id} not found')
# Check that stage ID is valid.
ot_stage_id = int(kwargs['stage_id'])
if not ot_stage_id:
self.abort(404, msg='No stage specified.')
ot_stage: Stage | None = Stage.get_by_id(ot_stage_id)
if ot_stage is None:
self.abort(404, msg=f'Stage {ot_stage_id} not found')
# Check that user has permission to edit the feature associated
# with the origin trial, or has a @google or @chromium account.
redirect_resp = self.check_post_permissions(feature_id)
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
if redirect_resp:
return redirect_resp
body = self.get_json_param_dict()
validation_errors = self._validate_creation_args(body)
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
if validation_errors:
return {
'message': 'Errors found when validating arguments',
'errors': validation_errors
}
self.update_stage(ot_stage, body, [])
# Flag OT stage as ready to be created.
ot_stage.ot_setup_status = OT_READY_FOR_CREATION
ot_stage.put()
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
return {'message': 'Origin trial creation request submitted.'}
def _validate_extension_args(
self, feature_id: int, ot_stage: Stage, extension_stage: Stage) -> None:
"""Abort if any arguments used for origin trial extension are invalid."""
# The stage should belong to the feature.
if feature_id != extension_stage.feature_id:
self.abort(400, ('Stage does not belong to feature. '
f'feature_id: {feature_id}, '
f'stage_id: {extension_stage.key.integer_id()}'))
trial_id = ot_stage.origin_trial_id
if trial_id is None:
self.abort(400, f'Invalid argument for trial_id: {trial_id}')
milestones = extension_stage.milestones
if milestones is None or milestones.desktop_last is None:
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
self.abort(404, 'Extension stage has no end milestone defined.')
intent_url = extension_stage.intent_thread_url
if intent_url is None or not validators.url(intent_url):
self.abort(400, ('Invalid argument for extension_intent_url: '
f'{intent_url}'))
gate = Gate.query(Gate.stage_id == extension_stage.key.integer_id()).get()
if not gate or gate.state != Vote.APPROVED:
self.abort(400, 'Extension has not received the required approvals.')
Validate OT creation arguments (API) (#3794) * Check that OT Chromium name not used by other OTs * Add method for validating OT creation arguments * Handle Chromium checks in API * Squashed commit of the following: commit 5ee220fdedcb71eb4410a7d6e2c182c70feaa15c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 17:11:42 2024 -0700 npm: bump @babel/preset-env from 7.24.3 to 7.24.4 (#3799) Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 66c768273e3c3096a9816e92cc6e7085114a0f1b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 16:21:28 2024 -0700 npm: bump rollup from 4.14.1 to 4.14.3 (#3797) Bumps [rollup](https://github.com/rollup/rollup) from 4.14.1 to 4.14.3. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.14.1...v4.14.3) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bea0dd3af323492b4e463f5438c3fe45563880ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:47:05 2024 -0700 npm: bump @babel/core from 7.24.3 to 7.24.4 (#3798) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.3 to 7.24.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.4/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 4142251f32f12ac44be49c9dbd2dc52c758148e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:43 2024 -0700 npm: bump tar from 6.2.1 to 7.0.1 (#3796) Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1. - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1) --- updated-dependencies: - dependency-name: tar dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 57437c166c9ab653519418ae5fba7e4895a886c2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 15:46:15 2024 -0700 npm: bump sass from 1.74.1 to 1.75.0 (#3795) Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6358a50bfa7a57fada0069e8bbab6e3ceee1ece4 Author: Jeffrey Yasskin <jyasskin@google.com> Date: Mon Apr 15 12:30:20 2024 -0700 Show feature links in the Consensus section (#3791) Also denormalizes external reviewer positions into the FeatureEntries table. commit cf742510fa6fa0f871f983c7d55edbaeb1bd8b87 Author: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon Apr 15 10:20:25 2024 -0700 Check that OT Chromium name not used by other OTs (#3792) * Update package-lock.json * lint fix
2024-04-18 20:37:28 +03:00
def do_patch(self, **kwargs):
"""Extends an existing origin trial"""
feature_id = int(kwargs['feature_id'])
extension_stage_id = int(kwargs['extension_stage_id'])
# Check that feature ID is valid.
if not feature_id:
self.abort(404, msg='No feature specified.')
feature: FeatureEntry | None = FeatureEntry.get_by_id(feature_id)
if feature is None:
self.abort(404, msg=f'Feature {feature_id} not found')
# Check that stage ID is valid.
if not extension_stage_id:
self.abort(404, msg='No stage specified.')
extension_stage: Stage | None = Stage.get_by_id(extension_stage_id)
if extension_stage is None:
self.abort(404, msg=f'Stage {extension_stage_id} not found')
if extension_stage.ot_stage_id is None:
self.abort(400, msg=(f'Extension stage {extension_stage_id} does not '
'have associated origin trial stage.'))
ot_stage: Stage | None = Stage.get_by_id(extension_stage.ot_stage_id)
if ot_stage is None:
self.abort(404, msg=f'OT stage {extension_stage.ot_stage_id} not found')
# Check that user has permission to edit the feature
# associated with the origin trial.
redirect_resp = permissions.validate_feature_edit_permission(
self, feature_id)
if redirect_resp:
return redirect_resp
self._validate_extension_args(feature_id, ot_stage, extension_stage)
try:
origin_trials_client.extend_origin_trial(
ot_stage.origin_trial_id, extension_stage.milestones.desktop_last,
extension_stage.intent_thread_url)
except requests.exceptions.RequestException:
self.abort(500, 'Error in request to origin trials API')
except KeyError:
self.abort(500, 'Malformed response from Schedule API')
# This extension has been processed and action is no longer needed.
extension_stage.ot_action_requested = False
extension_stage.put()
notifier_helpers.send_trial_extended_notification(ot_stage, extension_stage)
return {'message': 'Origin trial extended successfully.'}