Skip to content

Commit

Permalink
[temp] Try to repro Scala-cli bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Sep 5, 2024
1 parent 341e87a commit aabacc4
Showing 1 changed file with 78 additions and 2 deletions.
80 changes: 78 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,69 @@ jobs:
# support binary compatibility for the plugin
run: sbt ++${{ inputs.scala }} unipublish/mimaReportBinaryIssues

repro-scala-cli-bug:
name: repro-scala-cli-bug
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '21'
- name: Pick CIRCT version
id: circt-version
run: |
if [[ -z "${{ inputs.circt }}" ]]; then
echo "version=version-file" >> "$GITHUB_OUTPUT"
else
echo "version=${{ inputs.circt }}" >> "$GITHUB_OUTPUT"
fi
- name: Install CIRCT
uses: circt/[email protected]
with:
version: ${{ steps.circt-version.outputs.version }}
github-token: ${{ github.token }}
- name: Setup Scala-cli
run: |
curl -fL https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-pc-linux.gz | gzip -d > scala-cli
chmod +x scala-cli
sudo mv scala-cli /usr/local/bin/scala-cli
- name: Run Tests
run: |
echo 'println("hello world")' > ./scala-cli-test.sc
./mill version &
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
scala-cli --server=false ./scala-cli-test.sc
mill:
name: compile project with mill
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -114,17 +177,30 @@ jobs:
github-token: ${{ github.token }}
- name: Set CIRCT Path Env
run: echo "CIRCT_INSTALL_PATH=$(pwd)/circt" >> $GITHUB_ENV
- name: Watch the file
run: |
sudo auditctl -w /home/runner/.cache/scalacli/local-repo/.1.5.0.tmp/version -p war
sudo systemctl start audit
- name: Install Lit
run: pip install lit
- name: Compile Mill
run: ./mill __.compile
run: ./mill --no-server __.compile
- name: Setup Scala-cli
run: |
curl -fL https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-pc-linux.gz | gzip -d > scala-cli
chmod +x scala-cli
sudo mv scala-cli /usr/local/bin/scala-cli
- name: Run Lit Tests
run: ./mill -i lit[${{ inputs.scala }}].run
run: ./mill --no-server lit[${{ inputs.scala }}].run
- name: Debug
if: always()
run: |
scala-cli --version
tree /home/runner/.cache/scalacli/local-repo
echo "======="
cat /home/runner/work/chisel/chisel/out/lit/2.13.14/litConfig.dest/Converter/.scala-build/stacktraces/*
echo "======="
sudo ausearch -f /home/runner/.cache/scalacli/local-repo/.1.5.0.tmp/version
doc:
name: Formatting
Expand Down

0 comments on commit aabacc4

Please sign in to comment.