Commit dc3c8a2c authored by Jean Bez's avatar Jean Bez
Browse files

Organize the CI and fix small bug

parent 2458f9ce
Loading
Loading
Loading
Loading
+17 −5
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ stages:
  - build deps
  - build
  - test
  - test forwarding

variables:
  DEPS_SRC_PATH:                    "${CI_PROJECT_DIR}/deps/src"
@@ -137,6 +138,17 @@ integration tests:
    paths:
      - "${INTEGRATION_TESTS_RUN_PATH}"

integration GekkoFWD tests:
  stage: test GekkoFWD
  script:
    - mkdir -p ${INTEGRATION_TESTS_FWD_RUN_PATH}
    - cd ${INTEGRATION_TESTS_FWD_BIN_PATH} 
    - TMPDIR=${INTEGRATION_TESTS_FWD_RUN_PATH} unbuffer ${PYTEST} -v | tee ${INTEGRATION_TESTS_FWD_RUN_PATH}/session.log
  artifacts:
    when: on_failure
    paths:
      - "${INTEGRATION_TESTS_FWD_RUN_PATH}"

test wr:
  stage: test
  script:
@@ -198,7 +210,7 @@ test lseek:
     - "${LOG_PATH}"

test FWD wr:
  stage: test
  stage: test forwarding
  dependencies:
    - "compile dependencies"
    - "compile GekkoFWD"
@@ -216,7 +228,7 @@ test FWD wr:
     - "${LOG_PATH}"

test FWD directories:
  stage: test
  stage: test forwarding
  dependencies:
    - "compile dependencies"
    - "compile GekkoFWD"
@@ -234,7 +246,7 @@ test FWD directories:
     - "${LOG_PATH}"

test FWD truncate:
  stage: test
  stage: test forwarding
  dependencies:
    - "compile dependencies"
    - "compile GekkoFWD"
@@ -252,7 +264,7 @@ test FWD truncate:
     - "${LOG_PATH}"

test FWD path resolution:
  stage: test
  stage: test forwarding
  dependencies:
    - "compile dependencies"
    - "compile GekkoFWD"
@@ -270,7 +282,7 @@ test FWD path resolution:
     - "${LOG_PATH}"

test FWD lseek:
  stage: test
  stage: test forwarding
  dependencies:
    - "compile dependencies"
    - "compile GekkoFWD"
+0 −4
Original line number Diff line number Diff line
@@ -137,15 +137,11 @@ void *forwarding_mapper(void *p) {
            LOG(INFO, "{}() Forward to {}", __func__, CTX->fwd_host_id());
        } catch (std::exception& e) {
            exit_error_msg(EXIT_FAILURE, fmt::format("Unable set the forwarding host '{}'", e.what()));

            return;
        }

        // Sleeps for 10 seconds
        sleep(10);
    }

    return;
}
#endif