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

feat: CI runtime improvements #3893

Closed
wants to merge 24 commits into from

Conversation

gabrielmbmb
Copy link
Member

Description

WIP

Closes #<issue_number>

Type of change

(Please delete options that are not relevant. Remember to title the PR according to the type of change)

  • New feature (non-breaking change which adds functionality)
  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)

How Has This Been Tested

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Test A
  • Test B

Checklist

  • I added relevant documentation
  • I followed the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch from 10d7bc3 to 8805151 Compare October 9, 2023 09:42
@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch from 8805151 to 4e818ba Compare October 9, 2023 09:44
@gabrielmbmb gabrielmbmb changed the base branch from develop to main October 9, 2023 14:58
@gabrielmbmb gabrielmbmb changed the base branch from main to develop October 9, 2023 14:59
@gabrielmbmb gabrielmbmb changed the base branch from develop to main October 9, 2023 15:19
@gabrielmbmb gabrielmbmb changed the base branch from main to develop October 9, 2023 15:20
@gabrielmbmb gabrielmbmb closed this Oct 9, 2023
@gabrielmbmb gabrielmbmb reopened this Oct 9, 2023
@github-actions
Copy link

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-3893-ki24f765kq-no.a.run.app

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

see 269 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch from bde4c74 to d87055f Compare November 6, 2023 11:09
@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch 4 times, most recently from 5e672a4 to 163e0fd Compare November 6, 2023 11:41
@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch 9 times, most recently from 8713b45 to 80c7663 Compare November 6, 2023 12:35
@gabrielmbmb gabrielmbmb force-pushed the feature/ci-runtime-improvements branch from 80c7663 to 1fdecd0 Compare November 6, 2023 14:03
Copy link
Member

@davidberenstein1957 davidberenstein1957 left a comment

Choose a reason for hiding this comment

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

I think we can also add more granularity when only building changing tests for example. Like here: https://github.com/argilla-io/argilla/pulls

if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install -e .[server,postgresql,tests,integrations,listeners]

Choose a reason for hiding this comment

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

Isn't there a command to install with --all-extras? this might lead to unwanted side effects w.r.t. changes we make in the extras.

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4

Choose a reason for hiding this comment

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

maybe it is a good moment to also start testing different python versions?

platforms: linux/arm64
secrets: inherit

build_quickstart_docker_image_linux_arm64:

Choose a reason for hiding this comment

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

can't we combine this using a template combined with build_quickstart_docker_image_linux_amd64?

- name: Set huggingface hub credentials
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/releases')
env:
HF_HUB_ACCESS_TOKEN: ${{ secrets.HF_HUB_ACCESS_TOKEN }}
run: echo "Enable HF access token"

- name: Run tests 📈
env:
ARGILLA_ENABLE_TELEMETRY: 0

Choose a reason for hiding this comment

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

I noticed we are not passing HF_HUB_ACCESS_TOKEN here but I know we do have some tests for this. Maybe it is a good moment to review this?

@frascuchon frascuchon closed this May 6, 2024
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.

None yet

3 participants