All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tools.qDup.0.6.10.source-code.test.yaml Maven / Gradle / Ivy

Go to download

Coordinate multiple terminal shell connections for queuing performance tests and collecting output files

There is a newer version: 0.8.3
Show newest version
name: test
scripts:
  eap:
    - sh: cd ${{EAP_HOME}}
    - sh: rm /tmp/eap7.standalone.console.log
    - sh: rm ./standalone/log/*
    - sh: sed -i '/enable_jfr=/c\enable_jfr=${{ENABLE_JFR}}' ${{EAP_HOME}}/bin/standalone.conf
    - sh: sed -i '/jfr_settings=/c\jfr_settings="${{JFR_SETTINGS}}"' ${{EAP_HOME}}/bin/standalone.conf
    - queue-download: /tmp/eap7.standalone.console.log
    - queue-download: ${{EAP_HOME}}/standalone/log/*
    - queue-download: ${{EAP_HOME}}/bin/standalone.sh
    - queue-download: ${{EAP_HOME}}/bin/standalone.conf
    - queue-download: ${{EAP_HOME}}/standalone/configuration/${{STANDALONE_XML}}
    - signal: SERVER_STARTING
    - sh: echo "test" >> /tmp/test.log
    - sh: ./bin/standalone.sh -c ${{STANDALONE_XML}} ${{STANDALONE_SH_ARGS}} > /tmp/eap7.standalone.console.log 2>/dev/null &
    - - echo:
    - sh: export SERVER_PID=$(jps | grep "jboss-modules.jar" | cut -d " " -f1)
    - - sh: echo ${SERVER_PID}
      - - regex: "\\s*(?\\S+)\\s*"
    - sleep: 1_000
    - sh: tail -f ./standalone/log/server.log
    - - watch:
        - regex: ".*? WFLYSRV0025: (?.*?) started in (?\\d+)ms.*"
        - - ctrlC:
          - log : eap ${{eapVersion}} started in ${{eapStartTime}}
          - signal: SERVER_STARTED
        - regex: ".*? WFLYSRV0026: .*"
        - - ctrlC:
          - abort: eap failed to start cleanly
        - regex: .*?FATAL.*
        - - echo:
          - ctrlC:
          - abort: FATAL starting eap
    - sh: grep --color=none "javaOpts\|JAVA_OPTS" /tmp/eap7.standalone.console.log
    - - regex: ".*? -Xloggc:(?\\S+).*"
      - - read-state: gcFile
        - - regex: "(?[^%]+)%.*"
          - - sh: lsof -p ${SERVER_PID} | grep --color=none "${{gcFile}}"
            - - regex: ".*? (?/.+?)[\r\n]+"
              - - log: updated gcFile=${{gcFile}}
      - - log: gcFile=${{gcFile}}
      - - queue-download: ${{gcFile}}
    - - regex: ".*? -XX:StartFlightRecording.*?filename=(?[^\\s,]+).*"
      - - queue-download: ${{jfrFile}}
    - sleep: 10_000
    - sh: kill ${SERVER_PID}
    - sleep: 4_000
    - signal: SERVER_STOPPED
---
hosts:
  local: wreicher@laptop:22
---
roles:
  server:
    hosts: local
    run-scripts:
      - eap
---
states:
  run:
    EAP_HOME: /home/wreicher/runtime/jboss-eap-7.1.0.DR17-quickstart
    ENABLE_JFR: false
    JFR_SETTINGS: profile_2ms
    STANDALONE_XML: standalone.xml
    STANDALONE_SH_ARGS: -b 0.0.0.0






© 2015 - 2024 Weber Informatics LLC | Privacy Policy