Seth Nickell
Seth Nickell
Tests now start to run, but ALL fail with errors exactly like: ``` ERROR["test_deleted_user_cannot_sign_in", "SessionsControllerTest", 0.0067719994112849236] test_deleted_user_cannot_sign_in#SessionsControllerTest (0.01s) Minitest::UnexpectedError: NoMethodError: undefined method `fetch' for nil test/testing/setup_all_and_teardown_all.rb:36:in `run' ``` Repros with:...
A bunch of LevelsHelperTest based tests failing with this backtrace: ``` ERROR["test_app_options_sets_level_requires_channel_to_true_if_level_is_channel_backed", "LevelsHelperTest", 1.076027000322938] test_app_options_sets_level_requires_channel_to_true_if_level_is_channel_backed#LevelsHelperTest (1.08s) Minitest::UnexpectedError: ArgumentError: unknown keyword: :database app/helpers/read_replica_helper.rb:21:in `connected_to' app/models/channel_token.rb:47:in `find_or_create_channel_token' app/helpers/levels_helper.rb:99:in `get_channel_for' app/helpers/levels_helper.rb:213:in `app_options' test/helpers/levels_helper_test.rb:308:in...
# WARN: Multiple ActiveRecord connections are in use Still getting lots of warnings: ``` WARN: Multiple ActiveRecord connections are in use, this can make transactional tests fail in weird ways....
# alias_attribute doesn't work for associations anymore ``` ERROR["test_not_logged-in_user_calling_get_show_by_keys_should_receive_success_to_", "ProgrammingClassesControllerTest::ProgrammingClassesControllerAccessTests", 202.97481100074947] test_not_logged-in_user_calling_get_show_by_keys_should_receive_success_to_#ProgrammingClassesControllerTest::ProgrammingClassesControllerAccessTests (202.97s) Minitest::UnexpectedError: NameError: undefined local variable or method `categories' for an instance of ProgrammingEnvironment app/models/programming_environment.rb:146:in `block in categories_for_navigation'...
@cnbrenci wanna test if this patch makes `yarn start` faster on WSL? One thing to consider in testing is that the disk cache makes a BIG difference on Mac. If...
Well that is certainly not promising 😅
Wait and it got slower on the second runs? Sooooo confuzzled 🤪. Would you time on this branch and staging? 1. `HOT=0 yarn start` 2. A rebuild with `yarn start`...
# Cookies ## Ruby - [cdo.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/lib/cdo.rb) `def canonical_hostname` - [request.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/lib/cdo/rack/request.rb/#L74-L85) `def shared_cookie_domain` - [cookie_helpers.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/lib/cdo/cookie_helpers.rb/#L1-L10) `def environment_specific_cookie_name()` - [steps.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/dashboard/test/ui/features/step_definitions/steps.rb/#L1058-L1061) `params[:domain] = '.code.org' # top level domain cookie` - [dashboard_helpers.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/dashboard/test/ui/features/support/dashboard_helpers.rb/#L32) `# sets...
## OneTrust - [application.html.haml](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/dashboard/app/views/layouts/application.html.haml) - [onetrust_cookie_scripts.haml](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/shared/haml/onetrust_cookie_scripts.haml/#L20) - [test_onetrust_cookie_scripts.rb](https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/shared/test/haml/test_onetrust_cookie_scripts.rb) ### `pegasus/sites.v3/____/themes/____.haml`: sets up one trust cookie domain - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/code.org/themes/default.haml/#L4-L5 - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/code.org/themes/responsive_full_width.haml/#L8-L9 - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/code.org/themes/responsive_wide.haml/#L4 - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/code.org/themes/responsive.haml - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/hourofcode.com/themes/default.haml/#L4 - https://github.com/code-dot-org/code-dot-org/blob/3fb8b13c8a4e5aa07958c1909a12f6665046b334/pegasus/sites.v3/hourofcode.com/themes/how_to_guide.haml/#L4
# Domains of interest - [x] localhost-studio.code.org => studio.code.org.localhost - [x] localhost.code.org => code.org.localhost - [ ] localhost.codeprojects.org => codeprojects.org.localhost - [ ] localhost.hourofcode.com => hourofcode.com.localhost - **Any domains missing**?...