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

Run integration tests on CI #13

Closed
2 of 7 tasks
php-coder opened this issue Aug 14, 2020 · 4 comments
Closed
2 of 7 tasks

Run integration tests on CI #13

php-coder opened this issue Aug 14, 2020 · 4 comments
Assignees
Labels
area/ci enhancement New feature or request
Milestone

Comments

@php-coder php-coder added the enhancement New feature or request label Aug 14, 2020
@php-coder php-coder self-assigned this Aug 14, 2020
@php-coder php-coder added this to the 0.0.3 milestone Aug 14, 2020
@php-coder
Copy link
Owner Author

Idea: we can generate from a single endpoints.yaml all supported types of applications, build them into docker container, run on different ports and execute tests against all of them at the same time.

@php-coder
Copy link
Owner Author

Idea: use --dest-dir option (#24)

php-coder added a commit that referenced this issue Oct 14, 2022
php-coder added a commit that referenced this issue Oct 14, 2022
php-coder added a commit that referenced this issue Oct 14, 2022
Correction for ef147be commit.

Part of #13
Part of #30
@php-coder
Copy link
Owner Author

After adding unit tests (#31) we should run them in CI as well.

php-coder added a commit that referenced this issue Oct 27, 2022
php-coder added a commit that referenced this issue Oct 28, 2022
…o fix warnings on CI

npm ci complained on CI:

npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile

and I install a newer node version (18) and updated the lock file with the following command:

$ nvm install --lts
$ npm install --package-lock-only

See https://stackoverflow.com/questions/68260784/npm-warn-old-lockfile-the-package-lock-json-file-was-created-with-an-old-version

Part of #13
php-coder added a commit that referenced this issue Oct 28, 2022
php-coder added a commit that referenced this issue Nov 7, 2022
php-coder added a commit that referenced this issue Nov 13, 2022
php-coder added a commit that referenced this issue Mar 19, 2024
php-coder added a commit that referenced this issue Mar 19, 2024
Error was: dpkg: error: requested operation requires superuser privilege

Correction for 206d310 commit.

Part of #13
php-coder added a commit that referenced this issue Mar 19, 2024
Error was: dpkg-deb: error: 'hurl_4.2.0_amd64.deb' is not a Debian format archive

Correction for 206d310 commit.

Part of #13
php-coder added a commit that referenced this issue Mar 19, 2024
php-coder added a commit that referenced this issue Mar 19, 2024
php-coder added a commit that referenced this issue Mar 19, 2024
php-coder added a commit that referenced this issue Mar 21, 2024
php-coder added a commit that referenced this issue Mar 23, 2024
…here 2 matrix jobs are running simultaneously

Correction for 6a5dc71 commit.

Relate to #13
php-coder added a commit that referenced this issue Mar 26, 2024
…me to an artifact

The error was:
Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

See also: actions/upload-artifact#480 (comment)

Part of #13
php-coder added a commit that referenced this issue Mar 26, 2024
php-coder added a commit that referenced this issue Mar 26, 2024
php-coder added a commit that referenced this issue Mar 27, 2024
… integration tests weren't run

When `docker compose up` has failed because a container couldn't startup, the integration tests step
is skipped and directory hurl-reports wasn't created. In this case, "Save application logs" step
also has been failing with error:
  tee: ../hurl-reports/application-logs.txt: No such file or directory

Part of #13
php-coder added a commit that referenced this issue Mar 27, 2024
For unknown reason, sometimes "Save report" step wasn't executed. Try to move it close to the step
that was failing.

Relate to #13
php-coder added a commit that referenced this issue Mar 27, 2024
php-coder added a commit that referenced this issue Mar 27, 2024
php-coder added a commit that referenced this issue Mar 27, 2024
php-coder added a commit that referenced this issue Mar 27, 2024
php-coder added a commit that referenced this issue Mar 27, 2024
php-coder added a commit that referenced this issue Mar 28, 2024
…matches input type

The error was:
NamedExec failed: Error 1366: Incorrect integer value: '' for column 'created_by' at row 1

Relate to #9
Relate to #13
php-coder added a commit that referenced this issue Mar 28, 2024
The error was:
Select failed: scannable dest type slice with >1 columns (4) in result

Relate to #9
Relate to #13
php-coder added a commit that referenced this issue Mar 28, 2024
php-coder added a commit that referenced this issue Mar 28, 2024
php-coder added a commit that referenced this issue Mar 28, 2024
This reverts commit 571e912.

Relate to #13
php-coder added a commit that referenced this issue Mar 29, 2024
…a healthcheck

The error was:
dependency failed to start: container fastapi-postgres-1 has no healthcheck configured

Part of #13
php-coder added a commit that referenced this issue Mar 29, 2024
The error was:
parsing docker-compose.yaml: yaml: line 37: did not find expected '-' indicator

Correction for 1abdf9b commit.

Relate to #13
php-coder added a commit that referenced this issue Apr 1, 2024
php-coder added a commit that referenced this issue Apr 4, 2024
php-coder added a commit that referenced this issue Apr 4, 2024
The error was: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

See https://stackoverflow.com/questions/76712720/typeerror-unsupported-operand-types-for-type-and-nonetype

Correction for 67a664a commit.

Part of #16
Relate to #13
php-coder added a commit that referenced this issue Apr 4, 2024
php-coder added a commit that referenced this issue Apr 5, 2024
…ntent type

Because FastAPI doesn't set "charset" parameter, this change should make the tests pass.

RFC 4627 does not define a charset parameter because it requires that JSON is always encoded as
Unicode (c) request/request#383 (comment)

Part of #13
php-coder added a commit that referenced this issue Apr 6, 2024
…integration tests pass

Partically reverts changes from f524f15 commit.

Reopen #23
Part of #13
Relate to #41
@php-coder
Copy link
Owner Author

Done!

php-coder added a commit that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant