Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
13ee49e
testing
piotrek6641 Jul 25, 2023
e9425b6
option to find sequenceId by name
piotrek6641 Jul 25, 2023
8b0202c
Returns list of id's instead single id
piotrek6641 Jul 26, 2023
7774cdc
moved cli functionality inside list option
piotrek6641 Jul 26, 2023
4879a95
Merge pull request #921 from scramjetorg/main
agne6ka Jul 26, 2023
c4ff140
display space version (#909)
piotrek6641 Jul 27, 2023
5daaf8e
Merge pull request #919 from scramjetorg/feat/getSequenceId
alicja-gruzdz Jul 31, 2023
be8f37b
Changes in types and messages
gzukowski Aug 7, 2023
24d7963
Fixed import cycle
gzukowski Aug 8, 2023
a1bf0d9
Fixed lack of seqId
gzukowski Aug 8, 2023
df74bde
Fixed lack of seqId
gzukowski Aug 8, 2023
ba7db63
Feat/remove config logs (#923)
piotrek6641 Aug 10, 2023
9d7bfa0
Change in response type for /entities
gzukowski Aug 10, 2023
29631cc
Remove files
Aug 11, 2023
3234205
Merge pull request #929 from scramjetorg/fix/remove-configs
a-tylenda Aug 11, 2023
5236b36
New type for /list response
gzukowski Aug 11, 2023
e3a3ba6
Fix CLI not to read space state when it's not needed
MichalCz Aug 11, 2023
70ac7b4
Bump protobufjs from 6.11.3 to 6.11.4
dependabot[bot] Aug 16, 2023
b95ff00
Corrected types
gzukowski Aug 21, 2023
4b9e285
Applied fixes according to changes in types
gzukowski Aug 21, 2023
5afcd7f
getSequences with only ids
gzukowski Aug 21, 2023
d5f6a65
fix for 403 error
piotrek6641 Aug 4, 2023
f906256
check env
piotrek6641 Aug 22, 2023
8bb190a
call initPlatform in hub by default
piotrek6641 Aug 22, 2023
8e67ad0
Merge pull request #931 from scramjetorg/dependabot/npm_and_yarn/prot…
alicja-gruzdz Aug 23, 2023
49419cc
Merge pull request #926 from scramjetorg/feat/instances-endpoint
gzukowski Aug 28, 2023
042edaa
Fix workflows - delete node-14, nstall pigz, make longer timout for a…
tomekcrm Aug 28, 2023
40f9efa
Merge pull request #938 from scramjetorg/fix/workflow-pigz-install
tomekcrm Aug 28, 2023
cf5a58e
Stream utils package
MichalCz Jul 25, 2023
4268267
Fix API server disconnection tracking
MichalCz Aug 11, 2023
55fc4bf
Topic fixes WIP
MichalCz Aug 11, 2023
2015844
Fixed version
MichalCz Aug 21, 2023
e1c90ec
Fix removal of observe-stream - to be introed in another PR
MichalCz Aug 21, 2023
048e695
Fix tests to accomodate the bug fix
MichalCz Aug 22, 2023
ae4e0c1
Some fixes to tests
MichalCz Aug 25, 2023
12c4eb2
Adjust bdd tests
Aug 28, 2023
4b7e11a
Show http status/code returned by platform
patuwwy Aug 23, 2023
cf2b3e5
Merge pull request #934 from scramjetorg/fix/shh-platform-http-info
patuwwy Aug 28, 2023
227f9bb
Merge pull request #930 from scramjetorg/fix/fix-cli-reads
patuwwy Aug 28, 2023
4bcf458
delete hub cli command
piotrek6641 Aug 8, 2023
9f4b945
Merge pull request #927 from scramjetorg/feat/delete-hubs
a-tylenda Aug 29, 2023
036fcb7
Topic debug vol.999
Aug 30, 2023
6cee3b0
Merge pull request #932 from scramjetorg/fix/topic-streaming-bug
a-tylenda Aug 30, 2023
865e099
Update tips in hub logs
Aug 31, 2023
0a9f229
Merge pull request #943 from scramjetorg/fix/tips
patuwwy Aug 31, 2023
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
150 changes: 0 additions & 150 deletions .github/workflows/_main_sth-build-test-node-14.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/build-docker-prerunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ jobs:
docker save $repo/$name:$tag -o $repo-$name-$tag-node-${{ inputs.node-version }}-docker-image.tar
done

- name: Zip image
run: pigz *-docker-image.tar
- name: Install pigz and zip image
run: |
sudo apt-get install pigz -y
pigz *-docker-image.tar

- name: Upload image as an artifact
uses: actions/upload-artifact@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-docker-runner-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
docker save $repo/$name:$tag -o $repo-$name-$tag-node-${{ inputs.node-version }}-docker-image.tar
done

- name: Zip image
run: pigz *-docker-image.tar
- name: Install pigz and zip image
run: |
sudo apt-get install pigz -y
pigz *-docker-image.tar

- name: Upload image as an artifact
uses: actions/upload-artifact@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-docker-runner-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
docker save $repo/$name:$tag -o $repo-$name-$tag-docker-image.tar
done

- name: Zip image
run: pigz *-docker-image.tar
- name: Install pigz and zip image
run: |
sudo apt-get install pigz -y
pigz *-docker-image.tar

- name: Upload image as an artifact
uses: actions/upload-artifact@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-docker-sth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ jobs:
docker save $repo/$name:$tag -o $repo-$name-$tag-node-${{ inputs.node-version }}-docker-image.tar
done

- name: Zip image
run: pigz *-docker-image.tar
- name: Install pigz and zip image
run: |
sudo apt-get install pigz -y
pigz *-docker-image.tar

- name: Upload image as an artifact
uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-refapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Build refapps
run: yarn build:refapps

- name: Install pigz
run: sudo apt-get install pigz -y

- name: Create artifact
run: tar --use-compress-program="pigz -0 --recursive" -cvf dist-refapps-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz packages/*.tar.gz
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-sth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:

- name: List dirs in dist
run: find dist -maxdepth 2 -type d


- name: Install pigz
run: sudo apt-get install pigz -y

- name: Create artifact
run: tar --use-compress-program="pigz --best --recursive" -cf dist-sth-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz dist/.

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ jobs:
path: docker-images

- name: Unzip docker images
run: pigz -d docker-images/*/*-docker-image.tar.gz
run: |
sudo apt-get install pigz -y
pigz -d docker-images/*/*-docker-image.tar.gz

- name: Load docker images
run: ls -1 docker-images/*/*-docker-image.tar | while read line; do docker load -i $line; done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-bdd-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dist-refapps-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz

- name: Install pigz
run: sudo apt-get install pigz -y

- name: Unzip dist-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz artifact
run: ls dist*tar.gz | xargs -n1 tar -I pigz -xf
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-bdd-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dist-refapps-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz


- name: Install pigz
run: sudo apt-get install pigz -y

- name: Unzip dist-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz artifact
run: ls dist*tar.gz |xargs -n1 tar -I pigz -xf

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
with:
name: dist-sth-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz

- name: Install pigz
run: sudo apt-get install pigz -y

- name: Unzip dist-sth-${{ github.event.pull_request.head.sha }}-${{ inputs.node-version }}.tar.gz artifact
run: ls dist*tar.gz |xargs -n1 tar -I pigz -xf

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,7 @@ timing-log.ndjson

# private working directories
/temp

# extra dist dirs

/dist.*
31 changes: 24 additions & 7 deletions bdd/features/e2e/E2E-011-cli-topic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@ This feature checks topic functionalities over CLI
@ci-topic @cli
Scenario: E2E-011 TC-001 API to API
Given I set config for local Hub
When I execute CLI with "topic send cities data/cities.json"
When I execute CLI with "topic send cities data/cities.json" without waiting for the end
Then I execute CLI with "topic get cities" without waiting for the end
Then I confirm data named "nyc-city-nl" will be received

@ci-topic @cli
Scenario: E2E-011 TC-002 Instance to API
When I execute CLI with "seq send ../packages/endless-names-output.tar.gz"
# When I execute CLI with "seq start - --output-topic names13"
When I execute CLI with "seq start -"
Then I execute CLI with "topic get names" without waiting for the end
Then I confirm data named "endless-names-10" will be received
And kill process "topic get"

@ci-topic @cli
Scenario: E2E-011 TC-003 API to Instance
When I execute CLI with "topic send avengers data/data.json"
When I execute CLI with "topic send avengers data/data.json" without waiting for the end
When I execute CLI with "seq send ../packages/hello-input-out.tar.gz"
When I execute CLI with "seq start - --input-topic avengers "
And wait for "10000" ms
And I execute CLI with "inst output -" without waiting for the end
Then I confirm data named "hello-avengers" will be received
When I execute CLI with "inst kill - --removeImmediately"

# TODO: need to test this via separate two sequences
@ci-topic @cli
Expand All @@ -37,19 +38,35 @@ This feature checks topic functionalities over CLI
And wait for "4000" ms
And I execute CLI with "inst output -" without waiting for the end
Then I confirm data named "hello-input-out-10" will be received
When I execute CLI with "inst kill - --removeImmediately"

@ci-topic @cli
Scenario: E2E-011 TC-005 Complete data delivery
Scenario: E2E-011 TC-005 Complete data delivery when topic initiated by "topic send"
Given host is running
Then send json data "Bonnie" named "pets"
Then send json data "Rosa" named "pets"
Then send json data "Fahume" named "pets"
Then I execute CLI with "topic get pets" without waiting for the end
Then I execute CLI with "topic get pets" and collect data
Then I confirm data named "pets" will be received
Then send json data "Yogi" named "pets"
Then send json data "Molly" named "pets"
Then send json data "Sisi" named "pets"
And wait for "1000" ms
Then I confirm all topic data named "pets2" received
And host is still running
And kill process "topic get"

@ci-topic @cli
Scenario: E2E-011 TC-006 Complete data delivery when topic initiated by "topic get"
Given host is running
Then I execute CLI with "topic get pets" and collect data
Then send json data "Bonnie" named "pets"
Then send json data "Rosa" named "pets"
Then send json data "Fahume" named "pets"
Then I confirm data named "pets" will be received
Then send json data "Yogi" named "pets"
Then send json data "Molly" named "pets"
Then send json data "Sisi" named "pets"
Then I execute CLI with "topic get pets" without waiting for the end
Then I confirm data named "pets2" will be received
And wait for "1000" ms
Then I confirm all topic data named "pets2" received
And host is still running
16 changes: 15 additions & 1 deletion bdd/features/e2e/E2E-013-topic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ Feature: E2E topic tests
The tests check topic functionalities, where we send and receive data from /topic/:name endpoint by using api-client

@ci-api
Scenario Outline: E2E-013 TC-000 Topic content-type <content type> compatibility
Given host is running
Then send data "{ \"city\": \"New York\" }" named <topic name> and content-type <content type>
Then get data named <topic name> and content-type <content type>
Then confirm data defined as "nyc-city-nl" will be received
And host is still running

Examples:
| topic name | content type |
| "city1" | "text/x-ndjson" |
| "city2" | "text/plain" |
| "city3" | "application/octet-stream" |
| "city4" | "application/x-ndjson" |
@ci-api
Scenario: E2E-013 TC-001 API to API
Given host is running
Then send json data "{ \"city\": \"New York\" }" named "city"
Expand Down Expand Up @@ -103,5 +117,5 @@ The tests check topic functionalities, where we send and receive data from /topi
And topic "RegularTopic" is created
Then confirm topics contain "RegularTopic"
Then remove topic "RegularTopic"
Then confirm topics are empty
Then confirm topic "RegularTopic" is removed

Loading