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

Clean up GitHub Workflows #3059

Merged
merged 16 commits into from
Apr 24, 2023
Merged

Clean up GitHub Workflows #3059

merged 16 commits into from
Apr 24, 2023

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented Apr 23, 2023

Background

The workflows are a bit of a mess currently

Changes

Big clean-up, see diff: https://github.com/Significant-Gravitas/Auto-GPT/pull/3059/files

Notable:

Test Plan

Thorough review, and then we'll see if it works after merge.

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@Pwuts Pwuts requested a review from ntindle April 23, 2023 21:18
@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (f8dfedf) 49.65% compared to head (b84a574) 49.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3059      +/-   ##
==========================================
- Coverage   49.65%   49.63%   -0.02%     
==========================================
  Files          64       64              
  Lines        3021     3022       +1     
  Branches      505      505              
==========================================
  Hits         1500     1500              
- Misses       1401     1402       +1     
  Partials      120      120              
Impacted Files Coverage Δ
autogpt/commands/web_selenium.py 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/docker-ci.yml Outdated Show resolved Hide resolved
.github/workflows/docker-ci.yml Outdated Show resolved Hide resolved
.github/workflows/docker-release.yml Outdated Show resolved Hide resolved
@@ -34,7 +36,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: codelytv/pr-size-labeler@v1.7.0
- uses: codelytv/pr-size-labeler@v1
Copy link
Member

Choose a reason for hiding this comment

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

Undo this. v1 version has a bug. add a note to keep specifically v1.7.0

Copy link
Member Author

Choose a reason for hiding this comment

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

According to these comments, it's a matter of setting the right permissions and not having the wrong API URL in the config:
CodelyTV/pr-size-labeler#27 (comment)
CodelyTV/pr-size-labeler#40 (comment)
CodelyTV/pr-size-labeler#40 (comment)

The workflow as it is in this PR should work.

.github/workflows/pr-label.yml Outdated Show resolved Hide resolved
.github/workflows/pr-label.yml Show resolved Hide resolved
.github/workflows/pr-label.yml Show resolved Hide resolved
@Pwuts Pwuts linked an issue Apr 23, 2023 that may be closed by this pull request
@ntindle ntindle dismissed their stale review April 23, 2023 23:04

Out of date

