Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
core
picodata
Commits
48f59e0b
Commit
48f59e0b
authored
10 months ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
test: fix gostech tests fro release builds
parent
7d6f66b3
No related branches found
No related tags found
1 merge request
!978
ci: run release tests on a separate CI job
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
test/conftest.py
+3
-4
3 additions, 4 deletions
test/conftest.py
with
5 additions
and
7 deletions
.gitlab-ci.yml
+
2
−
3
View file @
48f59e0b
...
...
@@ -232,8 +232,8 @@ test-linux:
# Now do the same thing as above but for release mode.
# TODO: cleanup the copypasta
-
cargo build --locked --release
-
cargo build -p gostech-audit-log --release
-
cargo build -p testplug --release
-
cp ./target/release/libtestplug.so ./test/testplug/.
-
cargo test --locked --release
-
cargo build --features webui,error_injection --locked --release
...
...
@@ -298,8 +298,7 @@ test-patch-picodata:
-
cargo build --locked --release --features dynamic_build
-
cargo build -p testplug --release
-
cargo build -p gostech-audit-log
-
cp ./target/release/libtestplug.so ./test/testplug/.
-
cargo build -p gostech-audit-log --release
-
cargo test --locked --release --features dynamic_build
-
cargo build --features webui,error_injection --locked --release --features dynamic_build
...
...
This diff is collapsed.
Click to expand it.
test/conftest.py
+
3
−
4
View file @
48f59e0b
...
...
@@ -1915,9 +1915,6 @@ class AuditServer:
self
.
port
=
port
self
.
process
:
Process
|
None
=
None
self
.
queue
:
Queue
[
Dict
[
str
,
Any
]]
=
Queue
(
maxsize
=
10_000
)
self
.
target
=
json
.
loads
(
subprocess
.
check_output
([
"
cargo
"
,
"
metadata
"
,
"
--format-version=1
"
])
)[
"
target_directory
"
]
def
start
(
self
)
->
None
:
if
self
.
process
is
not
None
:
...
...
@@ -1947,8 +1944,10 @@ class AuditServer:
self
.
process
.
start
()
def
cmd
(
self
,
binary_path
:
str
)
->
str
:
binary
=
os
.
path
.
realpath
(
os
.
path
.
join
(
self
.
target
,
"
debug/gostech-audit-log
"
))
target_dir
=
os
.
path
.
dirname
(
binary_path
)
binary
=
os
.
path
.
realpath
(
os
.
path
.
join
(
target_dir
,
"
gostech-audit-log
"
))
args
=
f
"
--url http://
{
BASE_HOST
}
:
{
self
.
port
}
/log --debug
"
return
f
"
|
{
binary
}
{
args
}
"
def
logs
(
self
)
->
List
[
Dict
[
str
,
Any
]]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment