Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2187

ps -p does not work in alpine or busy box by default

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Maven Surefire Plugin
    • None

    Description

      Our builds were failing with the error:

      System.exit() or native command error interrupted process checker.
      java.lang.IllegalStateException: Cannot use PPID 687 process information. Going to use NOOP events.
          at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)

      checking the code it looks like you run ps -p:

      https://github.com/apache/maven-surefire/blob/47eb1974ef2fb77c621e5cb0c47ac10ab8f4753d/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java#L186C59-L186C71

       

      installing procps in alipine seems to fix it

       

      I wonder if it is possible add something to check if ps supports the -p flag as I imagine I'm not the only one to use alpine to build software?

      Simply adding an error that the ps doesn't support -p would save significant time

      Attachments

        Activity

          People

            Unassigned Unassigned
            msillence Martin Sillence
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: