Details

    • Sprint 6 (24.03.2025), Sprint 7 (07.04.2025)

    Description

      required to test unix socket MTR tests

      $ git grep -l '$USER[^N]' mysql-test/
      mysql-test/include/have_unix_socket.inc
      mysql-test/main/failed_auth_unixsocket.test
      mysql-test/main/password_expiration_unix_socket.test
      mysql-test/suite/plugins/t/max_password_errors_auth_socket.test
      mysql-test/suite/plugins/t/multiauth.test
      mysql-test/suite/plugins/t/unix_socket.test
      

      env USER=buildbot
      in ci_build_images/buildbot-worker.Dockerfile as a solution?

      Attachments

        Activity

          danblack Daniel Black added a comment -

          note that windows uses USERNAME and its mtr test that depend on this for pipe authentication appear to be being run.

          danblack Daniel Black added a comment - note that windows uses USERNAME and its mtr test that depend on this for pipe authentication appear to be being run.

          why mtr isn't setting the current shell user as $USER?

          rvarzaru Varzaru Razvan-Liviu added a comment - why mtr isn't setting the current shell user as $USER?
          danblack Daniel Black added a comment -

          Maybe not a login shell. The print env is a early step in most builders and the env USER isn't set.

          danblack Daniel Black added a comment - Maybe not a login shell. The print env is a early step in most builders and the env USER isn't set.

          danblack now that I look closely on where MTR_ENV has an effect.

          I don't think it will work on macos:
          https://buildbot.mariadb.org/#/builders/590/builds/13805/steps/4/logs/stdio

            USER=ec2-user
            VIRTUAL_ENV=/Users/ec2-user/buildbot/prod/.venv
          

          on AIX user is ok
          https://buildbot.mariadb.org/#/builders/622/builds/9567/steps/5/logs/stdio

            TMPDIR=/home/buildbot/tmp
            TZ=UTC0
            USER=buildbot
          

          on windows setting USER has no effect?

          rvarzaru Varzaru Razvan-Liviu added a comment - danblack now that I look closely on where MTR_ENV has an effect. I don't think it will work on macos: https://buildbot.mariadb.org/#/builders/590/builds/13805/steps/4/logs/stdio USER=ec2-user VIRTUAL_ENV= /Users/ec2-user/buildbot/prod/ .venv on AIX user is ok https://buildbot.mariadb.org/#/builders/622/builds/9567/steps/5/logs/stdio TMPDIR= /home/buildbot/tmp TZ=UTC0 USER=buildbot on windows setting USER has no effect?
          rvarzaru Varzaru Razvan-Liviu added a comment - danblack https://github.com/MariaDB/buildbot/pull/738
          danblack Daniel Black added a comment -

          Windows only looks at USERNAME, USER is ignored.

          PR good.

          danblack Daniel Black added a comment - Windows only looks at USERNAME, USER is ignored. PR good.

          thanks danblack !

          rvarzaru Varzaru Razvan-Liviu added a comment - thanks danblack !

          Released in BB V1.05
          Further issues to be fixed in separate tasks.

          rvarzaru Varzaru Razvan-Liviu added a comment - Released in BB V1.05 Further issues to be fixed in separate tasks.

          People

            rvarzaru Varzaru Razvan-Liviu
            danblack Daniel Black
            Varzaru Razvan-Liviu Varzaru Razvan-Liviu
            Varzaru Razvan-Liviu Varzaru Razvan-Liviu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h 50m Original Estimate - 1h 50m
                1h 50m
                Remaining:
                Time Spent - 40m Remaining Estimate - 1h 50m
                1h 50m
                Logged:
                Time Spent - 40m Remaining Estimate - 1h 50m
                40m