@Pwuts Pwuts mentioned this pull request Apr 23, 2023
5 tasks
ntindle
ntindle previously approved these changes Apr 23, 2023
richbeales
richbeales previously approved these changes Apr 24, 2023
@Pwuts Pwuts dismissed stale reviews from richbeales and ntindle via 6bdebad April 24, 2023 13:37
@Pwuts Pwuts force-pushed the github-workflow-cleanup branch 3 times, most recently from 4f8e80c to b7b7914 Compare April 24, 2023 14:55
@Pwuts Pwuts linked an issue Apr 24, 2023 that may be closed by this pull request
@Pwuts Pwuts self-assigned this Apr 24, 2023
@p-i- p-i- merged commit ffdc652 into master Apr 24, 2023
@p-i- p-i- deleted the github-workflow-cleanup branch April 24, 2023 17:03
misterak8 added a commit to misterak8/Auto-GPT that referenced this pull request Apr 26, 2023
* Clean up GitHub Workflows (Significant-Gravitas#3059)

* initial cleanup of github workflows

* only run pr-label workflow on push to master

* move docker ci/release summaries to scripts

* add XS label for PR's under 2 lines

* draft test job for Docker CI

* fix & activate Docker CI test job

* add debug step to docker CI

* fix Docker CI test container env

* Docker CI build matrix

* fixup build summaries

* fix pipes in summary

* optimize Dockerfile for layer caching

* more markdown escaping

* add gha cache scopes

* add Docker CI cache clean workflow

* More robust null byte checking

* Adjust test_json_parser file (Significant-Gravitas#1935)

Co-authored-by: Reinier van der Leer <[email protected]>

* Add indirection layer between cli and application start

* Agent and agent manager tests (Significant-Gravitas#3116)

* Update Python version and benchmark file in benchmark.yml

* Refactor main function and imports in cli.py

* Update import statement in ai_config.py

* Add set_temperature and set_memory_backend methods in config.py

* Remove unused import in prompt.py

* Add goal oriented tasks workflow

* Added agent_utils to create agent

* added pytest and vcrpy

* added write file cassette

* created goal oriented task write file with cassettes to not pay openai tokens

* solve conflicts

* add ability set azure because github workflow needs it off

* solve conflicts in cli.py

* black because linter fails

* solve conflict

* setup github action to v3

Signed-off-by: Merwane Hamadi <[email protected]>

* fix conflicts

Signed-off-by: Merwane Hamadi <[email protected]>

* Plugins: debug line always printed in plugin load

* add decorator to tests

Signed-off-by: Merwane Hamadi <[email protected]>

* move decorator higher up

Signed-off-by: Merwane Hamadi <[email protected]>

* init

* more tests

* passing tests

* skip gitbranch decorator on ci

* decorator skiponci

* black

* Update tests/utils.py decorator of skipping ci

Co-authored-by: Nicholas Tindle <[email protected]>

* black

* I oopsed the name

* black

* finally

* simple tests for agent and manager

* ísort

---------

Signed-off-by: Merwane Hamadi <[email protected]>
Co-authored-by: Merwane Hamadi <[email protected]>
Co-authored-by: Merwane Hamadi <[email protected]>
Co-authored-by: Richard Beales <[email protected]>
Co-authored-by: Nicholas Tindle <[email protected]>
Co-authored-by: BillSchumacher <[email protected]>
Co-authored-by: Nicholas Tindle <[email protected]>

* anontation fix (Significant-Gravitas#3018)

* anontation fix

* fix param name and type

---------

Co-authored-by: Richard Beales <[email protected]>

* Hotfix/global agent manager workaround (Significant-Gravitas#3157)

* Add indirection layer to entry point

* Get around singleton pattern for AgentManager to fix tests

* Remove dead permanent memory module (Significant-Gravitas#3145)

* Remove dead permanent memory module

* Delete sqlite db that snuck in

* Refactor/move singleton out of config module (Significant-Gravitas#3161)

* Add option to install plugin dependencies (Significant-Gravitas#3068)

Co-authored-by: Nicholas Tindle <[email protected]>

* Re-add install-plugin-deps to CLI (Significant-Gravitas#3170)

* Update ci.yml (Significant-Gravitas#3179)

* Update bulletin to warn about deprication (Significant-Gravitas#3181)

* Ensure Fore.RED is followed by Fore.RESET (Significant-Gravitas#3182)

This properly resets the terminal, ensuring that the red text is red and
the normal text remains unaffected.

Co-authored-by: Richard Beales <[email protected]>

* Add a little more descriptive installation instruction (Significant-Gravitas#3180)

* add Dev Container installation instruction to installation.md

* add Dev Container installation instruction to installation.md

* Update installation.md

---------

Co-authored-by: Richard Beales <[email protected]>

* Update installation.md (Significant-Gravitas#3166)

* Refactor/decouple logger from global configuration (Significant-Gravitas#3171)

* Decouple logging from the global configuration

* Configure logging first

* Clean up global voice engine creation

* Remove class vars from logger

* Remove duplicate implementation of

---------

Co-authored-by: Richard Beales <[email protected]>

* docs fix to image generation (Significant-Gravitas#3186)

* Update README.md

* Feature: Added Self Feedback (Significant-Gravitas#3013)

* Feature: Added Self Feedback

* minor fix: complied to flake8

* Add: Self Feedback To Usage.md

* Add: role/goal allignment

* Added: warning to usage.md

* fix: Formatted with black

---------

Co-authored-by: Richard Beales <[email protected]>

* Update README.md

* this changes it so the file from config is used, rather than a hardcoded name that might not exist (Significant-Gravitas#3189)

* Test `Agent.create_agent_feedback` (Significant-Gravitas#3209)

* remove plugin notice from CONTRIBUTING.md (Significant-Gravitas#3227)

* Extract OpenAI API retry handler and unify ADA embeddings calls. (Significant-Gravitas#3191)

* Extract retry logic, unify embedding functions

* Add some docstrings

* Remove embedding creation from API manager

* Add test suite for retry handler

* Make api manager fixture

* Fix typing

* Streamline tests

* Use explicit API keys when querying openai rather than import time manipulation of the package attributes (Significant-Gravitas#3241)

* Fix readme centering (Significant-Gravitas#3243)

* Remove import time loading of config from llm_utils (Significant-Gravitas#3245)

* adding probably erroneously removed return value from execut_shell, giving 'None' in return always otherise - not ideal (Significant-Gravitas#3212)

Co-authored-by: James Collins <[email protected]>

* Load .env in package init (Significant-Gravitas#3251)

* Fix PR size autolabeler message (Significant-Gravitas#3194)

* Fix `get_ada_embedding` return type (Significant-Gravitas#3263)

---------

Signed-off-by: Merwane Hamadi <[email protected]>
Co-authored-by: Reinier van der Leer <[email protected]>
Co-authored-by: James Collins <[email protected]>
Co-authored-by: YOUNESS ZEMZGUI <[email protected]>
Co-authored-by: Nicholas Tindle <[email protected]>
Co-authored-by: Media <[email protected]>
Co-authored-by: Merwane Hamadi <[email protected]>
Co-authored-by: Merwane Hamadi <[email protected]>
Co-authored-by: Richard Beales <[email protected]>
Co-authored-by: BillSchumacher <[email protected]>
Co-authored-by: Nicholas Tindle <[email protected]>
Co-authored-by: Lei Zhang <[email protected]>
Co-authored-by: Daniel Chen <[email protected]>
Co-authored-by: Deso <[email protected]>
Co-authored-by: Lawrence Neal <[email protected]>
Co-authored-by: Duong HD <[email protected]>
Co-authored-by: ✔️ITtechtor <[email protected]>
Co-authored-by: Toran Bruce Richards <[email protected]>
Co-authored-by: AbTrax <[email protected]>
Co-authored-by: Peter Petermann <[email protected]>
Co-authored-by: Peter Svensson <[email protected]>
Co-authored-by: Robin Richtsfeld <[email protected]>
misterak8 added a commit to misterak8/Auto-GPT that referenced this pull request Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Speed op Docker CI Fix Docker CI to also test running the image
4 participants