Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ESS EPICS Environment
wrappers
e3-require
Commits
f9a262cc
Commit
f9a262cc
authored
5 months ago
by
Anders Lindh Olsson
Browse files
Options
Downloads
Plain Diff
Merge branch 'e3-1719' into 'master'
E3-1719
: Break bidirectional dependencies See merge request
!194
parents
ca6b10d0
6273ca18
No related branches found
No related tags found
1 merge request
!194
E3-1719: Break bidirectional dependencies
Pipeline
#206226
passed
5 months ago
Stage: check
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-21
1 addition, 21 deletions
.gitlab-ci.yml
tests/requirements.txt
+0
-1
0 additions, 1 deletion
tests/requirements.txt
tests/utils.py
+19
-4
19 additions, 4 deletions
tests/utils.py
with
20 additions
and
26 deletions
.gitlab-ci.yml
+
1
−
21
View file @
f9a262cc
---
variables
:
E3_CI_BASE_VERSION
:
"
7.0.8.1-NA/7.0.8.1-68332f4-20240917T140931"
E3_CI_MODIFIED_BASE_VERSION
:
"
7.0.8.1-68332f4-20240917T140931"
E3_CI_MODIFIED_BASE_VERSION
:
"
7.0.8.1-68332f4-20240917T140931"
# strip the first part of the tag name - see E3-1529
stages
:
-
check
...
...
@@ -68,22 +67,3 @@ test require:
-
make test
needs
:
-
build require
test composite build
:
stage
:
test
before_script
:
-
pip freeze
-
pip install --upgrade pip
-
pip install --upgrade e3 --index-url https://artifactory.esss.lu.se/artifactory/api/pypi/pypi-virtual/simple
-
sed -i "s|BASE|${E3_CI_BASE_VERSION}|" tests/data/essioc.yml
-
sed -i "s|REQUIRE|${CI_COMMIT_SHORT_SHA}|" tests/data/essioc.yml
# We need to use a different install-path to explicitly avoid the pre-existing EPICS base build
# with a hashed require version from previous jobs
-
e3-build tests/data/essioc.yml --log-file test-composite-build.log --install-path $(pwd)/e3 --assume-yes
-
source $(pwd)/e3/base-*/require/*/bin/activate
script
:
-
run-iocsh -r essioc
artifacts
:
when
:
always
paths
:
-
"
*.log"
This diff is collapsed.
Click to expand it.
tests/requirements.txt
+
0
−
1
View file @
f9a262cc
pytest
run-iocsh
This diff is collapsed.
Click to expand it.
tests/utils.py
+
19
−
4
View file @
f9a262cc
...
...
@@ -6,7 +6,6 @@ from random import choice
from
string
import
ascii_lowercase
from
git
import
Repo
from
run_iocsh
import
IOC
class
Wrapper
:
...
...
@@ -179,6 +178,22 @@ def run_ioc_get_output(*args, **kwargs):
if
cell_path
:
ioc_args
.
extend
([
"
-l
"
,
cell_path
])
ioc_args
.
extend
(
args
)
with
IOC
(
*
ioc_args
,
ioc_executable
=
"
iocsh
"
)
as
ioc
:
time
.
sleep
(
1
)
return
ioc
.
proc
.
returncode
,
ioc
.
outs
,
ioc
.
errs
proc
=
subprocess
.
Popen
(
[
"
iocsh
"
,
*
ioc_args
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
)
time
.
sleep
(
1
)
try
:
stdout
,
stderr
=
proc
.
communicate
(
input
=
b
"
exit
\n
"
,
timeout
=
5
)
except
subprocess
.
TimeoutExpired
:
proc
.
kill
()
# Trying to run `subprocess.Popen.communicate()` can raise
#
# ValueError: Invalid file object: <_io.BufferedReader name=7>
#
# when stdin is already closed.
return
proc
.
returncode
,
stdout
.
decode
(
"
utf-8
"
),
stderr
.
decode
(
"
utf-8
"
)
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