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

Merge 2.8.x into main #9869

Merged
merged 176 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from 157 commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
b78c650
Update dependencies and poetry lock file
Sep 15, 2021
9ae8f2d
Make necessary code changes for TF 2.5
Sep 15, 2021
d78ea79
use a Union for the json_message at send_custom_json
ErickGiffoni Sep 16, 2021
fe94a77
add test code to the facebook channel
ErickGiffoni Sep 16, 2021
6487e91
add change log related to issue #5657
ErickGiffoni Sep 16, 2021
00413ef
Merge 2.8.x
Sep 20, 2021
c57dbd4
Target TF 2.6
Sep 20, 2021
b45d798
Remove unused import
Sep 20, 2021
035d487
Reflect separation of Keras and Tensorflow
Sep 20, 2021
d5fb0b9
Increase timeouts
Sep 20, 2021
6201ff9
Code quality
Sep 20, 2021
0d6f7c2
Further increase timeouts
Sep 20, 2021
2bd27d8
Further increase timeouts
Sep 20, 2021
3b27ebc
Reduce e2ebot epochs and remove reference to non-existent rules.yml
Sep 20, 2021
3383a86
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Sep 20, 2021
9d681a0
Revert reduced epochs
Sep 20, 2021
c0e061e
Merge branch '2.8.x' into tf-2.5-final
Sep 21, 2021
67101fd
Bump DIET classifier test timeout
Sep 21, 2021
08dac7e
Reduce training examples for composite entities to decrease memory usage
Sep 21, 2021
e5584f8
Increase memory leak bound, fix failing test
Sep 21, 2021
3f87378
Bump timeout
Sep 21, 2021
d5c18bf
when pop fails, recipient_id is returned
ErickGiffoni Sep 21, 2021
d3e9e8a
test when the json message's key blocks is a dict
ErickGiffoni Sep 21, 2021
374e0c0
check if json_message is list and assign recipient_id to the extracte…
ErickGiffoni Sep 21, 2021
ecf2dd6
test when json_message is actually a list
ErickGiffoni Sep 21, 2021
29302be
parametrize tests with pytest.mark.parametrize
ErickGiffoni Sep 21, 2021
fcd6c5e
Merge branch '2.8.x' of git://github.com/RasaHQ/rasa into rebase-trea…
ErickGiffoni Sep 21, 2021
b9efd30
add tmate session to debug runner (#9728)
HotThoughts Sep 27, 2021
f6679db
Bump memory threshold
Sep 21, 2021
680a6a6
Try one job for pytest CI
Sep 28, 2021
92fec0d
Revert "add tmate session to debug runner (#9728)"
Sep 28, 2021
d6fad55
Revert "Try one job for pytest CI"
Sep 28, 2021
1fdac0a
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Sep 28, 2021
878d975
Limit pytest jobs to 1 on CI for Windows and test-nlu-predictors (#9733)
koernerfelicia Sep 29, 2021
15da6df
Fix import, remove use of is_tensor, change RasaDataGenerator back to…
Oct 1, 2021
d9d5816
Fix import order so diff shows none
Oct 1, 2021
c37c429
Fix formatting
Oct 1, 2021
a541478
Change pyproject format for GPU lib selection
Oct 1, 2021
2211b10
Update poetry.lock
Oct 1, 2021
5b00907
Try enforcing dtype
Oct 4, 2021
e32abf9
Revert dtype check, and make lint
Oct 4, 2021
3ac584b
Try not setting determinism CI model regression tests
Oct 4, 2021
b8c0b99
Disable non-deterministic ops flag
Oct 4, 2021
6e910ab
Read TF version from poetry.lock (#9785)
HotThoughts Oct 4, 2021
a435b61
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Oct 4, 2021
0037653
Add warning if user tries to set , also add note to docs and changelog
Oct 4, 2021
b0c9add
Add TF_DETERMINISTIC_OPS warning to main
Oct 4, 2021
96d34f8
Adjust changelog wording
Oct 4, 2021
b43a2e9
Skip Hermit and BERT + DIET(seq) + ResponseSelector(t2t) or Sparse + …
Oct 5, 2021
a7e51a7
Test skip Hermit and BERT + DIET(seq) + ResponseSelector(t2t) or Spar…
Oct 5, 2021
0d20796
Rename changelog file and mention expected performance degradation
Oct 6, 2021
32fc23a
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Oct 6, 2021
4dafa20
Remove colon from changelog
Oct 6, 2021
a65b2fc
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Oct 6, 2021
e476fd5
Bump timeout again
Oct 6, 2021
ae63d62
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Oct 7, 2021
1d06e2d
Merge branch '2.8.x' into tf-2.5-final
koernerfelicia Oct 7, 2021
8f7ed72
Merge branch '2.8.x' into rebase-treat-custom-json-fb
ErickGiffoni Oct 7, 2021
413ed52
using separate lines of import
ErickGiffoni Oct 7, 2021
3832e72
clean code: remove unused import
ErickGiffoni Oct 7, 2021
35a165a
Merge branch 'rebase-treat-custom-json-fb' of https://github.com/FGA-…
ErickGiffoni Oct 7, 2021
c8ed3c5
remove duplicate: this test is at tests/core/test_channels.py
ErickGiffoni Oct 7, 2021
33482b1
remove empty line
ErickGiffoni Oct 7, 2021
ced297b
remove unused imports from rasa.core and test.utilities
ErickGiffoni Oct 7, 2021
b919986
Updated docs.
kedz Oct 7, 2021
2f31b5c
Added changelog entry.
kedz Oct 7, 2021
b932802
Update changelog/7619.improvement.md
koernerfelicia Oct 8, 2021
600e0ce
Adjust changelog, link to blogpost, clarify failure conditions for de…
Oct 8, 2021
9411e13
Expand list of situations in which determinism is not possible
Oct 8, 2021
67889c6
Expand list of situations in which determinism is not possible to inc…
Oct 8, 2021
5c68ed3
Update docs/docs/tuning-your-model.mdx
koernerfelicia Oct 8, 2021
ca0f226
Update rasa/utils/tensorflow/environment.py
koernerfelicia Oct 8, 2021
b9f2bd0
Add forum link, fix over-long line
Oct 8, 2021
92beb29
Merge pull request #9649 from RasaHQ/tf-2.5-final
koernerfelicia Oct 8, 2021
339a417
prepared release of version 2.8.9
Oct 8, 2021
3202b0f
Bump min compatible
Oct 8, 2021
15abc7d
Merge branch '2.8.x' into rebase-treat-custom-json-fb
ErickGiffoni Oct 8, 2021
ddac550
Update docs/docs/policies.mdx
Oct 8, 2021
d21532e
Add a notice about data augmentation to the TEDPolicy section.
kedz Oct 8, 2021
35516ac
Merge branch '9691.aug_docs' of https://github.com/rasahq/rasa into 9…
kedz Oct 8, 2021
d5d7aac
Moved html tag.
kedz Oct 8, 2021
8f7ee03
Style.
kedz Oct 8, 2021
f17d939
Fix link.
kedz Oct 8, 2021
ea7cd9c
Fix link.
kedz Oct 8, 2021
2ff716d
Update CHANGELOG.mdx
koernerfelicia Oct 8, 2021
09787ec
Merge pull request #9828 from RasaHQ/prepare-release-2.8.9
koernerfelicia Oct 8, 2021
4cabf03
Update docs/docs/policies.mdx
Oct 8, 2021
f7c919d
Merge branch '2.8.x' into rebase-treat-custom-json-fb
ErickGiffoni Oct 9, 2021
1cce35a
remove facebook channel test: it will be added to tests/core/channels…
ErickGiffoni Oct 11, 2021
7e6c9cf
add facebook channel test
ErickGiffoni Oct 11, 2021
7626f39
import utils, run from rasa.core
ErickGiffoni Oct 11, 2021
246393b
uses 2 examples that could cause an error before
ErickGiffoni Oct 11, 2021
4bdc5e7
Merge branch 'rebase-treat-custom-json-fb' of https://github.com/FGA-…
ErickGiffoni Oct 11, 2021
1b6b502
Swap calls to extractall for TarSafe equivalent
usc-m Oct 11, 2021
998740f
clean code: remove unnecessary comments
ErickGiffoni Oct 11, 2021
6e30256
Merge pull request #9692 from FGA-GCES/rebase-treat-custom-json-fb
ancalita Oct 11, 2021
e41a220
Update docs/docs/policies.mdx
Oct 11, 2021
41f5135
Use PR identifier to update changelog
usc-m Oct 12, 2021
3cffbf9
Merge branch '2.8.x' into 9691.aug_docs
Oct 12, 2021
190684b
Temporarily pin pyjwt to stop sanic-jwt breaking
usc-m Oct 13, 2021
d28c2e4
Merge branch '2.8.x' into tarsafe-on-2.8.x
usc-m Oct 13, 2021
0e8ef43
Merge pull request #9851 from RasaHQ/tarsafe-on-2.8.x
usc-m Oct 13, 2021
8be36b9
properly retrieve entity value
wochinge Oct 13, 2021
631c355
Merge branch '2.8.x' into fix-wit-migration
wochinge Oct 14, 2021
11f2118
Merge pull request #9864 from RasaHQ/fix-wit-migration
wochinge Oct 14, 2021
c39f342
Correct inaccurate error message.
samsucik Oct 14, 2021
5100c66
Add tests that fail due to bug in checking entity predictions in stor…
samsucik Oct 14, 2021
b8d60ff
Fix bug in checking entity predictions in stories, make sure the test…
samsucik Oct 14, 2021
f09d122
Add changelog entry.
samsucik Oct 14, 2021
a467c5a
Add docstring.
samsucik Oct 14, 2021
93eb802
Merge branch '2.8.x' into 9691.aug_docs
Oct 14, 2021
32154b8
prepared release of version 2.8.10
wochinge Oct 14, 2021
22a19a5
Update rasa/core/test.py
samsucik Oct 15, 2021
bfb8acc
Update rasa/core/test.py
samsucik Oct 15, 2021
0d3d8f3
Update rasa/core/test.py
samsucik Oct 15, 2021
8863ca9
Rename methods as per review suggestion.
samsucik Oct 15, 2021
c55816e
Merge branch 'fix-9771' of github.com:RasaHQ/rasa into fix-9771
samsucik Oct 15, 2021
fcb5e80
Merge pull request #9881 from RasaHQ/prepare-release-2.8.10
wochinge Oct 15, 2021
2d11f01
Merge branch '2.8.x' into fix-9771
samsucik Oct 15, 2021
91c5549
Merge branch 'main' into merge-2.8.x-main-11f2118
koernerfelicia Oct 15, 2021
2d7c372
Merge branch 'main' into merge-2.8.x-main-11f2118
koernerfelicia Oct 15, 2021
fc25505
Merge branch '2.8.x' into 9691.aug_docs
samsucik Oct 18, 2021
2bf5bcc
Merge branch 'main' into merge-2.8.x-main-11f2118
koernerfelicia Oct 18, 2021
2fad438
Fix poetry.lock, bump pydocs-markdown back down bc of conflict w TF
Oct 18, 2021
a4cfb0b
Update poetry.lock file
Oct 18, 2021
f3dc4ac
Fix code formatting
Oct 18, 2021
a943cb4
Remove unused imports
Oct 18, 2021
06e4469
Revert poor git merge
Oct 18, 2021
5863116
Merge branch 'main' into merge-2.8.x-main-11f2118
koernerfelicia Oct 18, 2021
f2316cf
rm reference to old example_component.py (will be replaced in #9885)
ka-bu Oct 18, 2021
8d5b32a
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 19, 2021
8c17cb2
Added data augmentation explanation.
kedz Oct 19, 2021
29c64f9
filter warnings
ka-bu Oct 20, 2021
dd43bd5
merge main
ka-bu Oct 20, 2021
ab6c0b7
codeclimate/lint
ka-bu Oct 20, 2021
548e6d4
codeclimate/lint
ka-bu Oct 20, 2021
4b1b861
increase timeout for response selector CV
ka-bu Oct 20, 2021
c70f310
exclude temp_keras_model in codeclimate
ka-bu Oct 20, 2021
c090a26
Update sanic-jwt version pin to match rasa x
usc-m Oct 20, 2021
88d2a56
Add changelog
usc-m Oct 20, 2021
c25108c
Merge pull request #9937 from RasaHQ/9858/pyjwt-pin
usc-m Oct 20, 2021
af1a980
prepared release of version 2.8.11
usc-m Oct 20, 2021
efd9d59
Merge branch '2.8.x' into 9691.aug_docs
Oct 20, 2021
2ff56cc
Merge pull request #9939 from RasaHQ/prepare-release-2.8.11
wochinge Oct 20, 2021
2fdb3dd
Merge branch '2.8.x' into 9691.aug_docs
Oct 20, 2021
978c8a0
Merge pull request #9825 from RasaHQ/9691.aug_docs
Oct 20, 2021
0894f8a
Update changelog/9771.bugfix.md
samsucik Oct 21, 2021
9dd4218
Update tests/test_model_testing.py
samsucik Oct 21, 2021
6a476b2
rm _decompress from Persistor
ka-bu Oct 21, 2021
8b9778b
Update tests/test_model_testing.py
samsucik Oct 21, 2021
5a68012
Merge branch '2.8.x' into fix-9771
samsucik Oct 21, 2021
f949568
Merge pull request #9875 from RasaHQ/fix-9771
samsucik Oct 21, 2021
aca4db0
prepared release of version 2.8.12
samsucik Oct 21, 2021
ea8eda2
Merge pull request #9948 from RasaHQ/prepare-release-2.8.12
samsucik Oct 21, 2021
df96d06
fix (set_log ... -> configure_logging...)
ka-bu Oct 22, 2021
3404876
merge main (without continuous integration yml)
ka-bu Oct 22, 2021
5376cee
merge 2.8.x
ka-bu Oct 22, 2021
81db4f3
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 22, 2021
1aa646e
Update rasa/nlu/persistor.py
ka-bu Oct 22, 2021
56f7d46
merge main
ka-bu Oct 22, 2021
15f0334
increase timeout for test_run_cv_evaluation_with_response_selector
ka-bu Oct 22, 2021
49abb8a
increase timeout for test_run_cv_evaluation
ka-bu Oct 22, 2021
59a7c95
trigger test re-run
ka-bu Oct 22, 2021
718c97a
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 22, 2021
1f7c437
increase timeout for test_run_cv_evaluation_with_response_selector
ka-bu Oct 22, 2021
2de5766
trigger tests
ka-bu Oct 23, 2021
b53468f
increase timeout for test_run_cv_evaluation
ka-bu Oct 23, 2021
f476448
trigger test re-run
ka-bu Oct 23, 2021
558bacf
trigger test re-run
ka-bu Oct 24, 2021
2960aa9
trigger tests
ka-bu Oct 25, 2021
f0cb3f1
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 25, 2021
58520a3
run test-other-unit-tests in single thread
ka-bu Oct 25, 2021
b69cf9b
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 25, 2021
a35aac7
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 25, 2021
669fc3b
trigger tests
ka-bu Oct 25, 2021
54587ef
Merge branch 'main' into merge-2.8.x-main-11f2118
ka-bu Oct 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "2"
exclude_patterns:
- rasa/core/utils.py # codeclimate has some encoding issues with this files because of emojis
- rasa/utils/tensorflow/temp_keras_modules.py # largely copy paste and temporary
- .*
- .github/
- CHANGELOG.mdx
Expand All @@ -15,7 +16,7 @@ exclude_patterns:
- bandit.yml
- binder/
- changelog/
- data/
- data/
- docs/
- examples/
- poetry.lock
Expand Down
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ exclude_lines =
if __name__ == .__main__.:
def create_argument_parser
if typing.TYPE_CHECKING
# Ellipsis are used as placeholders in python 3 that will be overridden
\.\.\.
[run]
source = rasa
14 changes: 9 additions & 5 deletions .github/workflows/ci-model-regression-on-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ jobs:

- name: Get TensorFlow version
run: |-
# Read TF version, trim special characters ^~><+
TF_VERSION=$(grep "tensorflow =" pyproject.toml | sed 's/^[^"]*"\([^"]*\),.*/\1/' | sed 's/[\^~><=]//g')
# Keep the first 3 characters, e.g. we keep 2.3 if TF_VERSION is 2.3.4
TF_VERSION=${TF_VERSION::3}
# Read TF version from poetry.lock file
pip install toml
TF_VERSION=$(scripts/read_tenforflow_version.sh)
echo "TensorFlow version: $TF_VERSION"
echo TF_VERSION=$TF_VERSION >> $GITHUB_ENV

Expand Down Expand Up @@ -166,6 +165,12 @@ jobs:
&& echo "::set-output name=is_config_exists::false" && exit 0)
fi

# Skip job if dataset is Hermit and config is BERT + DIET(seq) + ResponseSelector(t2t) or Sparse + BERT + DIET(seq) + ResponseSelector(t2t)
if [[ "${{ matrix.dataset }}" == "Hermit" && "${{ matrix.config }}" =~ "BERT + DIET(seq) + ResponseSelector(t2t)" ]]; then
echo "::warning::This ${{ matrix.dataset }} dataset / ${{ matrix.config }} config is currently being skipped due to OOM associated with the upgrade to TF 2.6." \
&& echo "::set-output name=is_config_exists::false" && exit 0
fi

# Skip job if a given type is not available for a given dataset
if [[ -z "${DOMAIN_FILE}" && "${{ matrix.type }}" == "core" ]]; then
echo "::warning::The ${{ matrix.dataset }} dataset doesn't include core type. Skipping the job." \
Expand Down Expand Up @@ -255,7 +260,6 @@ jobs:
env:
TFHUB_CACHE_DIR: ~/.tfhub_cache/
OMP_NUM_THREADS: 1
TF_DETERMINISTIC_OPS: 1 # Run GPUs in a deterministic mode
run: |-
poetry run rasa --version

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ci-model-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ jobs:

- name: Get TensorFlow version
run: |-
# Read TF version, trim special characters ^~><+
TF_VERSION=$(grep "tensorflow =" pyproject.toml | sed 's/^[^"]*"\([^"]*\),.*/\1/' | sed 's/[\^~><=]//g')
# Read TF version from poetry.lock file
pip install toml
TF_VERSION=$(scripts/read_tenforflow_version.sh)
# Keep the first 3 characters, e.g. we keep 2.3 if TF_VERSION is 2.3.4
TF_VERSION=${TF_VERSION::3}
echo "TensorFlow version: $TF_VERSION"
Expand Down Expand Up @@ -233,6 +234,11 @@ jobs:
echo "::set-output name=is_config_exists::true"
echo "::set-output name=is_external::${IS_EXTERNAL}"

# Warn about job if dataset is Hermit and config is BERT + DIET(seq) + ResponseSelector(t2t) or Sparse + BERT + DIET(seq) + ResponseSelector(t2t)
if [[ "${{ matrix.dataset }}" == "Hermit" && "${{ matrix.config }}" =~ "BERT + DIET(seq) + ResponseSelector(t2t)" ]]; then
echo "::warning::This ${{ matrix.dataset }} dataset / ${{ matrix.config }} config is currently being skipped on scheduled tests due to OOM associated with the upgrade to TF 2.6. You may see OOM here."
fi

if [[ "${IS_EXTERNAL}" == "true" ]]; then
echo "DATASET_DIR=dataset_external" >> $GITHUB_ENV
else
Expand Down Expand Up @@ -330,7 +336,6 @@ jobs:
env:
TFHUB_CACHE_DIR: ~/.tfhub_cache/
OMP_NUM_THREADS: 1
TF_DETERMINISTIC_OPS: 1
run: |-
poetry run rasa --version

Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,26 @@ jobs:
- name: Install ddtrace
if: needs.changes.outputs.backend == 'true'
run: poetry run pip install -U ddtrace

- name: Test Code 🔍 (monothread)
# This is a temporary workaround for OOM on Windows caused by increased memory
# consumption associated with the upgrade of our tensorflow dependency
# see https://github.com/RasaHQ/rasa/issues/9734 for more information.
# Once the memory issues have been addressed, all configurations should be run on
# multiple threads
if: needs.changes.outputs.backend == 'true' && (matrix.os == 'windows-latest' && matrix.test == 'test-nlu-predictors')
env:
JOBS: 1
PYTHONIOENCODING: "utf-8"
DD_ENV: ${{ matrix.test }}
DD_SERVICE: rasa
DD_ARGS: --ddtrace
wochinge marked this conversation as resolved.
Show resolved Hide resolved
run: |
make ${{ matrix.test }}
poetry run coverage xml -o ${{ github.workspace }}/tests/${{ matrix.test }}-coverage.xml --include="rasa/*"

- name: Test Code 🔍
if: needs.changes.outputs.backend == 'true'
- name: Test Code 🔍 (multithread)
if: needs.changes.outputs.backend == 'true' && !(matrix.os == 'windows-latest' && matrix.test == 'test-nlu-predictors')
env:
JOBS: 2
PYTHONIOENCODING: "utf-8"
Expand Down
94 changes: 94 additions & 0 deletions CHANGELOG.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,100 @@ https://github.com/RasaHQ/rasa/tree/main/changelog/ . -->

<!-- TOWNCRIER -->

## [2.8.12] - 2021-10-21
### Bugfixes
- [#9771](https://github.com/rasahq/rasa/issues/9771): Fixed a bug where `rasa test --fail-on-prediction-errors` would raise a
`WrongPredictionException` for entities which were actually predicted correctly.

This happened in two ways:
1. if for a user message some entities were extracted multiple times (by multiple entity
extractors) but listed only once in the test story,
2. if the order in which entities from a message were extracted didn't match the order
in which they were listed in the test story.

### Improved Documentation
- [#9691](https://github.com/rasahq/rasa/issues/9691): Improve the documentation for training `TEDPolicy` with data augmentation.


## [2.8.11] - 2021-10-20
### Bugfixes
- [#9858](https://github.com/rasahq/rasa/issues/9858): Updates dependency on `sanic-jwt` (1.5.0 -> ">=1.6.0, <1.7.0")

This removes the need to pin the version of `pyjwt` as the newer version of `sanic-jwt`
manages this properly.


## [2.8.10] - 2021-10-14
### Bugfixes
- [#5657](https://github.com/rasahq/rasa/issues/5657): Add List handling in the `send_custom_json` method on `channels/facebook.py`.
Bellow are some examples that could cause en error before.

Example 1: when the whole json is a List
```
[
{
"blocks": {
"type": "progression_bar",
"text": {"text": "progression 1", "level": "1"},
}
},
{"sender": {"id": "example_id"}},
]
```

Example 2: instead of being a Dict, *blocks* is a List when there are 2 *type*
keys under it
```
{
"blocks": [
{"type": "title", "text": {"text": "Conversation progress"}},
{
"type": "progression_bar",
"text": {"text": "Look how far we are...", "level": "1"},
},
]
}
```
- [#7676](https://github.com/rasahq/rasa/issues/7676): Fixed bug when using wit.ai training data to train.
Training failed with an error similarly to this:

```bash
File "./venv/lib/python3.8/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 803, in train
self.check_correct_entity_annotations(training_data)
File "./venv/lib/python3.8/site-packages/rasa/nlu/extractors/extractor.py", line 418, in check_correct_entity_annotations
entities_repr = [
File "./venv/lib/python3.8/site-packages/rasa/nlu/extractors/extractor.py", line 422, in <listcomp>
entity[ENTITY_ATTRIBUTE_VALUE],
KeyError: 'value'
```
- [#9851](https://github.com/rasahq/rasa/issues/9851): Fix CVE-2021-41127


## [2.8.9] - 2021-10-08
### Improvements
- [#7619](https://github.com/rasahq/rasa/issues/7619): Bump TensorFlow version to 2.6.

This update brings some security benefits (see TensorFlow
[release notes](https://github.com/tensorflow/tensorflow/releases/tag/v2.6.0)
for details). However, internal experiments suggest that it is also associated with
increased train and inference time, as well as increased memory usage.

You can read more about why we decided to update TensorFlow, and what the expected
impact is [here](https://rasa.com/blog/let-s-talk-about-tensorflow-2-6/).

If you experience a significant increase in train time, inference time, and/or memory
usage, please let us know in the [forum](https://forum.rasa.com/t/feedback-upgrading-to-tensorflow-2-6/48331).

Users can no longer set `TF_DETERMINISTIC_OPS=1` if they are using GPU(s) because a
`tf.errors.UnimplementedError` will be thrown by TensorFlow (read more
[here](https://github.com/tensorflow/tensorflow/releases/tag/v2.6.0)).

:::caution
This **breaks backward compatibility of previously trained models**.
It is not possible to load models trained with previous versions of Rasa Open Source. Please re-train
your assistant before trying to use this version.

:::
## [2.8.8] - 2021-10-06


Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ test-performance: test-marker
test-marker: clean
# OMP_NUM_THREADS can improve overall performance using one thread by process (on tensorflow), avoiding overload
# TF_CPP_MIN_LOG_LEVEL=2 sets C code log level for tensorflow to error suppressing lower log events
OMP_NUM_THREADS=1 TF_CPP_MIN_LOG_LEVEL=2 poetry run coverage run -m pytest tests -n $(JOBS) -m "$(PYTEST_MARKER)" --ignore $(INTEGRATION_TEST_FOLDER) $(DD_ARGS)
OMP_NUM_THREADS=1 TF_CPP_MIN_LOG_LEVEL=2 poetry run pytest tests -n $(JOBS) -m "$(PYTEST_MARKER)" --cov rasa --ignore $(INTEGRATION_TEST_FOLDER) $(DD_ARGS)

generate-pending-changelog:
poetry run python -c "from scripts import release; release.generate_changelog('major.minor.patch')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ nodes:
is_target: false
is_input: false
resource: null
run_MitieNLP0:
provide_MitieNLP0:
needs: {}
uses: rasa.nlu.utils.mitie_utils.MitieNLPGraphComponent
uses: rasa.nlu.utils.mitie_utils.MitieNLP
constructor_name: load
fn: provide
config:
Expand All @@ -24,7 +24,7 @@ nodes:
run_MitieTokenizer1:
needs:
messages: nlu_message_converter
uses: rasa.nlu.tokenizers.mitie_tokenizer.MitieTokenizerGraphComponent
uses: rasa.nlu.tokenizers.mitie_tokenizer.MitieTokenizer
constructor_name: load
fn: process
config: {}
Expand All @@ -35,8 +35,8 @@ nodes:
run_MitieEntityExtractor2:
needs:
messages: run_MitieTokenizer1
model: run_MitieNLP0
uses: rasa.nlu.extractors.mitie_entity_extractor.MitieEntityExtractorGraphComponent
model: provide_MitieNLP0
uses: rasa.nlu.extractors.mitie_entity_extractor.MitieEntityExtractor
constructor_name: load
fn: process
config: {}
Expand All @@ -48,7 +48,7 @@ nodes:
run_EntitySynonymMapper3:
needs:
messages: run_MitieEntityExtractor2
uses: rasa.nlu.extractors.entity_synonyms.EntitySynonymMapperGraphComponent
uses: rasa.nlu.extractors.entity_synonyms.EntitySynonymMapper
constructor_name: load
fn: process
config: {}
Expand All @@ -60,7 +60,7 @@ nodes:
run_RegexFeaturizer4:
needs:
messages: run_EntitySynonymMapper3
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizerGraphComponent
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizer
constructor_name: load
fn: process
config: {}
Expand All @@ -72,8 +72,8 @@ nodes:
run_MitieFeaturizer5:
needs:
messages: run_RegexFeaturizer4
model: run_MitieNLP0
uses: rasa.nlu.featurizers.dense_featurizer.mitie_featurizer.MitieFeaturizerGraphComponent
model: provide_MitieNLP0
uses: rasa.nlu.featurizers.dense_featurizer.mitie_featurizer.MitieFeaturizer
constructor_name: load
fn: process
config: {}
Expand All @@ -84,7 +84,7 @@ nodes:
run_SklearnIntentClassifier6:
needs:
messages: run_MitieFeaturizer5
uses: rasa.nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifierGraphComponent
uses: rasa.nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifier
constructor_name: load
fn: process
config: {}
Expand All @@ -93,10 +93,10 @@ nodes:
is_input: false
resource:
name: train_SklearnIntentClassifier6
run_RegexMessageHandlerGraphComponent:
run_RegexMessageHandler:
needs:
messages: run_SklearnIntentClassifier6
uses: rasa.nlu.classifiers.regex_message_handler.RegexMessageHandlerGraphComponent
uses: rasa.nlu.classifiers.regex_message_handler.RegexMessageHandler
constructor_name: load
fn: process
config: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ nodes:
is_target: false
is_input: true
resource: null
run_MitieNLP0:
provide_MitieNLP0:
needs: {}
uses: rasa.nlu.utils.mitie_utils.MitieNLPGraphComponent
uses: rasa.nlu.utils.mitie_utils.MitieNLP
constructor_name: create
fn: provide
config:
Expand All @@ -50,7 +50,7 @@ nodes:
run_MitieTokenizer1:
needs:
training_data: nlu_training_data_provider
uses: rasa.nlu.tokenizers.mitie_tokenizer.MitieTokenizerGraphComponent
uses: rasa.nlu.tokenizers.mitie_tokenizer.MitieTokenizer
constructor_name: load
fn: process_training_data
config: {}
Expand All @@ -61,8 +61,8 @@ nodes:
train_MitieEntityExtractor2:
needs:
training_data: run_MitieTokenizer1
model: run_MitieNLP0
uses: rasa.nlu.extractors.mitie_entity_extractor.MitieEntityExtractorGraphComponent
model: provide_MitieNLP0
uses: rasa.nlu.extractors.mitie_entity_extractor.MitieEntityExtractor
constructor_name: create
fn: train
config: {}
Expand All @@ -73,7 +73,7 @@ nodes:
train_EntitySynonymMapper3:
needs:
training_data: run_MitieTokenizer1
uses: rasa.nlu.extractors.entity_synonyms.EntitySynonymMapperGraphComponent
uses: rasa.nlu.extractors.entity_synonyms.EntitySynonymMapper
constructor_name: create
fn: train
config: {}
Expand All @@ -84,7 +84,7 @@ nodes:
train_RegexFeaturizer4:
needs:
training_data: run_MitieTokenizer1
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizerGraphComponent
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizer
constructor_name: create
fn: train
config: {}
Expand All @@ -96,7 +96,7 @@ nodes:
needs:
training_data: run_MitieTokenizer1
resource: train_RegexFeaturizer4
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizerGraphComponent
uses: rasa.nlu.featurizers.sparse_featurizer.regex_featurizer.RegexFeaturizer
constructor_name: load
fn: process_training_data
config: {}
Expand All @@ -107,8 +107,8 @@ nodes:
run_MitieFeaturizer5:
needs:
training_data: run_RegexFeaturizer4
model: run_MitieNLP0
uses: rasa.nlu.featurizers.dense_featurizer.mitie_featurizer.MitieFeaturizerGraphComponent
model: provide_MitieNLP0
uses: rasa.nlu.featurizers.dense_featurizer.mitie_featurizer.MitieFeaturizer
constructor_name: load
fn: process_training_data
config: {}
Expand All @@ -119,7 +119,7 @@ nodes:
train_SklearnIntentClassifier6:
needs:
training_data: run_MitieFeaturizer5
uses: rasa.nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifierGraphComponent
uses: rasa.nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifier
constructor_name: create
fn: train
config: {}
Expand Down
Loading