[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] ci: check longer timeout for autopkgtest



Title: GitLab

Axel Beckert pushed to branch master at lintian / lintian

Commits:

  • 3678cc5a
    by Kentaro Hayashi at 2024-05-06T00:08:56+09:00
    ci: check longer timeout for autopkgtest
    
    The default value of CI_JOB_TIMEOUT is 1h (3600), but autopkgtest will
    not finish in 1 hour generally.
    
    lintian/lintian CI/CD setting of timeout is extended to 3h, but
    not true for forked/contributors lintian CI/CD settings - so it always
    fail.
    
    This MR aimed to fix warn such a situation in advance.
    
    Signed-off-by: Kentaro Hayashi <kenhys@gmail.com>
    

1 changed file:

Changes:

  • debian/salsa-ci.yml
    ... ... @@ -28,3 +28,13 @@ variables:
    28 28
       before_script:
    
    29 29
       - apt-get update
    
    30 30
       - apt-get install -y ${WORKING_DIR}/lintian_*.deb
    
    31
    +
    
    32
    +# Try to check whether the maximum job timeout is extended to longer one.
    
    33
    +.test-autopkgtest: &test-autopkgtest
    
    34
    +  before_script:
    
    35
    +    - 'echo "CI/CD Settings / General pipelines / Timeout: $CI_JOB_TIMEOUT seconds"'
    
    36
    +    - |
    
    37
    +      if [[ $CI_JOB_TIMEOUT -le 3600 ]]; then
    
    38
    +        echo -e "\e[31;1mERROR: CI/CD Settings / General pipelines / Timeout is too short ($CI_JOB_TIMEOUT). Use longer timeout - e.g. 7200 (2h) is enough.\e[0m"
    
    39
    +        exit 1
    
    40
    +      fi


  • Reply to: