Three test failures on rel_3_12 and main

Bug #2043437 reported by Jane Sandberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Critical
Unassigned

Bug Description

1. nightwatch/src/staff/catalog/holdingsView.spec.ts -- this is failing because the holdings view tab no longer loads in the catalog record view. Good test, it caught a problem!
2. nightwatch/src/staff/admin/local/course/course-list.spec.ts -- this is failing because there are now more courses in the concerto data set, so the test's data gets pushed to the next page of the grid and it doesn't see it on the screen. Bad test, it is failing when there isn't actually a problem. We could make it more robust by having it request, say, 50 rows/page in this grid instead of the default 10.
3. perl live test 35-multiclass-search.t -- I haven't looked into why this is failing

All tests were passing yesterday, November 12.

I am marking this as critical, since cataloging in Evergreen would be pretty much impossible without the holdings view.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I'll take a look at the Perl search test.

Revision history for this message
Jason Stephenson (jstephenson) wrote :
Download full text (7.3 KiB)

On the Perl test failure, The storage query below, triggers the following error:

ERROR: syntax error
CONTEXT: PL/pgSQL function query_int_wrapper(integer[],text) line 3 at RETURN

WITH w AS (

WITH x55a483de3858_keyword_xq AS (SELECT
      ((to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_39864$dragons$_39864$)),E'(?:\\s+|:)','&','g'),'&|') || ')', '()'), '')) || to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_39864$dragons$_39864$)),E'(?:\\s+|:)','&','g'),'&|') || ')', '()'), '')))) AS tsq,
      (to_tsquery('simple', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_39864$dragons$_39864$)),E'(?:\\s+|:)','&','g'),'&|') || ')', '()'), '')) || to_tsquery('english_nostop', COALESCE(NULLIF( '(' || btrim(regexp_replace(search_normalize(split_date_range($_39864$dragons$_39864$)),E'(?:\\s+|:)','&','g'),'&|') || ')', '()'), ''))) AS tsq_rank ),
 x55a483de3858_keyword AS (
          SELECT fe.*, fe_weight.weight, x55a483de3858_keyword_xq.tsq, x55a483de3858_keyword_xq.tsq_rank /* search */
            FROM metabib.keyword_field_entry AS fe
              JOIN config.metabib_field AS fe_weight ON (fe_weight.id = fe.field)
              JOIN x55a483de3858_keyword_xq ON (fe.index_vector @@ x55a483de3858_keyword_xq.tsq)
                UNION ALL
          SELECT fe.id, fe.source, fe.field, fe.value, fe.index_vector, fe_weight.weight, x55a483de3858_keyword_xq.tsq, x55a483de3858_keyword_xq.tsq_rank /* virtual field addition */
            FROM metabib.keyword_field_entry AS fe
              JOIN config.metabib_field_virtual_map AS fe_weight ON (fe_weight.virtual = 45 AND fe_weight.real IN (39,41,42,46,47,48,50) AND fe_weight.real = fe.field)
              JOIN x55a483de3858_keyword_xq ON (fe.index_vector @@ x55a483de3858_keyword_xq.tsq)
                UNION ALL
          SELECT fe.id, fe.source, fe.field, fe.value, fe.index_vector, fe_weight.weight, x55a483de3858_keyword_xq.tsq, x55a483de3858_keyword_xq.tsq_rank /* virtual field addition */
            FROM metabib.subject_field_entry AS fe
              JOIN config.metabib_field_virtual_map AS fe_weight ON (fe_weight.virtual = 45 AND fe_weight.real IN (16) AND fe_weight.real = fe.field)
              JOIN x55a483de3858_keyword_xq ON (fe.index_vector @@ x55a483de3858_keyword_xq.tsq)
                UNION ALL
          SELECT fe.id, fe.source, fe.field, fe.value, fe.index_vector, fe_weight.weight, x55a483de3858_keyword_xq.tsq, x55a483de3858_keyword_xq.tsq_rank /* virtual field addition */
            FROM metabib.title_field_entry AS fe
              JOIN config.metabib_field_virtual_map AS fe_weight ON (fe_weight.virtual = 45 AND fe_weight.real IN (6,53) AND fe_weight.real = fe.field)
              JOIN x55a483de3858_keyword_xq ON (fe.index_vector @@ x55a483de3858_keyword_xq.tsq)
                UNION ALL
          SELECT fe.id, fe.source, fe.field, fe.value, fe.index_vector, fe_weight.weight, x55a483de3858_keyword_xq.tsq, x55a483de3858_keyword_xq.tsq_rank /* virtual field addition */
            FROM metabib.author_field_entry AS fe
           ...

Read more...

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Per Jason's recommendation, I'm starting a collab branch. This includes the fix to #1.

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/sandbergja/lp2043437-3.12-test-failures

Fixes to #2 and #3 very welcome!

Revision history for this message
Jane Sandberg (sandbergja) wrote (last edit ):

I pushed patches for #2 and #3 to https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/sandbergja/lp2043437-3.12-test-failures.

The fix for #3 is just reverting commit 828a6f.

To test, install Evergreen with this patch, and:
1. Run the e2e tests, and confirm that they pass
2. Run the perl live tests, and confirm that they pass
3. Run a bunch of searches with or without the course materials filter. Make sure that they are all performant and return the expected results.
4. Open a bib record, and confirm that you can open the Holdings View page.

tags: added: pullrequest
Galen Charlton (gmc)
Changed in evergreen:
assignee: nobody → Galen Charlton (gmc)
milestone: none → 3.12-beta
status: New → Confirmed
Revision history for this message
Galen Charlton (gmc) wrote :

Tested and pushed to main and rel_3_12. Thanks, Jane!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.