Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Compare revisions
66d3d7b5f1c9984f5c22b4c20bf9afaf0e7f0cf6 to e5fbc06f6e056ec58461f22711eb17fb0b340362
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
ai3/float
Select target project
No results found
e5fbc06f6e056ec58461f22711eb17fb0b340362
Select Git revision
Swap
Target
ai3/float
Select target project
ai3/float
micah/float
2 results
66d3d7b5f1c9984f5c22b4c20bf9afaf0e7f0cf6
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Rebuild test container on Dockerfile changes
· 03ca1437
ale
authored
3 months ago
03ca1437
Use pytest, generate JUnit output
· b7dcfd05
ale
authored
3 months ago
The artifacts are saved outside of the test container and retrieved to the CI runner.
b7dcfd05
Fix pytest option
· e5fbc06f
ale
authored
3 months ago
e5fbc06f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
test/Dockerfile
+2
-2
2 additions, 2 deletions
test/Dockerfile
test/integration-test.yml
+18
-1
18 additions, 1 deletion
test/integration-test.yml
with
21 additions
and
3 deletions
.gitlab-ci.yml
View file @
e5fbc06f
...
...
@@ -118,6 +118,7 @@ docker_build_and_release_tests:
only
:
changes
:
-
test/float_integration_test/**
-
test/Dockerfile
refs
:
-
master
This diff is collapsed.
Click to expand it.
test/Dockerfile
View file @
e5fbc06f
FROM
debian:stable
RUN
apt-get
-q
update
&&
env
DEBIAN_FRONTEND
=
noninteractive
\
apt-get
install
--no-install-recommends
-y
python3 python3-pip python3-setuptools python3-yaml python3-jinja2 python3-
nose
python3-dnspython
apt-get
install
--no-install-recommends
-y
python3 python3-pip python3-setuptools python3-yaml python3-jinja2 python3-
pytest
python3-dnspython
ADD
. /src
WORKDIR
/src
...
...
@@ -9,4 +9,4 @@ RUN python3 setup.py install
ENV
TEST_CONFIG=/test-config.yml
ENV
TEST_PARAMS=/src/float_integration_test/test-params.yml
CMD
["
nose
test
s3
", "-v", "float_integration_test"]
CMD
["
py
test", "-v",
"--junitxml=/artifacts/pytest.xml",
"float_integration_test"]
This diff is collapsed.
Click to expand it.
test/integration-test.yml
View file @
e5fbc06f
...
...
@@ -8,13 +8,30 @@
dest
:
/tmp/test-config.yml
content
:
"
{{
vars
|
to_nice_yaml
}}"
-
name
:
Create test artifact directory
file
:
path
:
"
/artifacts"
state
:
directory
mode
:
"
01777"
-
name
:
Pull the test suite container image
command
:
"
float-pull-image
{{
test_image
}}"
register
:
test_container_image
failed_when
:
"
test_container_image.rc
not
in
[0,
42]"
-
name
:
Run tests
command
:
"
podman
run
--rm
--network
host
--mount
type=bind,source=/tmp/test-config.yml,destination=/test-config.yml
{{
test_image
}}"
command
:
"
podman
run
--rm
--network
host
--mount
type=bind,source=/tmp/test-config.yml,destination=/test-config.yml
--mount
type=bind,source=/artifacts,destination=/artifacts
{{
test_image
}}"
-
name
:
Retrieve test result
slurp
:
src
:
"
/artifacts/pytest.xml"
register
:
pytest_xml
-
name
:
Store test results locally
local_action
:
module
:
copy
dest
:
"
pytest.xml"
content
:
"
{{
pytest_xml['content']
|
b64decode
}}"
vars
:
test_image
:
"
registry.git.autistici.org/ai3/float:integration-test"
This diff is collapsed.
Click to expand it.