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

#2: Getting just the library generation in place to library-based ser… #22

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brynrhodes
Copy link
Member

…vices have the content

@@ -0,0 +1,80 @@
library CqlAggregateFunctionsTest

Choose a reason for hiding this comment

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

Hi Bryn--just a question: Do we need to actually check in these derived artifacts into the cql-tests-runner repo, or can these be generated on the fly by the runner as needed from the "canonical" test definition XML at runtime only?

I'm wondering checking this opens up the potential for accidental skew if one of these files is modified but the canonicial test definition isn't, or confusion for users on what's the canonical definition. That said if we have some kind of presubmit checking that can say if the cql-tests submodule commit is updated, then all of these files must be re-generated (e.g. run the tests to refresh this definition), that would help prevent this skew.

Either way, the real question I have is--what's the main benefit of including these? Perhaps the main benefit is for users to be able to inspect/debug the intermediate artifacts?

(note I don't feel strongly, just curious)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @suyashkumar , 100% agree, these shouldn't be committed, I only committed them because some of the engines wanted the XML/JSON serialization of the libraries, so this was a stopgap to support that

}
}

var body = 'library ' + testsName + os.EOL + os.EOL + body;

Choose a reason for hiding this comment

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

Suggested change
var body = 'library ' + testsName + os.EOL + os.EOL + body;
var body = 'library ' + testsName + ' version \'1.0.000\'' + os.EOL + os.EOL + body;

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

Successfully merging this pull request may close these issues.

None yet

3 participants