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

git hub action for the test #202

Merged
merged 18 commits into from
Apr 3, 2024

Conversation

Eyobyb
Copy link
Collaborator

@Eyobyb Eyobyb commented Oct 27, 2023

GitHub action for the testing. but in order for it to work, these properties
"SLACKSIGNINGSECRET ,SLACKOAUTHTOKEN ,SLACKVERIFICATIONTOKEN ,OPENAIKEY ,PINCONEID ,PINECONEENV ,SLACKPORT ,SERPAAPIKEY ,GITHUBOATHKEY ,TOKENLIMIT, TEMPRATURE " have to be added inside the repo secretes

python -m pip install --upgrade pip
python -m pip install poetry
cd src
pip install numpy==1.25.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't poetry install ensure that numpy is installed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the explicit install of numpy here. Running poetry install should install numpy for us.

echo "SERPER_API_KEY=${{ secrets.SERPAAPIKEY }}" >> .env
echo "GITHUB_AUTH_TOKEN=${{ secrets.GITHUBOATHKEY }}" >> .env
echo "DAILY_TOKEN_LIMIT=${{ secrets.TOKENLIMIT }}" >> .env
echo "TEMPRATURE=${{ secrets.TEMPRATURE }}" >> .env
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please rename TEMPRATURE to TEMPERATURE

echo "SLACK_OAUTH_TOKEN=${{ secrets.SLACKOAUTHTOKEN }}" >> .env
echo "SLACK_VERIFICATION_TOKEN=${{ secrets.SLACKVERIFICATIONTOKEN }}" >> .env
echo "OPENAI_API_KEY=${{ secrets.OPENAIKEY }}" >> .env
echo "PINECONE_INDEX=${{ secrets.PINCONEID }}" >> .env
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can find PINECONE_INDEX in the code but can't find secrets.PINECONEID defined anywhere. I suggest making them the same name, PINECONE_INDEX. (Assuming they represent the same value.)


- name: Set secrets in .env file
run: |
cd ./src
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest giving the variables in secrets exactly the same names as the variables we expect in .env. That will help us avoid typos and confusion.

For example, secrets. SLACK_SIGNING_SECRET instead of secrets.SLACKSIGNINGSECRET

python -m pip install --upgrade pip
python -m pip install poetry
cd src
pip install numpy==1.25.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the explicit install of numpy here. Running poetry install should install numpy for us.

@oshoma
Copy link
Collaborator

oshoma commented Nov 14, 2023

@Eyobyb and @20001LastOrder I'm noting here this PR is related to #224.

I suggest we hold off on implementing github actions until we have modified the tests so that, by default, tests don't call 3rd party APIs. After that we should be able to remove this PR's dependencies on environment variables for services like Slack, because the tests will no longer depend on such services.

What do you think?

@oshoma
Copy link
Collaborator

oshoma commented Jan 15, 2024

@amirfz , @Eyobyb , @20001LastOrder and I discussed this further today. We agreed that once we have all our tests running cleanly, here's what we want github actions to do for us:

  1. run tests in offline mode when a new PR is created
  2. run tests in offline mode when an open PR receives a new commit
  3. run tests in online mode when an open PR is about to be merged by a reviewer

Next steps:

  • determine whether item 3 can be automated and comment back here
  • make code changes to address my comments in the PR above
  • implement github actions for 1, 2 and 3

@20001LastOrder
Copy link
Collaborator

With this pr we merged, we can continue with this PR now.

@20001LastOrder 20001LastOrder force-pushed the feature/github-action branch 5 times, most recently from 6549259 to 1bd5ccd Compare April 3, 2024 04:55
@20001LastOrder
Copy link
Collaborator

20001LastOrder commented Apr 3, 2024

Sorry for making the commit history a bit messy. I guess we can squeeze all commits. Finally, we have all the ingredients for the offline tests. Should we go ahead and merge it so that all other pr can benefit from the automated tests? @oshoma

Copy link
Collaborator

@oshoma oshoma left a comment

Choose a reason for hiding this comment

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

lgtm - let's go!

@20001LastOrder 20001LastOrder merged commit cc0426e into Aggregate-Intellect:main Apr 3, 2024
1 check passed
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.

3 participants