Skip to content
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

validation-overrides.xml with an allow tag that has an until value of greater than 30 days fails to deploy without an error message #32921

Open
jackh-ncl opened this issue Nov 21, 2024 · 0 comments
Assignees
Milestone

Comments

@jackh-ncl
Copy link

jackh-ncl commented Nov 21, 2024

Describe the bug
I tried to add the following, without first reading the documentation outlined here which describes that until can be at most 30 days in the future:

<validation-overrides>
    <allow until="2024-11-30">field-type-change</allow>
    <allow until="2024-01-30">indexing-change</allow>
</validation-overrides>

I then get the following 400 response without an error message:

$ vespa prepare vespa-config

Uploading application package... failed
Error: invalid application package (status 400)
Invalid application:
indexing-change:
        Document type 'news':
Field 'publisher' changed:
indexing script:
'{ input publisher | tokenize normalize stem:"BEST" | index publisher | summary publisher; }' -> '{ input publisher | for_each { tokenize normalize stem:"BEST" } | index publisher | summary publisher; }'
        Document type 'internal_docs':
Field 'publisher' changed:
indexing script:
'{ input publisher | tokenize normalize stem:"BEST" | index publisher | summary publisher; }' -> '{ input publisher | for_each { tokenize normalize stem:"BEST" } | index publisher | summary publisher; }'
        Document type 'reports':
Field 'publisher' changed:
indexing script:
'{ input publisher | tokenize normalize stem:"BEST" | index publisher | summary publisher; }' -> '{ input publisher | for_each { tokenize normalize stem:"BEST" } | index publisher | summary publisher; }'
        Document type 'intelligence_fusion':
Field 'publisher' changed:
indexing script:
'{ input publisher | tokenize normalize stem:"BEST" | index publisher | summary publisher; }' -> '{ input publisher | for_each { tokenize normalize stem:"BEST" } | index publisher | summary publisher; }'
To allow this add <allow until='yyyy-mm-dd'>indexing-change</allow> to validation-overrides.xml, see https://docs.vespa.ai/en/reference/validation-overrides.html

Once I fix the until date, I can successfully prepare the deployment.

To Reproduce
Steps to reproduce the behavior:

  1. Use the validation-overrides.xml from above
  2. Run vespa prepare
  3. See error

Expected behavior
A useful error message that points out the validation failure of the until date would aid with debugging.

Environment (please complete the following information):

  • OS: OS X
  • Infrastructure: local docker-compose

Vespa version
Image: vespaengine/vespa:8.444.18
Vespa CLI: 8.441.21

Additional context
Add any other context about the problem here.

@hmusum hmusum added this to the later milestone Nov 27, 2024
@hmusum hmusum self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants