Skip to content

Commit

Permalink
Create a cron job that fetches all Webdx feature IDs (#4719)
Browse files Browse the repository at this point in the history
* Implement a cron job for fetching webdx feature ids
  • Loading branch information
KyleJu authored Jan 23, 2025
1 parent 66e03ca commit 8197ba9
Show file tree
Hide file tree
Showing 122 changed files with 11,875 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ cron:
- description: Check if any origin trials require activation
url: /cron/activate_origin_trials
schedule: every day 9:00
# TODO(kyleju): Activate this when it is ready.
# - description: Fetch a new copy of Webdx feature ID list
# url: /cron/fetch_webdx_feature_ids
# schedule: every day 9:00
38 changes: 38 additions & 0 deletions gen/py/webstatus_openapi/.github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: webstatus_openapi Python package

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
66 changes: 66 additions & 0 deletions gen/py/webstatus_openapi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.venv/
.python-version
.pytest_cache

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints
31 changes: 31 additions & 0 deletions gen/py/webstatus_openapi/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=webstatus_openapi

pytest-3.7:
extends: .pytest
image: python:3.7-alpine
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
23 changes: 23 additions & 0 deletions gen/py/webstatus_openapi/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
113 changes: 113 additions & 0 deletions gen/py/webstatus_openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
.travis.yml
README.md
docs/BaselineInfo.md
docs/BasicErrorModel.md
docs/BrowserImplementation.md
docs/BrowserReleaseFeatureMetric.md
docs/BrowserReleaseFeatureMetricsPage.md
docs/BrowserUsage.md
docs/CanIUseInfo.md
docs/CanIUseItem.md
docs/ChromiumDailyStatsPage.md
docs/ChromiumUsageInfo.md
docs/ChromiumUsageStat.md
docs/DefaultApi.md
docs/ExtendedErrorModel.md
docs/Feature.md
docs/FeatureMetadata.md
docs/FeaturePage.md
docs/FeatureSpecInfo.md
docs/FeatureWPTSnapshots.md
docs/GenericUpdatableUniqueModel.md
docs/PageMetadata.md
docs/PageMetadataWithTotal.md
docs/SavedSearch.md
docs/SavedSearchPage.md
docs/SavedSearchResponse.md
docs/SpecLink.md
docs/SupportedBrowsers.md
docs/WPTFeatureData.md
docs/WPTMetricView.md
docs/WPTRunMetric.md
docs/WPTRunMetricsPage.md
git_push.sh
pyproject.toml
requirements.txt
setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_baseline_info.py
test/test_basic_error_model.py
test/test_browser_implementation.py
test/test_browser_release_feature_metric.py
test/test_browser_release_feature_metrics_page.py
test/test_browser_usage.py
test/test_can_i_use_info.py
test/test_can_i_use_item.py
test/test_chromium_daily_stats_page.py
test/test_chromium_usage_info.py
test/test_chromium_usage_stat.py
test/test_default_api.py
test/test_extended_error_model.py
test/test_feature.py
test/test_feature_metadata.py
test/test_feature_page.py
test/test_feature_spec_info.py
test/test_feature_wpt_snapshots.py
test/test_generic_updatable_unique_model.py
test/test_page_metadata.py
test/test_page_metadata_with_total.py
test/test_saved_search.py
test/test_saved_search_page.py
test/test_saved_search_response.py
test/test_spec_link.py
test/test_supported_browsers.py
test/test_wpt_feature_data.py
test/test_wpt_metric_view.py
test/test_wpt_run_metric.py
test/test_wpt_run_metrics_page.py
tox.ini
webstatus_openapi/__init__.py
webstatus_openapi/api/__init__.py
webstatus_openapi/api/default_api.py
webstatus_openapi/api_client.py
webstatus_openapi/api_response.py
webstatus_openapi/configuration.py
webstatus_openapi/exceptions.py
webstatus_openapi/models/__init__.py
webstatus_openapi/models/baseline_info.py
webstatus_openapi/models/basic_error_model.py
webstatus_openapi/models/browser_implementation.py
webstatus_openapi/models/browser_release_feature_metric.py
webstatus_openapi/models/browser_release_feature_metrics_page.py
webstatus_openapi/models/browser_usage.py
webstatus_openapi/models/can_i_use_info.py
webstatus_openapi/models/can_i_use_item.py
webstatus_openapi/models/chromium_daily_stats_page.py
webstatus_openapi/models/chromium_usage_info.py
webstatus_openapi/models/chromium_usage_stat.py
webstatus_openapi/models/extended_error_model.py
webstatus_openapi/models/feature.py
webstatus_openapi/models/feature_metadata.py
webstatus_openapi/models/feature_page.py
webstatus_openapi/models/feature_spec_info.py
webstatus_openapi/models/feature_wpt_snapshots.py
webstatus_openapi/models/generic_updatable_unique_model.py
webstatus_openapi/models/page_metadata.py
webstatus_openapi/models/page_metadata_with_total.py
webstatus_openapi/models/saved_search.py
webstatus_openapi/models/saved_search_page.py
webstatus_openapi/models/saved_search_response.py
webstatus_openapi/models/spec_link.py
webstatus_openapi/models/supported_browsers.py
webstatus_openapi/models/wpt_feature_data.py
webstatus_openapi/models/wpt_metric_view.py
webstatus_openapi/models/wpt_run_metric.py
webstatus_openapi/models/wpt_run_metrics_page.py
webstatus_openapi/py.typed
webstatus_openapi/rest.py
1 change: 1 addition & 0 deletions gen/py/webstatus_openapi/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.6.0
17 changes: 17 additions & 0 deletions gen/py/webstatus_openapi/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# uncomment the following if needed
#- "3.11-dev" # 3.11 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
# command to run tests
script: pytest --cov=webstatus_openapi
Loading

0 comments on commit 8197ba9

Please sign in to comment.