Skip to content

Commit ca4e6d2

Browse files
authored
Merge branch 'master' into patch-1
2 parents d6149bc + 4ec5696 commit ca4e6d2

File tree

14 files changed

+128
-147
lines changed

14 files changed

+128
-147
lines changed

.github/workflows/continous-integration.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
# - SLACK_WEBHOOK_TOKEN: token to post to RasaHQ slack account (in 1password)
1515
# - PYPI_TOKEN: publishing token for amn41 account, needs to be maintainer of
1616
# RasaHQ/rasa on pypi (account credentials in 1password)
17+
# - DOCKERHUB_PASSWORD: password for an account with write access to the rasa
18+
# repo on hub.docker.com. used to pull and upload containers
1719

1820
env:
1921
# needed to fix issues with boto during testing:
@@ -155,13 +157,52 @@ jobs:
155157
COVERALLS_SERVICE_NAME: github
156158
run: poetry run coveralls
157159

160+
docker:
161+
name: Build Docker
162+
runs-on: ubuntu-latest
163+
164+
strategy:
165+
matrix:
166+
image:
167+
- {"file": "Dockerfile", "tag_ext": ""}
168+
- {"file": "docker/Dockerfile_full", "tag_ext": "-full"}
169+
- {"file": "docker/Dockerfile_pretrained_embeddings_mitie_en", "tag_ext": "-mitie-en"}
170+
- {"file": "docker/Dockerfile_pretrained_embeddings_spacy_de", "tag_ext": "-spacy-de"}
171+
- {"file": "docker/Dockerfile_pretrained_embeddings_spacy_en", "tag_ext": "-spacy-en"}
172+
173+
env:
174+
DOCKERHUB_USERNAME: tmbo
175+
176+
steps:
177+
- name: Checkout git repository 🕝
178+
uses: actions/checkout@v2
179+
180+
- name: Login to DockerHub Registry 🔢
181+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ env.DOCKERHUB_USERNAME }} --password-stdin
182+
183+
- name: Pull latest${{ matrix.image.tag_ext }} Docker image for caching
184+
run: docker pull rasa/rasa:latest${{ matrix.image.tag_ext }} || true
185+
186+
- name: Build latest${{ matrix.image.tag_ext }} Docker image
187+
run: docker build . --file ${{ matrix.image.file }} --tag rasa/rasa:latest${{ matrix.image.tag_ext }} --cache-from rasa/rasa:latest${{ matrix.image.tag_ext }}
188+
189+
- name: Push image with latest tag 📦
190+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
191+
run: docker push rasa/rasa:latest${{ matrix.image.tag_ext }}
192+
193+
- name: Push image with ${{github.event.ref}} tag 📦
194+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
195+
run: |
196+
docker tag rasa/rasa:latest${{ matrix.image.tag_ext }} rasa/rasa:${{github.event.ref}}${{ matrix.image.tag_ext }}
197+
docker push rasa/rasa:${{github.event.ref}}${{ matrix.image.tag_ext }}
198+
158199
deploy:
159200
name: Deploy to PyPI
160201
runs-on: ubuntu-latest
161202

162203
# deploy will only be run when there is a tag available
163204
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
164-
needs: [quality, test, api] # only run after all other stages succeeded
205+
needs: [quality, test, api, docker] # only run after all other stages succeeded
165206

166207
steps:
167208
- name: Checkout git repository 🕝
@@ -195,7 +236,7 @@ jobs:
195236
env:
196237
GH_RELEASE_NOTES_TOKEN: ${{ secrets.GH_RELEASE_NOTES_TOKEN }}
197238
SLACK_WEBHOOK_TOKEN: ${{ secrets.SLACK_WEBHOOK_TOKEN }}
198-
GITHUB_TAG: ${{ github.ref }}
239+
GITHUB_TAG: ${{ github.event.ref }}
199240
GITHUB_REPO_SLUG: ${{ github.repository }}
200241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201242
run: |

CHANGELOG.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,6 @@ Improvements
104104
does not help for the case where messages are sent to an unavailable RabbitMQ instance.
105105
- `#5250 <https://github.com/rasahq/rasa/issues/5250>`_: Added support for mattermost connector to use bot accounts.
106106
- `#5266 <https://github.com/rasahq/rasa/issues/5266>`_: We updated our code to TensorFlow 2.
107-
108-
We added a new docker image for ConveRT.
109-
The new images uses the following configuration
110-
111-
.. code-block:: yaml
112-
113-
language: "en"
114-
115-
pipeline:
116-
- name: ConveRTTokenizer
117-
- name: ConveRTFeaturizer
118-
- name: RegexFeaturizer
119-
- name: LexicalSyntacticFeaturizer
120-
- name: CountVectorsFeaturizer
121-
- name: CountVectorsFeaturizer
122-
analyzer: "char_wb"
123-
min_ngram: 1
124-
max_ngram: 4
125-
- name: DIETClassifier
126-
- name: EntitySynonymMapper
127-
- name: ResponseSelector
128107
- `#5317 <https://github.com/rasahq/rasa/issues/5317>`_: Events exported using ``rasa export`` receive a message header if published through a
129108
``PikaEventBroker``. The header is added to the message's ``BasicProperties.headers``
130109
under the ``rasa-export-process-id`` key

