How to run driver tests for Apache Age

mohayu22

mohayu22

Posted on May 3, 2023

How to run driver tests for Apache Age

When you make some changes to Apache AGE code, it's important to check if those changes are causing errors. You can do this using AGE's installcheck command, which runs regression tests.

However, AGE also has four drivers (Go, NodeJS, Python, and JDBC) with their individual tests, and testing them can be a tedious process. You need to go to each driver's folder, find the README.md file, follow the instructions, download dependencies, and run the appropriate commands.

Fortunately, there's an easier way to test these drivers using Github Workflows.

Follow these steps:

  • Fork the Apache Age repository to your Github account.
  • Make any changes you want and push them to a separate branch of your fork.
  • Change the '.yml' files in .github/workflows folder. Each file has the following code:
 on:
 push:
 branches: ["master", "PG11"]
 pull_request:
 branches: ["master", "PG11"]
Enter fullscreen mode Exit fullscreen mode

Remove "PG11" from these lines.

  • Submit a pull request to the master branch of your fork.
  • You can now run all the tests by going to the Checks tab on your Github account.
  • After verifying that all the results are accurate, remove the commits you made in the .github/workflows folder. Alternatively, delete the pull request and branch, create a new branch and push the changes but do not modify the .github/workflows files this time.

By following these steps, you can easily test the AGE drivers and ensure that your changes don't cause any errors. This method saves you time and effort compared to manually testing each driver.

💖 💪 🙅 🚩
mohayu22
mohayu22

Posted on May 3, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related