Commit graph

80 commits

Author SHA1 Message Date
Krish Dholakia
4900f11570 Updated config.yml 2023-10-09 13:30:51 -07:00
Krrish Dholakia
0fb95faa50 ci(config.yml): run all tests on circle ci 2023-10-07 18:28:25 -07:00
Krrish Dholakia
28a2e31ede ci(test_logging): running just this test on circle ci 2023-10-07 18:23:54 -07:00
Krrish Dholakia
9f118bb5db ci(test_logging): debugging circle ci 2023-10-07 18:19:55 -07:00
Krrish Dholakia
713d998680 aider: Added print working directory command before running pytest in CircleCI config.
# Aider chat conversation:

USER: what directory is pytest in?

ASSISTANT: The `pytest` command is typically installed in the `bin` directory of your Python environment. If you're using a virtual environment, it would be in the `bin` directory of that environment.

However, the location of the `pytest` command doesn't affect how
^C KeyboardInterrupt

USER: i mean the pytest command in the config.yml

ASSISTANT: The pytest command in the `.circleci/config.yml` file is being run in the `~/project` directory. This is specified by the `working_directory` key in the `local_testing` job.

When the `python -m pytest -vv test_logging.py --junitxml=test-results/junit.xml` command is run, it's being run in the `~/project` directory.

If `test_logging.py` is not in the `~/project` directory, you would need to provide the relative path to it from `~/project`. For example, if it's in a `tests` directory under `~/project`, you would use `tests/test_logging.py`.

USER: can you print the pwd before running the pytest?  # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m

ASSISTANT: Sure, you can add a command to print the current working directory (pwd) before running the pytest command. Here's how you can do it:

```yaml
.circleci/config.yml
<<<<<<< HEAD
      # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m
=======
      # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            pwd
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m
>>>>>>> updated
```

This change will print the current working directory before running the pytest command.
2023-10-07 18:14:35 -07:00
Krish Dholakia
a871d85696 Updated config.yml 2023-10-07 18:06:07 -07:00
Krrish Dholakia
3a15425288 aider: Modified CircleCI configuration to run pytest only on test_logging.py
# Aider chat conversation:

USER: what does `python -m pytest -vv --junitxml=test-results/junit.xml` do?

ASSISTANT: This command runs the pytest testing tool for Python in a specific way. Here's a breakdown of what each part does:

- `python -m pytest`: This runs pytest as a module using the Python interpreter. Pytest is a testing framework that allows you to easily create small, simple tests, as well as complex, functional testing for applications and libraries.

- `-vv`: This is an option for pytest that increases verbosity. Pytest without any `-v` is silent except for failures. One `-v` makes it print the test function names, and `-vv` also prints the individual test cases within those functions.

- `--junitxml=test-results/junit.xml`: This is an option for pytest that tells it to generate a test report in the form of an XML file in the JUnit format. This is useful for integrating the test results into tools that understand JUnit test reports, like many continuous integration servers. The `test-results/junit.xml` part specifies the location and name of the report file to generate.

So, in summary, this command runs all the pytest tests in the current directory and its subdirectories, prints detailed output about what tests are being run and their results, and generates a JUnit-format XML report of the test results.

USER: `.circleci/config.yml`

ASSISTANT: I'm sorry, but your request is not clear. Could you please provide more details about what you want to do with the `.circleci/config.yml` file? Are there any specific changes you want to make or any issues you're facing with it?

USER: how do i modify the pytest to only run test_logging.py

ASSISTANT: To modify the pytest command to only run `test_logging.py`, you need to specify the file name in the command. Here is how you can do it:

```yaml
.circleci/config.yml
<<<<<<< HEAD
      - run:
          name: Run tests
          command: |
            python -m pytest -vv --junitxml=test-results/junit.xml
          no_output_timeout: 30m
=======
      - run:
          name: Run tests
          command: |
            python -m pytest -vv test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m
>>>>>>> updated
```

