Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Conversation

@Phillammon
Copy link

@Phillammon Phillammon commented Feb 4, 2021

What is the goal of this PR?

We synchronised client-python with the current master versions of protocol, behavioural tests, and grakn core server, to enable support for the new update query type, as well as adding support for related tests and automation.

What are the changes implemented in this PR?

  • Updated protocol version
  • Added update queries to querymanager
  • Added test steps for rules, relations, and update queries
  • Added insert, delete and match to behavioural tests.
  • Reformatted automation.yml

Closes #176

bazel test //test/behaviour/graql/language/define:checkstyle --test_output=streamed
bazel test //test/behaviour/graql/language/define:test-core --test_output=streamed --jobs=1
bazel test //test/behaviour/graql/language/undefine:checkstyle --test_output=streamed
bazel test //test/behaviour/graql/language/undefine:test-core --test_output=streamed --jobs=1
Copy link
Member

Choose a reason for hiding this comment

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

Why are these split up? We can simply write bazel test //test/behaviour/graql/language/define/... and the same for undefine. With --jobs=1 of course. Also there is no need for streamed test output - --test_output=errors should be enough.

(For the record, streamed test output results in job logs easily exceeding 10,000 lines)

Copy link
Author

Choose a reason for hiding this comment

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

Split up due to cluster tests not presently functioning. Otherwise addressed

return

#TODO: REMOVE THIS ONCE THE CRASHES ARE FIXED
time.sleep(1)
Copy link
Member

Choose a reason for hiding this comment

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

after_scenario is literally run after every single scenario. Given that each Graql language file has around 60-140 scenarios, and we run Core and Cluster versions of each feature, this will easily add 4 minutes to the overall runtime in CI.

We fixed a similar issue in Cluster by adding a 0.01 second sleep. I would propose we do the same here.

Suggested change
time.sleep(1)
time.sleep(0.01)

Copy link
Author

Choose a reason for hiding this comment

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

Modified.


def after_all(context: Context):
#TODO: REMOVE THIS ONCE THE CRASHES ARE FIXED
time.sleep(1)
Copy link
Member

Choose a reason for hiding this comment

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

See above, but since this is after_all it's less important.

@haikalpribadi haikalpribadi merged commit 663eec0 into typedb:master Feb 4, 2021
@haikalpribadi haikalpribadi modified the milestones: 2.0.0, 2.0.0-alpha-6 Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable BDD tests for all Graql Queries on Client Python

5 participants