Skip to content

fix: dont set value if invlid, added tests

477aba4
Select commit
Loading
Failed to load commit list.
Open

fix: return nil for non-positive epoch values in timestamp normalization #106

fix: dont set value if invlid, added tests
477aba4
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed Apr 23, 2025 in 7m 33s

Build Failed

The build failed. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #106 fix: return nil for non-positive epoch values in timestamp normalization.
Any changes that have been made to the main branch before the build ran are also included.

Jobs and Stages

This build has nine jobs, running in parallel.

Stage 1: Test

This stage failed.

Job ENV OS State
396.1 ELASTIC_STACK_VERSION=8.previous DOCKER_ENV=dockerjdk21.env Linux failed
396.2 ELASTIC_STACK_VERSION=8.current DOCKER_ENV=dockerjdk21.env Linux failed
396.3 ELASTIC_STACK_VERSION=7.current Linux failed
396.4 SNAPSHOT=true ELASTIC_STACK_VERSION=main DOCKER_ENV=dockerjdk21.env Linux failed
396.5 SNAPSHOT=true ELASTIC_STACK_VERSION=8.future DOCKER_ENV=dockerjdk21.env Linux passed
396.6 SNAPSHOT=true ELASTIC_STACK_VERSION=8.next DOCKER_ENV=dockerjdk21.env Linux failed
396.7 SNAPSHOT=true ELASTIC_STACK_VERSION=8.current DOCKER_ENV=dockerjdk21.env Linux failed
396.8 SNAPSHOT=true ELASTIC_STACK_VERSION=8.previous DOCKER_ENV=dockerjdk21.env Linux failed
396.9 SNAPSHOT=true ELASTIC_STACK_VERSION=7.current Linux failed

Build Configuration

Build Option Setting
Language Shell
Operating System Linux (Focal)
Build Configuration
{
  "_performance": {
    "install": ".ci/performance/docker-setup.sh",
    "script": ".ci/performance/docker-run.sh"
  },
  "language": "shell",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "stages": [
    {
      "name": "Test"
    },
    {
      "name": "Performance",
      "if": "env(HAS_PERFORMANCE_TESTS) == \"1\""
    }
  ],
  "env": [
    "jobs={:ELASTIC_STACK_VERSION=>\"8.previous\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:ELASTIC_STACK_VERSION=>\"8.current\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:ELASTIC_STACK_VERSION=>\"7.current\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"main\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"8.future\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"8.next\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"8.current\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"8.previous\", :DOCKER_ENV=>\"dockerjdk21.env\"}={:SNAPSHOT=>\"true\", :ELASTIC_STACK_VERSION=>\"7.current\"}"
  ],
  "jobs": {
    "include": [
      {
        "stage": "Performance",
        "name": "Performance Base-Line",
        "install": [
          ".ci/performance/docker-setup.sh"
        ],
        "script": [
          ".ci/performance/docker-run.sh"
        ],
        "env": [
          {
            "ELASTIC_STACK_VERSION": "7.current"
          }
        ]
      },
      {
        "install": [
          ".ci/performance/docker-setup.sh"
        ],
        "script": [
          ".ci/performance/docker-run.sh"
        ],
        "env": [
          {
            "ELASTIC_STACK_VERSION": "8.current",
            "DOCKER_ENV": "dockerjdk21.env"
          }
        ]
      },
      {
        "install": [
          ".ci/performance/docker-setup.sh"
        ],
        "script": [
          ".ci/performance/docker-run.sh"
        ],
        "env": [
          {
            "ELASTIC_STACK_VERSION": "8.previous",
            "DOCKER_ENV": "dockerjdk21.env"
          }
        ]
      },
      {
        "install": [
          ".ci/performance/docker-setup.sh"
        ],
        "script": [
          ".ci/performance/docker-run.sh"
        ],
        "env": [
          {
            "SNAPSHOT": "true",
            "ELASTIC_STACK_VERSION": "8.future",
            "DOCKER_ENV": "dockerjdk21.env"
          }
        ]
      },
      {
        "install": [
          ".ci/performance/docker-setup.sh"
        ],
        "script": [
          ".ci/performance/docker-run.sh"
        ],
        "env": [
          {
            "SNAPSHOT": "true",
            "ELASTIC_STACK_VERSION": "main",
            "DOCKER_ENV": "dockerjdk21.env"
          }
        ]
      }
    ]
  },
  "before_install": [
    "mkdir -p .ci && curl -sL https://github.com/logstash-plugins/.ci/archive/1.x.tar.gz | tar zxvf - --skip-old-files --strip-components=1 -C .ci --wildcards \"*Dockerfile*\" \"*docker*\" \"*.sh\""
  ],
  "install": [
    ".ci/docker-setup.sh;\nexit_code=$?;\ncase $exit_code in\n  0)\n    echo \"Install succeeded.\"\n    ;;\n  1)\n    echo \"Failed to pull logstash-${ELASTIC_STACK_VERSION}. Likely due to missing DRA build.\"\n    export SKIP_SCRIPT=true\n    ;;\n  2)\n    echo \"Failed to pull logstash-${ELASTIC_STACK_VERSION}. The image should exist. Aborting build.\"\n    exit $exit_code\n    ;;\n  *)\n    echo \"Install failed with an unexpected code: $exit_code. Stopping build.\"\n    exit $exit_code\n    ;;\nesac\n"
  ],
  "script": [
    "if [ \"$SKIP_SCRIPT\" = \"true\" ]; then\n  exit 0\nelse\n  .ci/docker-run.sh\nfi"
  ]
}