Skip to content

Commit

Permalink
Merge branch 'RESTAPI-1080-improve-tasks-msg' into 'master'
Browse files Browse the repository at this point in the history
Restapi 1080 improve tasks msg

See merge request firecrest/firecrest!298
  • Loading branch information
Juan Pablo Dorsch committed Apr 26, 2024
2 parents 3710782 + 54221a3 commit 0138482
Show file tree
Hide file tree
Showing 127 changed files with 311 additions and 133 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed error on pipeline when releasing production version.
- Fixed response in task after timeout in one of the commands.
- Handle `ChunkedEncodingError` error in task creation to avoid crashing and returning 500 Error.
- Fixed compute task error message on system not available

## [1.15.0]

Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Contributors

- Aliaga, Tomas. ETH Zurich - CSCS
- Bonesana, Ivano. ETH Zurich - CSCS
- Cruz, Felipe. ETH Zurich - CSCS
- Dabin, Alejandro. ETH Zurich - CSCS
- Dorsch, Juan Pablo. ETH Zurich - CSCS
- Klein, Mark. ETH Zurich - CSCS
- Koutsaniti, Eirini. ETH Zurich - CSCS
- Lezcano, Facundo. UNL-CONICET - CIMEC
- Palme, Elia. ETH Zurich - CSCS
- Sarmiento, Rafael. ETH Zurich - CSCS
- Sewell, Christopher John. EPFL
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018-2023 ETH Zurich. All rights reserved.
Copyright (c) 2018-2024 ETH Zurich. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!groovy
//
// Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
// Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
//
// Please, refer to the LICENSE file in the root directory.
// SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/refresh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/retest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/demo/demo_client/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/demo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/demo/kong/kong.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/demo/source/kong/update_kong_config.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/demo/taskpersistence/redis.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/base/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ PyJWT==2.4.0
requests==2.22.0
jaeger_client==4.5.0
Flask-Opentracing==1.1.0
gunicorn==20.1.0
gunicorn==22.0.0
Flask-Caching==2.1.0
2 changes: 1 addition & 1 deletion deploy/docker/certificator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/ci-util/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/compute/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/status/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/storage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/tasks/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/tester/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/utilities/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/client/templates/cm.client_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
data:
config.py: |
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/rsyslog/listen.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/rsyslog/rsyslog.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/slurm/slurm.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/slurm/slurmdbd.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/slurm/start_db.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/slurm/start_slurmctld.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/slurm/start_slurmdbd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/ssh/ssh_command_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/supervisord.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/cluster/test_sbatch.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion deploy/test-build/taskpersistence/redis.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion doc/openapi/firecrest-api.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion doc/openapi/firecrest-developers-api.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
## Copyright (c) 2019-2023, ETH Zurich. All rights reserved.
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# -- Project information -----------------------------------------------------

project = 'FirecREST'
copyright = '2018-2023, ETH Zurich'
copyright = '2018-2024, ETH Zurich'
author = 'CSCS'

# The master toctree document.
Expand Down
6 changes: 6 additions & 0 deletions examples/CI-pipeline/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
#
name: CI

# Controls when the workflow will run
Expand Down
6 changes: 6 additions & 0 deletions examples/CI-pipeline/ci/ci_script.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
#
import firecrest as fc
import os
import time
Expand Down
7 changes: 6 additions & 1 deletion examples/CI-pipeline/ci/utilities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

#
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
#

def create_batch_script(repo, constraint, num_nodes=1, account=None, custom_modules=None, branch="main"):
script =f"""#!/bin/bash -l
Expand Down
6 changes: 6 additions & 0 deletions examples/CI-pipeline/dist/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
#
import numpy as np


Expand Down
6 changes: 6 additions & 0 deletions examples/UI-client-credentials/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
#
# Please, refer to the LICENSE file in the root directory.
# SPDX-License-Identifier: BSD-3-Clause
#
current_dir := $(shell pwd)

build:
Expand Down
7 changes: 7 additions & 0 deletions examples/UI-client-credentials/demo/cylinder.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash
##
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
##
#!/bin/bash -l
#SBATCH --job-name=sarus
#SBATCH --time=00:10:00
Expand Down
7 changes: 7 additions & 0 deletions examples/UI-client-credentials/demo/demo.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash
##
## Copyright (c) 2019-2024, ETH Zurich. All rights reserved.
##
## Please, refer to the LICENSE file in the root directory.
## SPDX-License-Identifier: BSD-3-Clause
##
#! /bin/bash -l
#SBATCH --job-name=sarus
#SBATCH --error=job-%j.err
Expand Down
Loading

0 comments on commit 0138482

Please sign in to comment.