Skip to content

[bugfix] Use the same FOAY0001 message for array lookup and array:get #3275 - #6750

Merged
duncdrum merged 1 commit into
eXist-db:developfrom
AzazelSensei:hotfix/array-oob-foay0001-3275
Sep 24, 2026
Merged

duncdrum merged 1 commit into
eXist-db:developfrom
AzazelSensei:hotfix/array-oob-foay0001-3275

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

Description:

$array($n) and array:get used different FOAY0001 descriptions for the same out-of-bounds index. They now share one bounds check, so the message is the same.

Reference:

#3275

Type of tests:

XQSuite in exist-core/src/test/xquery/arrays/arrays.xql (arr:lookup-and-get-oob-message). xquery.arrays.ArrayTests: 165 run, 0 failures.

Closes eXist-db#3275
$array($n) and array:get now share one bounds check so the error
description is the same.
@github-actions

Copy link
Copy Markdown
Contributor

📊 XQTS result comparison

Comparison of this run against develop.

Metric develop this run Change
🔴 Passed 28,847 (90.67%) 28,844 (90.66%) -3 (-0.01 pp)
🔴 Failures 1,567 1,570 +3
➖ Errors 134 134 0
➖ Skipped 1,267 1,267 0
🧪 Total tests 31,815 31,815 0

Relative to develop: 0 newly passing, 3 newly failing, 0 new errors, 0 newly skipped — counting only tests recorded in both runs whose outcome changed.

🔴 Newly failing tests (3)
  • Constr-inscope-2 (was passing)
  • Constr-inscope-1 (was passing)
  • Constr-inscope-4 (was passing)

Runtime: 344.0s (-86.17s vs develop).

@duncdrum duncdrum added the xquery issue is related to xquery implementation label Sep 23, 2026
@duncdrum duncdrum added this to v7.0.0 Sep 23, 2026
@duncdrum duncdrum moved this to In review in v7.0.0 Sep 23, 2026
@duncdrum duncdrum added this to the eXist-7.0.0 milestone Sep 23, 2026

@duncdrum duncdrum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @AzazelSensei . Much appreciated.

@duncdrum
duncdrum requested a review from a team September 23, 2026 06:21
@duncdrum

Copy link
Copy Markdown
Contributor

not sure what to make of the XQTS report, is our error message wrong? or is this just flake?

@line-o

line-o commented Sep 23, 2026

Copy link
Copy Markdown
Member

Those are all known to be flaky. There is a separate issue already open if I remember correctly

@line-o

line-o commented Sep 23, 2026

Copy link
Copy Markdown
Member

See #6752

@duncdrum
duncdrum merged commit 9704c80 into eXist-db:develop Sep 24, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in v7.0.0 Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

xquery issue is related to xquery implementation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants