Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLX1v-008UP5-Qe for pgsql-jdbc-commits@arkaria.postgresql.org; Thu, 04 Jan 2024 23:21:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rLX1t-00G6JL-QS for pgsql-jdbc-commits@arkaria.postgresql.org; Thu, 04 Jan 2024 23:21:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLX1t-00G6JD-JG for pgsql-jdbc-commits@lists.postgresql.org; Thu, 04 Jan 2024 23:21:37 +0000 Received: from out-28.smtp.github.com ([192.30.252.211]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLX1q-00Dlgd-NQ for pgsql-jdbc-commits@lists.postgresql.org; Thu, 04 Jan 2024 23:21:36 +0000 Received: from github.com (hubbernetes-node-f7c426e.ash1-iad.github.net [10.56.167.34]) by smtp.github.com (Postfix) with ESMTPA id 9E298100929 for ; Thu, 4 Jan 2024 15:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2023; t=1704410493; bh=IEiykdZONL2puU8vBD9k5+UaDeiM6jwUg9UNrqS0Z7g=; h=Date:From:To:Subject:From; b=H97lMEPDecLmobtJxI5TWR+UvvzZ6Kj3PLDRe8JH2j/Zp32b34BdalLtMaLUd95lI +DTy362kSB0ayXIsBJyAfZkuIqfzF4uhlpU9xl+MB6aZ/jvF8MlAeUCw9XxLFchC6E ehvd0PgHhQ+UfAA6uyGc+v3L9ExyAHsksaJsrQcI= Date: Thu, 04 Jan 2024 15:21:33 -0800 From: Sehrope Sarkuni To: pgsql-jdbc-commits@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] aa235e: test: Use deterministic RNG for randomized test ma... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc-commits@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: aa235e14c2213d1386100e62206006d83082d914 https://github.com/pgjdbc/pgjdbc/commit/aa235e14c2213d1386100e62206006d83082d914 Author: Sehrope Sarkuni Date: 2024-01-04 (Thu, 04 Jan 2024) Changed paths: M .github/workflows/main.yml M .github/workflows/matrix.js M .github/workflows/matrix_builder.js A .github/workflows/rng.js A .github/workflows/seedrandom.js Log Message: ----------- test: Use deterministic RNG for randomized test matrix Change randomized test matrix to use a deterministic RNG. If the RNG_SEED environment variable is defined, it will be used as the initial seed for the RNG. Alternatively, if the GITHUB_PR_NUMBER environment variable is defined, it will be used to generate a deterministic RNG seed to ensure that all test cycles for the same PR generate the same test matrix of random environments. If neither environment variable is defined then a random seed will be generated and logged to the console. Re-running the action using that seed with the same matrix generation codebase will generate the same matrix. The actual RNG code is copied from seedrandom: https://github.com/davidbau/seedrandom/commit/4460ad325a0a15273a211e509f03ae0beb99511a