changelog/5330.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Build our docker containers as part of our continuous integration workflow.

changelog/5340.misc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Expand the allowed range of ``tensorflow-addons`` versions to ``>=0.7.1`` to make it possible
2+
to install Rasa Open Source on MacOS Mojave.

changelog/5348.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove deprecation warnings for ``CRFEntityExtractor`` and ``SklearnIntentClassifier``.
Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
## simple_story_with_only_start
2-
* greet: Hello
3-
- utter_ask_howcanhelp
2+
* greet: /greet
3+
- utter_greet
44

55
## simple_story_with_multiple_turns
6-
* greet: good morning
7-
- utter_ask_howcanhelp
8-
* inform: im looking for a [moderately](price:moderate) priced restaurant in the [east](location) part of town
9-
- utter_on_it
10-
- utter_ask_cuisine
6+
* greet: /greet
7+
- utter_greet
8+
* default: /default
9+
- utter_default
10+
* goodbye: /goodbye
11+
- utter_goodbye
1112

1213
## story_with_multiple_entities_correction_and_search
13-
* greet: hello
14-
- utter_ask_howcanhelp
15-
* inform: im looking for a [cheap](price:lo) restaurant which has [french](cuisine) food and is located in [bombay](location)
16-
- utter_on_it
17-
- utter_ask_numpeople
18-
* inform: for [six](people:6) please
19-
- utter_ask_moreupdates
20-
* inform: actually i need a [moderately](price:moderate) priced restaurant
21-
- utter_ask_moreupdates
22-
* deny: no
23-
- utter_ack_dosearch
24-
- action_search_restaurants
25-
- action_suggest
26-
27-
## story_with_intent_restated
28-
* greet: /greet
29-
- utter_ask_howcanhelp
14+
* greet: /greet{"name": "Max"}
15+
- utter_greet
16+
* default: /default
17+
- utter_default
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## Happy path
2+
* greet: /greet
3+
- utter_greet
4+
* request_restaurant: /request_restaurant
5+
- restaurant_form
6+
- form{"name": "restaurant_form"}
7+
- form{"name": null}
8+
- utter_slots_values
9+
* thankyou: /thankyou
10+
- utter_noworries
11+
12+
## Happy path with form prefix
13+
* greet: /greet
14+
- utter_greet
15+
* request_restaurant: /request_restaurant
16+
- restaurant_form
17+
- form{"name": "restaurant_form"}
18+
* form: /inform{"cuisine": "afghan"} <!-- intent "inform" is ignored inside the form -->
19+
- form: restaurant_form
20+
- form{"name": null}
21+
- utter_slots_values
22+
* thankyou: /thankyou
23+
- utter_noworries
24+
25+
## unhappy path
26+
* greet: /greet
27+
- utter_greet
28+
* request_restaurant: /request_restaurant
29+
- restaurant_form
30+
- form{"name": "restaurant_form"}
31+
* chitchat: /chitchat
32+
- utter_chitchat
33+
- restaurant_form
34+
- form{"name": null}
35+
- utter_slots_values
36+
* thankyou: /thankyou
37+
- utter_noworries

docs/nlu/components.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,6 @@ MitieIntentClassifier
676676
SklearnIntentClassifier
677677
~~~~~~~~~~~~~~~~~~~~~~~
678678

679-
.. warning::
680-
``SklearnIntentClassifier`` is deprecated and should be replaced by ``DIETClassifier``. See
681-
:ref:`migration guide <migration-to-rasa-1.8>` for more details.
682-
683679
:Short: Sklearn intent classifier
684680
:Outputs: ``intent`` and ``intent_ranking``
685681
:Requires: ``dense_features`` for user messages
@@ -1267,10 +1263,6 @@ CRFEntityExtractor
12671263
.. note::
12681264
If "pattern" features are used, you need to have ``RegexFeaturizer`` in your pipeline.
12691265

1270-
.. warning::
1271-
``CRFEntityExtractor`` is deprecated and should be replaced by ``DIETClassifier``. See
1272-
:ref:`migration guide <migration-to-rasa-1.8>` for more details.
1273-
12741266
:Configuration:
12751267
``CRFEntityExtractor`` has a list of default features to use.
12761268
However, you can overwrite the default configuration.

poetry.lock

Lines changed: 9 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ PyJWT = "~1.7"
117117
python-dateutil = "~2.8"
118118
tensorflow = "~2.1"
119119
tensorflow_hub = "~0.7"
120-
tensorflow-addons = "~0.8"
120+
tensorflow-addons = ">=0.7.1"
121121
tensorflow-probability = "~0.7"
122122
setuptools = ">=41.0.0"
123123
kafka-python = "^1.4"

0 commit comments

Comments
 (0)