chia7712 commented on code in PR #17654:
URL: https://github.com/apache/kafka/pull/17654#discussion_r1825687905


##########
.github/workflows/build.yml:
##########
@@ -35,6 +35,50 @@ on:
         type: boolean
 
 jobs:
+  load-catalog:
+    runs-on: ubuntu-latest
+    name: Load Test Catalog
+    steps:
+      - name: Checkout branch
+        uses: actions/checkout@v4
+        with:
+          ref: 'test-catalog'
+          persist-credentials: false
+          fetch-depth: 100  # Needs to be large enough to ensure we can fetch 
N days ago
+
+      - name: Checkout catalog at earlier date
+        run: |
+          SHA=$(git rev-list -1 --before 7.days.ago origin/test-catalog)
+          echo $SHA
+          git switch --detach $SHA
+
+      - name: Checkout trunk
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          path: trunk
+
+      - name: Setup Python
+        uses: ./trunk/.github/actions/setup-python

Review Comment:
   why does it require "./trunk" ?



##########
.github/workflows/build.yml:
##########
@@ -35,6 +35,50 @@ on:
         type: boolean
 
 jobs:
+  load-catalog:
+    runs-on: ubuntu-latest
+    name: Load Test Catalog
+    steps:
+      - name: Checkout branch
+        uses: actions/checkout@v4
+        with:
+          ref: 'test-catalog'
+          persist-credentials: false
+          fetch-depth: 100  # Needs to be large enough to ensure we can fetch 
N days ago
+
+      - name: Checkout catalog at earlier date
+        run: |
+          SHA=$(git rev-list -1 --before 7.days.ago origin/test-catalog)
+          echo $SHA
+          git switch --detach $SHA
+
+      - name: Checkout trunk
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          path: trunk
+
+      - name: Setup Python
+        uses: ./trunk/.github/actions/setup-python
+        with:
+          requirements-file: ./trunk/.github/scripts/requirements.txt

Review Comment:
   ditto



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to