-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Test fixing bad PROD image preparation in CI #39011
Commits on Apr 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9db254d - Browse repository at this point
Copy the full SHA 9db254dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9733a4 - Browse repository at this point
Copy the full SHA e9733a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac04dac - Browse repository at this point
Copy the full SHA ac04dacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4274b61 - Browse repository at this point
Copy the full SHA 4274b61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a981c1 - Browse repository at this point
Copy the full SHA 3a981c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 368a19b - Browse repository at this point
Copy the full SHA 368a19bView commit details -
fix: add missing import which was removed while rebasing, add connexi…
…on dependencies in pyproject.toml. Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ea90662 - Browse repository at this point
Copy the full SHA ea90662View commit details -
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b77a639 - Browse repository at this point
Copy the full SHA b77a639View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1016ff - Browse repository at this point
Copy the full SHA b1016ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for e72aeba - Browse repository at this point
Copy the full SHA e72aebaView commit details -
feat: implement brefore_request to handle CSRF exemption logic.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8788688 - Browse repository at this point
Copy the full SHA 8788688View commit details -
test: adapt broken unit test due to connexion_app
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 464bec8 - Browse repository at this point
Copy the full SHA 464bec8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5fcfed - Browse repository at this point
Copy the full SHA f5fcfedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b0e3e4 - Browse repository at this point
Copy the full SHA 4b0e3e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e77141 - Browse repository at this point
Copy the full SHA 9e77141View commit details -
fix: fixing test_auth of connexion api.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8fec363 - Browse repository at this point
Copy the full SHA 8fec363View commit details -
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dbf9d18 - Browse repository at this point
Copy the full SHA dbf9d18View commit details -
fix: adapt few test of www module.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 498c87c - Browse repository at this point
Copy the full SHA 498c87cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2763ee9 - Browse repository at this point
Copy the full SHA 2763ee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b22759 - Browse repository at this point
Copy the full SHA 7b22759View commit details -
fix: fix failing static check.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 79b5328 - Browse repository at this point
Copy the full SHA 79b5328View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ae852f - Browse repository at this point
Copy the full SHA 6ae852fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8884df - Browse repository at this point
Copy the full SHA b8884dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84251a7 - Browse repository at this point
Copy the full SHA 84251a7View commit details -
fix: test_should_respond_200_with_anonymous_user fixed.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f7501a8 - Browse repository at this point
Copy the full SHA f7501a8View commit details -
fix: unit tests of experimental/test_dag_runs_endpoint.py.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3640aa9 - Browse repository at this point
Copy the full SHA 3640aa9View commit details -
fix: adapt unit test to check for redirection.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fd9ec2b - Browse repository at this point
Copy the full SHA fd9ec2bView commit details -
fix: Added 'init_jinja_globals' to minimal app. Updated client_with_l…
…ogin to use path instead of status code.
Configuration menu - View commit details
-
Copy full SHA for 18c2320 - Browse repository at this point
Copy the full SHA 18c2320View commit details -
fix: adapt unit test in www/test_views
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 32a94c9 - Browse repository at this point
Copy the full SHA 32a94c9View commit details -
fix: adapt unit test with connexion v3.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f976e6e - Browse repository at this point
Copy the full SHA f976e6eView commit details -
fix: adapt unit test with connexion v3
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 434df72 - Browse repository at this point
Copy the full SHA 434df72View commit details -
fix: move connexion v3 dependency to hatch_build
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b6db123 - Browse repository at this point
Copy the full SHA b6db123View commit details -
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ff57ae0 - Browse repository at this point
Copy the full SHA ff57ae0View commit details -
fix: adapt redirection tests with starlette tet client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eff5ec6 - Browse repository at this point
Copy the full SHA eff5ec6View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d102883 - Browse repository at this point
Copy the full SHA d102883View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0b0910 - Browse repository at this point
Copy the full SHA c0b0910View commit details -
Configuration menu - View commit details
-
Copy full SHA for 319647c - Browse repository at this point
Copy the full SHA 319647cView commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 88db38a - Browse repository at this point
Copy the full SHA 88db38aView commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0c65143 - Browse repository at this point
Copy the full SHA 0c65143View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4f176f5 - Browse repository at this point
Copy the full SHA 4f176f5View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 32b2054 - Browse repository at this point
Copy the full SHA 32b2054View commit details -
fix: does not green the test but fix the attribute error.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e83370b - Browse repository at this point
Copy the full SHA e83370bView commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0ce9570 - Browse repository at this point
Copy the full SHA 0ce9570View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7b1cbb1 - Browse repository at this point
Copy the full SHA 7b1cbb1View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eb680d8 - Browse repository at this point
Copy the full SHA eb680d8View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b2b5a92 - Browse repository at this point
Copy the full SHA b2b5a92View commit details -
fix: adapt test units with connextion v3 test client.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e6c8145 - Browse repository at this point
Copy the full SHA e6c8145View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18c4ac2 - Browse repository at this point
Copy the full SHA 18c4ac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cace53a - Browse repository at this point
Copy the full SHA cace53aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3c4139 - Browse repository at this point
Copy the full SHA e3c4139View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9d80e4 - Browse repository at this point
Copy the full SHA b9d80e4View commit details -
Fix session handling in test_session_inaccessible_after_logout
There were two problem was with session handling: * the get_session_cookie - did not get the right cookie - it returned "session" string. The right fix was to change cookie_jar into cookie.jar because this is where apparently TestClient of starlette is holding the cookies (visible when you debug) * The client does not accept "set_cookie" method - it accepts passing cookies via "cookies" dictionary - this is the usual httpx client - see https://www.starlette.io/testclient/ - so we have to set cookie directly in the get method to try it out I added few more calls to show what's going on and to see that the call works before logout The other two tests shoudl be fixed similarly.
Configuration menu - View commit details
-
Copy full SHA for 3542cba - Browse repository at this point
Copy the full SHA 3542cbaView commit details -
Add "flask_client_with_login" for tests that neeed flask client
Some tests require functionality not available to Starlette test client as they use Flask test client specific features - for those we have an option to get flask test client instead of starlette one.
Configuration menu - View commit details
-
Copy full SHA for 653a143 - Browse repository at this point
Copy the full SHA 653a143View commit details -
Fix error handling for new connection 3 approach
Error handling for Connexion 3 integration needed to be reworked. It's likely not a final version - but the way it behaves is much the same as it works in main: * for API errors - we get application/problem+json responses * for UI erros - we have rendered views * for redirection - we have correct location header (it's been missing) * the api error handled was not added as available middleware in the www tests It should fix all test_views_base.py tests which were failing on lack of location header for redirection.
Configuration menu - View commit details
-
Copy full SHA for 0e72de7 - Browse repository at this point
Copy the full SHA 0e72de7View commit details -
Fix wrong response is tests_view_cluster_activity
The problem in the test was that Starlette Test Client opens a new connection and start new session, while flask test client uses the same database session. The test did not show data because the data was not committed and session was not closed - which also failed sqlite local tests with "database is locked" error. This solution can be applied to other tests where data is differnet than expected and there is a missing commit / close when data is prepared.
Configuration menu - View commit details
-
Copy full SHA for a44ce2c - Browse repository at this point
Copy the full SHA a44ce2cView commit details -
Fix partially test_extra_links
The tests were failing again because the dagrun created was not committed and session not closed. This worked with flask client that used the same session accidentally but did not work with test client from Starlette. Also it caused "database locked" in sqlite / local tests. There are still two tests failing with different response - to be investigated.
Configuration menu - View commit details
-
Copy full SHA for f8658a5 - Browse repository at this point
Copy the full SHA f8658a5View commit details -
Fix error handling for api connexion test
Example fixes to fix tests testing error handling
Configuration menu - View commit details
-
Copy full SHA for 5ec0608 - Browse repository at this point
Copy the full SHA 5ec0608View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5555cd - Browse repository at this point
Copy the full SHA e5555cdView commit details -
Partially fix test_views_log.py
This PR partially fixes sessions and request parameter for test_views_log. Some tests are still failing but for different reasons - to be investigated.
Configuration menu - View commit details
-
Copy full SHA for 23fe4f7 - Browse repository at this point
Copy the full SHA 23fe4f7View commit details -
Fix views_custom_user_views tests
The problem in those tests was that the check in security manager was based on the assumption that the security manager was shared between the client and test flask application - because they were coming from the same flask app. But when we use starlette, the call goes to a new process started and the user is deleted in the database - so the shortcut of checking the security manager did not work. The change is that we are now checking if the user is deleted by calling /users/show (we need a new users READ permission for that) - this way we go to the database and check if the user was indeed deleted.
Configuration menu - View commit details
-
Copy full SHA for e79b455 - Browse repository at this point
Copy the full SHA e79b455View commit details -
Another session (implicit) not committed.
Configuration menu - View commit details
-
Copy full SHA for b82d56c - Browse repository at this point
Copy the full SHA b82d56cView commit details -
Another cases where sessions were not closed
Configuration menu - View commit details
-
Copy full SHA for e3d49db - Browse repository at this point
Copy the full SHA e3d49dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2297c6e - Browse repository at this point
Copy the full SHA 2297c6eView commit details -
fix: assert response text properly.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 430d04d - Browse repository at this point
Copy the full SHA 430d04dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbc8f4d - Browse repository at this point
Copy the full SHA fbc8f4dView commit details -
fix: adapt test in test_views_home.py
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d1be468 - Browse repository at this point
Copy the full SHA d1be468View commit details -
fix: adapt test in test_views_log.py
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7b06825 - Browse repository at this point
Copy the full SHA 7b06825View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d7ecba - Browse repository at this point
Copy the full SHA 5d7ecbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c84fed5 - Browse repository at this point
Copy the full SHA c84fed5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6095ad - Browse repository at this point
Copy the full SHA d6095adView commit details -
Configuration menu - View commit details
-
Copy full SHA for e470d46 - Browse repository at this point
Copy the full SHA e470d46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bb53c8 - Browse repository at this point
Copy the full SHA 1bb53c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb5fd68 - Browse repository at this point
Copy the full SHA bb5fd68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6692b5b - Browse repository at this point
Copy the full SHA 6692b5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5baeef9 - Browse repository at this point
Copy the full SHA 5baeef9View commit details -
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7e88355 - Browse repository at this point
Copy the full SHA 7e88355View commit details -
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 14fe94d - Browse repository at this point
Copy the full SHA 14fe94dView commit details -
Fix most test_task_instance_endpoint tests
There were two reasons for the test failed: * when the Job was added to task instance, the task instance was not merged in session, which means that commit did not store the added Job * some of the tests were expecting a call with specific session and they failed because session was different. Replacing the session with mock.ANY tells pytest that this parameter can be anything - we will have different session when when the call will be made with ASGI/Starlette
Configuration menu - View commit details
-
Copy full SHA for b9f65fb - Browse repository at this point
Copy the full SHA b9f65fbView commit details -
* added default value for limit parameter across the board. Connexion 3 does not like if the parameter had no default and we had not provided one - even if our custom decorated was adding it. Adding default value and updating our decorator to treat None as `default` fixed a number of problems where limits were not passed * swapped openapi specification for /datasets/{uri} and /dataset/events. Since `{uri}` was defined first, connection matched `events` with `{uri}` and chose parameter definitions from `{uri}` not events * few other smaller fixes
Configuration menu - View commit details
-
Copy full SHA for 54fb1b2 - Browse repository at this point
Copy the full SHA 54fb1b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aa2bb1 - Browse repository at this point
Copy the full SHA 8aa2bb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9147dc6 - Browse repository at this point
Copy the full SHA 9147dc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e28729 - Browse repository at this point
Copy the full SHA 0e28729View commit details -
* Using flask client helped.
Configuration menu - View commit details
-
Copy full SHA for 8f99a14 - Browse repository at this point
Copy the full SHA 8f99a14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9683da4 - Browse repository at this point
Copy the full SHA 9683da4View commit details -
Fix most test_log_enpoint tests
The problem here was that some sessions should be committed/closed but also in order to run it standalone we wanted to create log templates in the database - as it relied implcitly on log templates created by other tests. Also handling of the response without conteent type had to be fixed. Remaining issue is 401 vs 403 forbidden returned. To be looked at later.
Configuration menu - View commit details
-
Copy full SHA for 8f5df93 - Browse repository at this point
Copy the full SHA 8f5df93View commit details -
Configuration menu - View commit details
-
Copy full SHA for a16ff07 - Browse repository at this point
Copy the full SHA a16ff07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37c4d14 - Browse repository at this point
Copy the full SHA 37c4d14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8002f3b - Browse repository at this point
Copy the full SHA 8002f3bView commit details -
fix: adapt url encoded assertions.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 84dc0fa - Browse repository at this point
Copy the full SHA 84dc0faView commit details -
fix: adapt test views variables.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ec0d59e - Browse repository at this point
Copy the full SHA ec0d59eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 630d086 - Browse repository at this point
Copy the full SHA 630d086View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79a7757 - Browse repository at this point
Copy the full SHA 79a7757View commit details -
fix: used admin_flask_client to fix the filing tests.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c507cfe - Browse repository at this point
Copy the full SHA c507cfeView commit details -
fix: adapt test_views_task_norun.py
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1af7332 - Browse repository at this point
Copy the full SHA 1af7332View commit details -
fix: adapt test_views_rendered.py
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8421011 - Browse repository at this point
Copy the full SHA 8421011View commit details -
fix: adapt test_views_robots.py
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 16cd79e - Browse repository at this point
Copy the full SHA 16cd79eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf4c0b - Browse repository at this point
Copy the full SHA 3bf4c0bView commit details -
Switching to flask client rather than starlette, helped to fix the issue.
Configuration menu - View commit details
-
Copy full SHA for bce1322 - Browse repository at this point
Copy the full SHA bce1322View commit details -
The fix checks for the 429 HTTP exception that should be returned in this case. This also reverts commit a9aa27d.
Configuration menu - View commit details
-
Copy full SHA for a15678c - Browse repository at this point
Copy the full SHA a15678cView commit details -
Fix test_views_dagrun, test_views_tasks and test_views_log
Fixed by switching to use flask client for testing rather than starlette. Starlette client in this case has some side effects that are also impacting Sqlite's session being created in a different thread and deleted with close_all_sessions fixture.
Configuration menu - View commit details
-
Copy full SHA for d40ae4b - Browse repository at this point
Copy the full SHA d40ae4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34c0c70 - Browse repository at this point
Copy the full SHA 34c0c70View commit details -
Fixed by switching to use flask client for testing rather than starlette. Starlette client in this case has some side effects that are also impacting Sqlite's session being created in a different thread and deleted with close_all_sessions fixture.
Configuration menu - View commit details
-
Copy full SHA for 8a2c6ed - Browse repository at this point
Copy the full SHA 8a2c6edView commit details -
Fix test_process_form_invalid_extra_removed
Fixed by switching the test to flask_admin_client. Removes sqlalchemy session creted from a different thread.
Configuration menu - View commit details
-
Copy full SHA for 35225e2 - Browse repository at this point
Copy the full SHA 35225e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae320ca - Browse repository at this point
Copy the full SHA ae320caView commit details
Commits on Apr 15, 2024
-
Fix PROD image package installation in CI
When PROD image packages are installed in in CI, the local sources should not be present in the image, also constraints from sources shoudl replace the one downloaded from main.
Configuration menu - View commit details
-
Copy full SHA for 3dbbe4a - Browse repository at this point
Copy the full SHA 3dbbe4aView commit details