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

fix: upsert not working because sqlite3 version #3425

Merged
merged 16 commits into from
Jul 18, 2023

Conversation

gabrielmbmb
Copy link
Member

@gabrielmbmb gabrielmbmb commented Jul 17, 2023

Description

This PRs updates the Dockerfile parent image from python:3.9.16-slim to python:3.10.12-slim, which comes with sqlite3==3.40.1 installed.

In addition, the quickstart.Dockerfile has been updated to:

This way, the Dockerfile and quickstart.Dockerfile are aligned using the same system dependencies, python dependencies and Python version.

Finally, a new workflow has been added build-push-docker.yml which builds and push the Docker image and has the version of the build docker image as output. It's been needed to add this, as for building the argilla/argilla-quickstart we need to pass the build argument ARGILLA_VERSION with the desired value of the argilla/argilla-server.

Closes #3423

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (change adding some improvement to an existing functionality)

How Has This Been Tested

  • pre.argilla.io
  • HF Space
  • HF Space with 1.12.0 upgrade to 1.13.0. The data is not lost.

Checklist

  • I added relevant documentation
  • follows 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 added the type: bug Indicates an unexpected problem or unintended behavior label Jul 17, 2023
@gabrielmbmb gabrielmbmb added this to the v1.13.0 milestone Jul 17, 2023
# Install Elasticsearch and configure it
apt-get update && apt-get install -y elasticsearch=8.8.2 && \
mkdir /usr/share/elasticsearch/config && \
echo "cluster.name: \"docker-cluster\"\nnetwork.host: 0.0.0.0\npath.data: \"/data/elasticsearch\"bootstrap.system_call_filter: false" > /usr/share/elasticsearch/config/elasticsearch.yml && \
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if is possible but we could use just the defined ARGILLA_HOME as the parent path for the elasticsearch data. $ARGILLA_HOME/elasticsearch

Copy link
Member

Choose a reason for hiding this comment

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

Or just bypass the ARGILLA_HOME definition and force the value to /data

Copy link
Member Author

Choose a reason for hiding this comment

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

some lines below we're doing ENV ARGILLA_HOME_PATH=/data/argilla

Copy link
Member

@frascuchon frascuchon Jul 18, 2023

Choose a reason for hiding this comment

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

at some point of this file we can force the ARGILLA_HOME_PATH to /data

Copy link
Member Author

Choose a reason for hiding this comment

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

we're forcing it to /data/argilla

@gabrielmbmb gabrielmbmb force-pushed the fix/upsert-fails-sqlite3 branch 10 times, most recently from 6367db1 to fc85cef Compare July 18, 2023 14:18
@gabrielmbmb gabrielmbmb changed the base branch from releases/1.13.0 to develop July 18, 2023 15:48
@gabrielmbmb gabrielmbmb changed the base branch from develop to releases/1.13.0 July 18, 2023 15:48
@gabrielmbmb gabrielmbmb marked this pull request as ready for review July 18, 2023 16:46
@frascuchon frascuchon merged commit 9413600 into releases/1.13.0 Jul 18, 2023
13 checks passed
@frascuchon frascuchon deleted the fix/upsert-fails-sqlite3 branch July 18, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants