Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
01bece0
Update docker files
tristpinsm Sep 17, 2025
d603f8f
Fix cmake file
slacrherbst Jun 1, 2023
7aca90b
Fix cmake file
slacrherbst Jun 1, 2023
aff8b75
Update
slacrherbst Jun 1, 2023
b0789d9
update
slacrherbst Jun 1, 2023
37037c8
update
slacrherbst Jun 1, 2023
488dfbf
Update
slacrherbst Jun 1, 2023
d75b45c
Don't attempt to open pcie if not enabled
slacrherbst Jun 6, 2023
e7e7258
Update
slacrherbst Jul 7, 2023
69f3f45
Save progress
slacrherbst Jul 11, 2023
af00002
Update
slacrherbst Jul 11, 2023
4d633f1
Bug fix updates for rogue v6
slacrherbst Jul 12, 2023
e44b22e
Update docker scripts
agustiner Jul 12, 2023
f8a29d9
Fix errors trying to start on real system
agustiner Jul 13, 2023
36dd2e8
Partial progress
slacrherbst Aug 11, 2023
e4eba08
Stage update
slacrherbst Aug 11, 2023
e86458d
cache
slacrherbst Aug 11, 2023
bfe847d
Update changes to caput and caget
slacrherbst Aug 15, 2023
524292d
Update
slacrherbst Sep 4, 2023
2d9c8c5
Update
slacrherbst Nov 20, 2023
fdc69fb
Fixed import for pcie card
agustiner Jan 25, 2024
ceaa01d
Fixed import for pcie card
agustiner Jan 25, 2024
1b8ac19
Add path for pcie card
agustiner Jan 25, 2024
fa1d771
Fix import path
agustiner Jan 25, 2024
697d467
Fix deprecated call to setZeroCopyEn.
tristpinsm Jan 25, 2024
a540ff5
Fix missing import in client.base.base_class
tristpinsm Jan 25, 2024
b56c75e
Fix missing ] in client.command.smurf_command
tristpinsm Jan 25, 2024
3d9a54c
Restore as_string option to caget in smurf_command
tristpinsm Jan 31, 2024
da467d8
Fix AMCc register root in base_class.
tristpinsm Jan 31, 2024
f259562
Fix execution of commands in caput.
tristpinsm Jan 31, 2024
9ef9152
Fix old register syntax in smurf_command.py
tristpinsm Mar 11, 2024
d768bd5
Fix some incompatible type register writes.
tristpinsm Mar 11, 2024
3c4a04f
Fix out of range set to EvrV2ChannelReg.
tristpinsm Mar 11, 2024
20c421c
Handle mismatched types in SmurfCommandMixin._caput.
tristpinsm Mar 12, 2024
d81ebef
Remove EPICS from CryoCard.
tristpinsm Mar 12, 2024
4db6d8b
fix:SmurfCommand Hex/str conversions.
tristpinsm Apr 3, 2024
86106cb
fix:SmurfBase replace errant EPICS syntax.
tristpinsm Apr 3, 2024
b6b294a
fix:SyncGroup Use new VariableWait function in rogue6.
tristpinsm Apr 3, 2024
d8413bd
bump rogue docker to R3.0.10
tristpinsm Apr 3, 2024
829e4d8
Fix ambigous call
tristpinsm Apr 3, 2024
b0b144e
Update
slacrherbst Jun 21, 2024
cf89436
Fix data receivers
tristpinsm Apr 30, 2024
36de491
Attempted fix
tristpinsm Apr 30, 2024
4cf6754
fix typos in previous commit
tristpinsm Apr 30, 2024
e21f4d0
Fix to smurfutil
tristpinsm Jun 13, 2024
27159fa
fix typo in SmurfDataReceiver
tristpinsm Jun 13, 2024
d8ebf4a
fix: rename 'Array' registers
tristpinsm Jun 21, 2024
4a7f15d
fix(_caput): Better handle numpy arrays.
tristpinsm Jun 21, 2024
acde9b0
Fix docker version
slacrherbst Jun 26, 2024
dca5c3b
Update docker version
slacrherbst Jun 26, 2024
d0931a5
fix(SmurfDataReceiver): Convert from numpy bytes array.
tristpinsm Aug 28, 2024
13f83e6
fix(SyncGroup): Crate listener before wait is called.
tristpinsm Aug 28, 2024
304f98a
fix(full_band_ampl_sweep): Remove redundant scaling
tristpinsm Aug 30, 2024
2848542
SmurfCommandMixin._caput: Log not print kwargs message.
tristpinsm Oct 2, 2024
d8af3fe
remove print statement from _caget
tristpinsm Dec 12, 2024
96e75e8
feat(SmurfCommandMixin): Restore some of the legacy arguments to capu…
tristpinsm Mar 31, 2025
305d934
feat(SmurfCommandMixin._wait_for): Method to wait on variable update.
tristpinsm Mar 31, 2025
8f355d3
fix(SmurfCommandMixin.set_check_jesd): Use _wait_for.
tristpinsm Apr 1, 2025
0fefd9d
fix(smurf_tune): Remove deprecated use of new_epics_root.
tristpinsm Apr 1, 2025
4edd276
fix(smurf_util): Remove errant reference to epics_root.
tristpinsm Apr 1, 2025
cea5982
fix(smurf_tune): Remove remaining scaling of eta scan results.
tristpinsm Apr 1, 2025
f4581f7
fix(caput/caget): Log unexpected arguments.
tristpinsm Apr 17, 2025
a17cde9
fix(read_stream_data_daq): Index into value.
tristpinsm Apr 17, 2025
1e06a7b
fix(caput): Fix bug with execute flag.
tristpinsm Apr 24, 2025
5073346
fix(smurf_command): Restore wait arguments to read_all and set_defaults.
tristpinsm Apr 24, 2025
7d5764a
fix(smurf_util): Fix indexing bug.
tristpinsm Apr 24, 2025
2e361cb
fix(caput): Cast array types based on register type.
tristpinsm Apr 24, 2025
d7583d4
fix(set_channel_mask): Force channel mask to be a python list.
tristpinsm Apr 24, 2025
dbd9fde
fix(read_stream_data): Initialise arrays to avoid crash on empty files.
tristpinsm Apr 24, 2025
263a223
Fix base tags
slacrherbst May 13, 2025
801c460
fix(get_fpga_status): remove conversion to ASCII.
tristpinsm Jun 23, 2025
2417bf3
fix(take_debug_data): remove conversion to ASCII.
tristpinsm Jun 23, 2025
dcf0ac8
fix(set/get_streaming_datafile): Remove ASCII conversion.
tristpinsm Jun 23, 2025
0c7e285
fix(get_fpga_status): Check JESD on both bays.
tristpinsm Jun 23, 2025
d2d4119
fix(smurf_command): Remove use of SyncGroup in cryo-det wrapper funcs.
tristpinsm Sep 4, 2025
d47811f
fix(smurf_command): Enforce uint type for amplitude scale.
tristpinsm Sep 11, 2025
5cb76fb
fix(smurf_command): Correct centerFrequency register name.
tristpinsm Sep 11, 2025
15db5c4
feat(caput/caget): Support index argument.
tristpinsm Sep 12, 2025
acc9f43
feat(caput): Better handling of count argument.
tristpinsm Sep 12, 2025
5560fad
fix(set_defaults_pv): Reduce timeout.
tristpinsm Sep 12, 2025
f8cbdc2
fix(caput): Simplify type casting logic.
tristpinsm Sep 12, 2025
0400f00
Remove remaining epics argument in the arg parsing script.
tristpinsm Sep 17, 2025
d71b701
style: Flake8.
tristpinsm Sep 17, 2025
a39e59f
Fix reference to GITHUB_TOKEN in docker workflow.
tristpinsm Sep 17, 2025
fc15ec0
Update docker base
slacrherbst May 13, 2025
a66233f
fix tests
tristpinsm Sep 18, 2025
b0e9adc
github workflows: bump to ubuntu-latest and python 3.12
tristpinsm Sep 19, 2025
c2d3f0c
flake8: remove redundant nonlocal statement
tristpinsm Sep 19, 2025
d0100ec
fix(core.utilities.SetupGroups): setPollInterval.
tristpinsm Oct 21, 2025
4a5a867
fix(SmurfBase.C): Fix typo in cryo card init
tristpinsm Oct 29, 2025
30ef370
fix(SmurfCommand._caput): Ensure index argument is correct type
tristpinsm Oct 30, 2025
232a715
fix(SmurfCommand): Correct register access for RTM SpiMax in rogue 6
tristpinsm Oct 30, 2025
aa4677d
Clean up client docker files
tristpinsm Oct 31, 2025
4a85ca7
Clean up server docker files
tristpinsm Oct 31, 2025
82c611a
fix(SyncGroup): Fix bug that causes wait to timeout.
tristpinsm Nov 5, 2025
4d76a68
fix(SmurfCommand): Set caput/caget log to INFO by default.
tristpinsm Nov 5, 2025
c90328c
fix(set_data_buffer_size): Remove deprecated args, fix logging.
tristpinsm Nov 5, 2025
e363ea4
fix(full_band_resp): Log to INFO
tristpinsm Nov 5, 2025
f01d571
fix(setup_notches): Send verbose logs to INFO
tristpinsm Nov 5, 2025
3074e40
fix(CryoCard): Make writing more robust to type casting
tristpinsm Nov 5, 2025
d7558c9
fix(CryoCard): Improve logging and raise error on failed read.
tristpinsm Nov 5, 2025
9ba9312
fix(set_dac_axil_addr): Format value to fit enum.
tristpinsm Nov 5, 2025
ddc1ddc
fix(SmurfDataReceiver): Fix typo that made type tuple.
tristpinsm Nov 6, 2025
b7be25d
fix(set_filter_disable): Cast type to suppress warning.
tristpinsm Nov 6, 2025
fd26193
fix(SmurfControl): Don't pass all kwargs to setup
tristpinsm Nov 6, 2025
f9e1b8f
feat(Common): Add a variable to indicate when Root is ready.
tristpinsm Nov 6, 2025
8487b26
fix(SyncGroup): Remove listeners after.
tristpinsm Nov 6, 2025
0163064
fix(SmurfBase): Access ZMQ client in context manager.
tristpinsm Nov 6, 2025
2c480b7
refactor(SyncGroup): Reimplement with new pyrogue tool.
tristpinsm Nov 12, 2025
198bce1
style: Flake8 fixes.
tristpinsm Nov 20, 2025
8b0b222
fix(smurf_control): Restore shelf_manager adress.
tristpinsm Dec 12, 2025
34ba6d1
fix(server_scripts): Assign three ZMQ ports per slot.
tristpinsm Dec 15, 2025
c85c33b
fix(SmurfBase): Make client persistent but disable monitor thread.
tristpinsm Dec 15, 2025
a7e7563
fix(smurf_command): Typo in _trigger_delay_reg
tristpinsm Dec 18, 2025
9fa0940
fix(smurf_command): Typo in set_lmk_enable
tristpinsm Dec 18, 2025
69cecde
fix(set_evr_trigger_dest_type): Fix wrog enum mapping use.
tristpinsm Dec 18, 2025
d43d918
fix(smurf_util.band_off): Use array and don't disable FR.
tristpinsm Dec 18, 2025
387edeb
fix(SmurfAtcaMonitor): Fix client and registers.
tristpinsm Jan 8, 2026
aa6dbd9
Update base docker image to one that has rogue 6.8.0
tristpinsm Jan 8, 2026
3b153b4
fix(docker/server): Update smurf-pcie to 3.1.1
tristpinsm Jan 9, 2026
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
38 changes: 19 additions & 19 deletions .github/workflows/test-or-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
# Run flake8 on all .py files. Should block deploys to Read The Docs.
flake8:
name: Flake8 Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2