This change will make pytest only run the tests in the `test_logging.py` file. If `test_logging.py` is not in the root directory, you should provide the relative path to it from the root directory. For example, if it's in a `tests` directory, you would use `tests/test_logging.py`.
2023-10-07 17:58:07 -07:00
Krish Dholakia
c1284f1d20 Updated config.yml 2023-10-06 06:33:43 -07:00
Krish Dholakia
3612386603 Updated config.yml 2023-10-06 06:32:33 -07:00
Krrish Dholakia
214ab68510 update circle requirements 2023-09-30 18:24:58 -07:00
Krrish Dholakia
296a977c8e add appdirs to circleci requirements 2023-09-30 18:17:04 -07:00
coconut49
4f67261c3c
Update boto3 dependency to version 1.28.57, refactor bedrock client initialization and remove troubleshooting guide from documentation. 2023-09-30 12:31:26 +08:00
ishaan-jaff
f52be153e0 add google gen ai to circle ci 2023-09-26 11:45:21 -07:00
Krish Dholakia
ff98af9b0c Updated config.yml 2023-09-21 14:30:20 -07:00
ishaan-jaff
6c937e15a9 bump version + fix ci/cd test 2023-09-19 13:50:10 -07:00
ishaan-jaff
04e52d2443 parallel testing 2023-09-19 11:27:38 -07:00
ishaan-jaff
451ce6eeb3 make test more verbose 2023-09-18 12:20:52 -07:00
ishaan-jaff
98333b9ab9 fix ci yml 2023-09-14 14:20:48 -07:00
ishaan-jaff
2c0694bb2f fix config.yml for bedrock 2023-09-14 14:14:31 -07:00
ishaan-jaff
7a7e39587a cache pip deps 2023-09-11 08:27:09 -07:00
ishaan-jaff
19d26b944e parallelism tests 2023-09-11 08:21:07 -07:00
ishaan-jaff
1909444285 fix redis cache testing and add new test for azure 2023-09-11 08:01:02 -07:00
Krish Dholakia
3da6e68166 Updated config.yml 2023-09-11 08:01:01 -07:00
Krish Dholakia
37f9ff1a9c Updated config.yml 2023-09-09 22:18:08 -07:00
Krish Dholakia
79a26225b9 Updated config.yml 2023-09-09 22:16:45 -07:00
ishaan-jaff
a611409e0f async streaming generator 2023-09-07 13:53:40 -07:00
ishaan-jaff
99359b6464 fix testing errors 2023-09-05 15:33:49 -07:00
Krish Dholakia
1c2989043f Updated config.yml 2023-09-05 14:55:13 -07:00
Krish Dholakia
343ff81f27 Updated config.yml 2023-09-05 14:45:56 -07:00
ishaan-jaff
38b0772194 add boto3 for CI/CD testing pipeline 2023-09-04 12:11:27 -07:00
ishaan-jaff
53018e4b23 linting fix 2023-08-28 13:14:58 -07:00
ishaan-jaff
77436cbcf4 add litellm caching 2023-08-26 16:08:48 -07:00
Krrish Dholakia
960396b31c adding baseten to circle ci 2023-08-24 08:36:14 -07:00
ishaan-jaff
bf5e724a7c fix circle ci 2023-08-22 16:24:08 -07:00
ishaan-jaff
beaa33ba12 linting 4 2023-08-18 12:28:43 -07:00
ishaan-jaff
13cfac857e test#3 linting 2023-08-18 12:24:41 -07:00
ishaan-jaff
973a7c2676 lint test 2 2023-08-18 12:20:24 -07:00
ishaan-jaff
76979b6380 fix type checking 2023-08-18 12:17:28 -07:00
ishaan-jaff
33c25b7d7c config.yml fix 2023-08-18 12:11:49 -07:00
ishaan-jaff
1310e3b32f with failing linting 2023-08-18 12:10:54 -07:00
ishaan-jaff
a032b29ba5 fix ci/cd 2023-08-17 13:34:39 -07:00
ishaan-jaff
e5f9a2be53 fix docs + circle ci 2023-08-17 13:31:47 -07:00
ishaan-jaff
5d0f9fd749 new v litellm for render 2023-08-11 14:12:59 -07:00
ishaan-jaff
4f403d06d1 ignore changes to docs/readme/cookbook for builds 2023-08-11 13:18:54 -07:00
ishaan-jaff
8e7479a1a1 temp test chromadb 2023-08-10 15:22:38 -07:00
ishaan-jaff
e9c2f3b55d use latest python build 2023-08-10 15:09:06 -07:00
ishaan-jaff
5c92a597e5 debug cache circle ci 2023-08-10 15:03:33 -07:00
ishaan-jaff
d80f847fde add caching with chromDB - not a dependency 2023-08-10 13:21:06 -07:00
ishaan-jaff
6d57d3f1dd fix circle ci test 2023-08-08 11:32:31 -07:00
ishaan-jaff
3edcf8c7d8 remove deps datalib, pytest, tenacity, infisical 2023-08-08 10:58:43 -07:00