-
Notifications
You must be signed in to change notification settings - Fork 31
Oonirun v2 1 #962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LDiazN
wants to merge
73
commits into
master
Choose a base branch
from
oonirun-v2-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Oonirun v2 1 #962
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
db64003
Improve type checking in oonirun
LDiazN b98c9c0
Added targets_name and inputs_extra parameters
LDiazN 5bcc9ee
Moved fields to right model
LDiazN d1c610c
Add migration for targets_name and input_extra
LDiazN 6083adc
Add more tests to the sample oonirun link
LDiazN 018cda1
Test insert of new nettests
LDiazN 4267822
Add targets_name and inputs_extra to oonirun
LDiazN f041939
Add tests to check consistency of inputs_extra
LDiazN b0c9792
Add inputs_extra validation
LDiazN 0ab1cae
Fixed broken test
LDiazN 69f33b4
Add TODO comment
LDiazN e39a125
Removed useless comment
LDiazN d6fce79
Add filter by revision and test
LDiazN cd9fab9
Removed unused imports
LDiazN a2613c5
Added missing arguments to engine-descriptor and tests
LDiazN e784589
Add headers for dynamic test lists calculation
LDiazN 1e79ef4
Add arguments for dynamic targets list generation
LDiazN cd4e6c3
Rename postgres session dependency
LDiazN 1868336
Fix typo
LDiazN 9f92981
Prevent both of targets_name and inputs to be present at the same time
LDiazN bf1a695
Remove unused import
LDiazN 800753d
Drop backend options parameter
LDiazN 631c61a
Drop backend options parameter
LDiazN 60f8775
Working on headers parsing
LDiazN 402c899
Merge branch 'master' into oonirun-v2-1
LDiazN 2d701fa
Add tests for header parsing; moving arguments out of headers to post
LDiazN 0f50f7a
Skip user agent parsing tests for now
LDiazN 5645e77
Move prio to common
LDiazN af5bbf3
Move prio to common
LDiazN 4c02b03
Move prio to common
LDiazN aba48e4
Changed priority list type
LDiazN 3219604
Added clickhouse to oonirun
LDiazN 9d92042
Add clickhouse to clients for testing
LDiazN 06e1d0e
Set up get_nettest for dynamic lists calculation
LDiazN ea6cafb
Enforce targets_name/inputs validation only on write ops
LDiazN 62b7864
Rename function to dynamically compute test lists
LDiazN 0c9ddf6
Add dynamic test lists calculation to engine-descriptor endpoint
LDiazN 32d524b
Improve validation of inputs_extra field
LDiazN 8e4279f
Add todo
LDiazN 80db37a
Fix bad creation of oonirun links with targets_name
LDiazN 2705195
Fix bug assigning None to targets_name when not needed
LDiazN f2ebdc1
Add header parsing for engine-descriptor endpoint
LDiazN 09515db
Fix broken test
LDiazN ec9f7b3
Fix broken test
LDiazN 22a4eb8
Add integration test for dynamic lists calculation
LDiazN d0062c2
Remove useless prints
LDiazN 673c907
Fix broken tests
LDiazN 1a1f203
Remove print
LDiazN 083e286
Add test for filtering with category codes
LDiazN b9ec631
Add setup for creating measurements for testing url priorization
LDiazN ec10d06
Add test for prioritization with measurements
LDiazN e2b2280
Add url basic url priorities tests
LDiazN 8769092
Remove useless print
LDiazN b507c99
Simplify header format
LDiazN 248a89b
Simplify get_nettests function
LDiazN f389bd6
Revert "Simplify get_nettests function"
LDiazN b5f4308
black reformat
LDiazN 279c0b6
fix bad ooni domain
LDiazN 5f41fca
Move fixtures to conftest; root fixtures dir to THIS_DIR
LDiazN e25e053
Add network type validation and some tests
LDiazN f3a9147
Improve ASN validation
LDiazN 54f8f0f
rename header for anonymous credentials
LDiazN c823315
Remove only_latest parameter
LDiazN a3f1a8d
Simplify user agent header parsing
LDiazN 70240f3
Changed default value of inputs field
LDiazN 59f47dd
Add flag to compute dynamic lists in get_nettest function
LDiazN f53a30a
Remove backend_options and options, even from the DB
LDiazN 0d28ee7
Split dynamic test list calculation from nettest db fetch
LDiazN eeb9743
drop backend_options and options column
LDiazN 3d09989
Add backend_options and options on downgrade
LDiazN a7bf78f
Restor options field in nettest
LDiazN 6868ab9
trigger CI
LDiazN 48e60d9
Add bluetooth and usb as valid network types
LDiazN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...api/common/src/common/alembic/versions/b860eb79750f_add_targets_name_and_inputs_extra_.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""Add targets_name and inputs_extra columns to oonirun_nettest | ||
|
||
Revision ID: b860eb79750f | ||
Revises: 8e7ecea5c2f5 | ||
Create Date: 2025-05-21 15:44:32.959349 | ||
|
||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "b860eb79750f" | ||
down_revision: Union[str, None] = "8e7ecea5c2f5" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
"oonirun_nettest", sa.Column("targets_name", sa.String(), nullable=True) | ||
) | ||
op.add_column( | ||
"oonirun_nettest", sa.Column("inputs_extra", sa.ARRAY(sa.JSON()), nullable=True) | ||
) | ||
op.drop_column("oonirun_nettest", "backend_options") | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("oonirun_nettest", "targets_name") | ||
op.drop_column("oonirun_nettest", "inputs_extra") | ||
|
||
op.add_column("oonirun_nettest", sa.Column("backend_options", sa.ARRAY(sa.JSON()), nullable=True)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from ooniprobe import prio | ||
from ooniprobe.common import prio | ||
|
||
|
||
def test_prio(): | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.