# Setup python3
- name: setup python 3.8.12
- name: setup python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.8.12
python-version: 3.12

# Install flake8 modules
- name: Install dependencies
Expand All @@ -53,7 +53,7 @@ jobs:
# Validate the server docker image definitions
docker-definitions:
name: Docker Definition Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
# Checkout the code.
# We use ssh key authentication to be able to access other private
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Validate the server definitions
shell: bash
env:
SWH76_TOKEN: ${{ secrets.SWH76_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SWH76_TOKEN }}
run: |
cd docker/server/
./validate.sh
Expand All @@ -79,18 +79,18 @@ jobs:
# Documentation automatic build tests
test-docs:
name: Documentation Build Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [flake8, docker-definitions] # Run only if all checks passed
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2

# Setup python 3.8.12
- name: Setup python 3.8.12
# Setup python 3.12
- name: Setup python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.8.12
python-version: 3.12

# Install requirements, pysmurf, and sphinx
- name: Install dependencies
Expand All @@ -108,7 +108,7 @@ jobs:
# Server tests
test-server:
name: Server Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [flake8, docker-definitions] # Run only if all checks passed
steps:
# Checkout the code
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
# Client tests
test-client:
name: Client Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [flake8, docker-definitions] # Run only if all checks passed
steps:
# Checkout the code
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
# Deploy new release notes to GitHub
deploy-release-notes:
name: Generate Release Notes
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [test-docs, test-server, test-client] # Run only if all tests passed
if: startsWith(github.ref, 'refs/tags/') # Run only on tagged releases
steps:
Expand All @@ -252,10 +252,10 @@ jobs:
run: echo ::set-output name=tag::"${GITHUB_REF#refs/tags/}"

