From 8f64b6c4887b24395d43483883a8cfa788772480 Mon Sep 17 00:00:00 2001 From: Saaketh Date: Fri, 28 Jun 2024 11:27:30 -0700 Subject: [PATCH 1/3] linting_codeql --- .github/workflows/codeql-analysis.yml | 58 --------------------------- .github/workflows/linting.yaml | 2 +- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 7b32c9ebf..000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,58 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [main] - schedule: - - cron: "0 9 * * 1" # Every Monday at 09:00 (9:00 AM) - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: ["python"] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - # the following step is required to avoid running out of space - - name: Maximize build space - run: | - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - echo "Check space..." - df -h - - - name: Checkout repository - uses: actions/checkout@v3 - - name: Get composite run steps repository - uses: actions/checkout@v3 - with: - repository: mosaicml/ci-testing - ref: v0.0.2 - path: ./ci-testing - - uses: ./ci-testing/.github/actions/codeql-analysis - with: - language: ${{ matrix.language }} diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 4e5bd0930..69b3ea6bc 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v3 with: repository: mosaicml/ci-testing - ref: v0.0.2 + ref: v0.0.9 path: ./ci-testing - uses: ./ci-testing/.github/actions/code-quality with: From dbcba6ea9201471ee277efd9297fc83c3b1948b3 Mon Sep 17 00:00:00 2001 From: Saaketh Date: Fri, 28 Jun 2024 15:40:05 -0700 Subject: [PATCH 2/3] yo --- streaming/base/partition/relaxed.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/streaming/base/partition/relaxed.py b/streaming/base/partition/relaxed.py index 6baa0a48c..b932c3081 100644 --- a/streaming/base/partition/relaxed.py +++ b/streaming/base/partition/relaxed.py @@ -91,3 +91,6 @@ def get_partitions_relaxed(num_samples: int, # Re-transpose this partition matrix back to the original format below and return it: # (physical nodes, ranks per node, workers per rank, batches per worker, batch size) return partition.transpose(2, 3, 1, 0, 4) + + + From a3c4133c158a9a80971c6aa99301caa82844f241 Mon Sep 17 00:00:00 2001 From: Saaketh Date: Fri, 28 Jun 2024 15:40:37 -0700 Subject: [PATCH 3/3] yo --- streaming/base/partition/relaxed.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/streaming/base/partition/relaxed.py b/streaming/base/partition/relaxed.py index b932c3081..6baa0a48c 100644 --- a/streaming/base/partition/relaxed.py +++ b/streaming/base/partition/relaxed.py @@ -91,6 +91,3 @@ def get_partitions_relaxed(num_samples: int, # Re-transpose this partition matrix back to the original format below and return it: # (physical nodes, ranks per node, workers per rank, batches per worker, batch size) return partition.transpose(2, 3, 1, 0, 4) - - -