# Setup python3
- name: Setup python 3.8.12
- name: Setup python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.8.12
python-version: 3.12

# Install dependencies of the releaseGen.py script
- name: Install dependencies
Expand All @@ -275,7 +275,7 @@ jobs:
# Server docker
deploy-server:
name: Build Server Docker Image
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [test-docs, test-server, test-client] # Run only if all tests passed
if: startsWith(github.ref, 'refs/tags/') # Run only on tagged releases
steps:
Expand All @@ -293,7 +293,7 @@ jobs:

# Login to Dockerhub
- name: Login to Dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: slacrherbst
Expand All @@ -307,7 +307,7 @@ jobs:
id: build
shell: bash
env:
SWH76_TOKEN: ${{ secrets.SWH76_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SWH76_TOKEN }}
run: |
cd docker/server/
./build.sh
Expand All @@ -316,7 +316,7 @@ jobs:
# Client docker
deploy-client:
name: Build Client Docker Image
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [test-docs, test-server, test-client] # Run only if all tests passed
if: startsWith(github.ref, 'refs/tags/') # Run only on tagged releases
steps:
Expand All @@ -336,7 +336,7 @@ jobs:

# Login to Dockerhub
- name: Login to Dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: slacrherbst
Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ if (DEFINED ENV{CONDA_PREFIX})
endif()

# Check cmake version
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.5)
include(InstallRequiredSystemLibraries)

# Project name
project (smurf)

# C/C++
enable_language(CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wno-deprecated")

#####################################
# Find Rogue & Support Libraries
Expand All @@ -38,7 +38,7 @@ if (DEFINED ENV{ROGUE_DIR})
else()
set(Rogue_DIR ${CMAKE_PREFIX_PATH}/lib)
endif()
find_package(Rogue)
find_package(Rogue REQUIRED)

#####################################
# Setup build
Expand All @@ -57,7 +57,7 @@ set_target_properties(smurf PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE
set_target_properties(smurf PROPERTIES PREFIX "")

# Link to rogue core
TARGET_LINK_LIBRARIES(smurf LINK_PUBLIC ${ROGUE_LIBRARIES})
TARGET_LINK_LIBRARIES(smurf PUBLIC ${ROGUE_LIBRARIES})

# Setup configuration file
set(CONF_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/include)
Expand Down
18 changes: 4 additions & 14 deletions docker/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM ghcr.io/slaclab/smurf-base:R3.0.3
FROM ghcr.io/slaclab/smurf-roguev6:R3.1.5

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
RUN apt-get update
RUN apt-get install -y \
python3-gi \
python3-gi-cairo \
python3-cairocffi \
Expand All @@ -13,7 +12,7 @@ RUN apt-get update && \
RUN pip3 install --upgrade pip

RUN pip3 install \
scipy==1.8.1 \
scipy \
pandas \
PyYAML \
pillow \
Expand All @@ -34,15 +33,6 @@ RUN mkdir -p /usr/local/src/pysmurf_utilities
ADD scripts/* /usr/local/src/pysmurf_utilities/
ENV PATH /usr/local/src/pysmurf_utilities:${PATH}

# By default EPICS is configured with 'EPICS_CA_AUTO_ADDR_LIST=YES'
# which will cause problems is we have multiple NIC, so let's set it
# to use localhost only for now
ENV EPICS_CA_AUTO_ADDR_LIST NO
ENV EPICS_CA_ADDR_LIST localhost

# Default EPICS prefix value
ENV EPICS_PREFIX "smurf_server"

# Set GTK3Agg as the matplotlib backend
ENV MPLBACKEND GTK3Agg

Expand Down
3 changes: 3 additions & 0 deletions docker/client/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker image build --build-arg branch=rogue_v6 -t roguev6_docker_client .
3 changes: 0 additions & 3 deletions docker/client/scripts/pysmurf_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import matplotlib.pyplot as plt
import pysmurf.client

# The epics prefix is defined in the environmental variable 'EPICS_PREFIX'
epics_prefix = os.getenv('EPICS_PREFIX')

# The path to the default configuration file, if any, is defined
# in the environmental variable 'CONFIG_FILE'
config_file = os.getenv('CONFIG_FILE')
Expand Down
2 changes: 1 addition & 1 deletion docker/client/scripts/start_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ if [ ! -z ${config_file+x} ]; then
fi

echo "Starting the ipython session"
ipython3 -i /usr/local/src/pysmurf_utilities/pysmurf_startup.py
ipython3 -i /usr/local/src/pysmurf_utilities/pysmurf_startup.py
7 changes: 4 additions & 3 deletions docker/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM ghcr.io/slaclab/smurf-rogue:R3.10.5
FROM ghcr.io/slaclab/smurf-roguev6:R3.1.5

# Copy all firmware related files, which are in the local_files directory
RUN mkdir -p /tmp/fw/ && chmod -R a+rw /tmp/fw/
COPY local_files /tmp/fw/

# Install the SMURF PCIe card repository
WORKDIR /usr/local/src
RUN git clone https://github.com/slaclab/smurf-pcie.git -b v2.0.0.1
RUN git clone https://github.com/slaclab/smurf-pcie.git -b v3.1.1
WORKDIR smurf-pcie
RUN git submodule sync && git submodule update --init --recursive
ENV PYTHONPATH /usr/local/src/smurf-pcie/software/python:${PYTHONPATH}
ENV PYTHONPATH /usr/local/src/smurf-pcie/firmware/python:${PYTHONPATH}
ENV PYTHONPATH /usr/local/src/smurf-pcie/firmware/submodules/axi-pcie-core/python:${PYTHONPATH}

# Install pysmurf
Expand All @@ -24,7 +25,7 @@ USER root
WORKDIR pysmurf
RUN mkdir build
WORKDIR build
RUN cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. && make -j4
RUN cmake -DCMAKE_PREFIX_PATH=/usr/local/lib .. && make -j4
ENV PYTHONPATH /usr/local/src/pysmurf/lib:${PYTHONPATH}
ENV PYTHONPATH /usr/local/src/pysmurf/python:${PYTHONPATH}
ENV SMURF_DIR /usr/local/src/pysmurf
Expand Down
6 changes: 3 additions & 3 deletions docker/server/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ git -C local_files clone -c advice.detachedHead=false ${config_repo} -b ${config
# Build the docker image. This same image will be pushed to both the stable
# and the base dockerhub repositories.
echo "Building docker image..."
docker image build --build-arg branch=${tag} -t docker_image . || exit 1
docker image build --build-arg branch=${tag} -t pysmurf_server . || exit 1

# Tag and push the image to the stable dockerhub repository
docker image tag docker_image ${dockerhub_org_name}/${dockerhub_repo_stable}:${tag}
docker image tag pysmurf_server ${dockerhub_org_name}/${dockerhub_repo_stable}:${tag}
docker image push ${dockerhub_org_name}/${dockerhub_repo_stable}:${tag}
echo "Docker image '${dockerhub_org_name}/${dockerhub_repo_stable}:${tag}' pushed"

# Tag and push the image to the stable dockerhub repository
docker image tag docker_image ${dockerhub_org_name}/${dockerhub_repo_base}:${tag}
docker image tag pysmurf_server ${dockerhub_org_name}/${dockerhub_repo_base}:${tag}
docker image push ${dockerhub_org_name}/${dockerhub_repo_base}:${tag}
echo "Docker image '${dockerhub_org_name}/${dockerhub_repo_base}:${tag}' pushed"
4 changes: 1 addition & 3 deletions docker/server/scripts/server_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ validateCommType()
comm_type='eth'
else
# Check if the communication type is invalid
if [ ${comm_type} != 'eth' ] && [ ${comm_type} != 'pcie' ]; then
if [ ${comm_type} != 'eth' ] && [ ${comm_type} != 'pcie' ] && [ ${comm_type} != 'emu' ]; then
echo "Invalid communication type!."
usage
fi
Expand Down Expand Up @@ -665,11 +665,9 @@ detect_amc_board()
elif [ ${type_str} == "A02" ]; then
echo "This is a HB board."
band_bay[$i]="hb"
system_type="umux"
elif [ ${type_str} == "A03" ]; then
echo "This is a TKID board."
band_bay[$i]="tkid"
system_type="tkid"
else
echo "Board type not supported."
echo
Expand Down
3 changes: 3 additions & 0 deletions docker/server/scripts/start_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ echo
if [ ${comm_type} == 'eth' ]; then
echo "Staring the server using Ethernet communication..."
cmd="/usr/local/src/pysmurf/server_scripts/cmb_eth.py ${args}"
elif [ ${comm_type} == 'emu' ]; then
echo "Staring the server using Emulation..."
cmd="/usr/local/src/pysmurf/server_scripts/emulate.py ${args}"
else
echo "Staring the server using PCIe communication..."
cmd="/usr/local/src/pysmurf/server_scripts/cmb_pcie.py ${args}"
Expand Down
7 changes: 4 additions & 3 deletions docker/server/validate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

# Validate definitions.sh
# RTH: Replaced AER7_TOKEN with GITHUB_TOKEN

#############
# FUNCTIONS #
Expand Down Expand Up @@ -54,7 +55,7 @@ check_if_private_tag_exist()
# Big blob of JSON with the tags in it.
local tags=$(curl \
--url $api_url \
--header "Authorization: token ${SWH76_TOKEN}" \
--header "Authorization: token ${GITHUB_TOKEN}" \
--fail)

# e.g. 0 if no match
Expand All @@ -80,7 +81,7 @@ check_if_private_asset_exist()
local file=$3

# Search the asset ID in the specified release
local r=$(curl --silent --header "Authorization: token ${SWH76_TOKEN}" "${repo}/releases/tags/${tag}")
local r=$(curl --silent --header "Authorization: token ${GITHUB_TOKEN}" "${repo}/releases/tags/${tag}")
eval $(echo "${r}" | grep -C3 "name.:.\+${file}" | grep -w id | tr : = | tr -cd '[[:alnum:]]=')

# return is the asset tag was found
Expand All @@ -106,7 +107,7 @@ get_private_asset()

# Try to download the asset
curl --fail --location --remote-header-name --remote-name --progress-bar \
--header "Authorization: token ${SWH76_TOKEN}" \
--header "Authorization: token ${GITHUB_TOKEN}" \
--header "Accept: application/octet-stream" \
"${repo}/releases/assets/${id}"
}
Expand Down
Loading
Loading