Skip to content

Commit 593d2ed

Browse files
committed
pin miniforge and upgrade to ottr 1.5.2
1 parent ee007fb commit 593d2ed

File tree

16 files changed

+33
-26
lines changed

16 files changed

+33
-26
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
**v6.1.5 (unreleased):**
4+
5+
* Pin miniforge version in grading image to v25.3.1-0
6+
* Upgrade ottr in grading image to v1.5.2
7+
38
**v6.1.4:**
49

510
* Fixed R assignment grading to assign partial credit for all test cases (restoring an unintended change to pre-v6 behavior) per [#935](https://github.com/ucbds-infra/otter-grader/issues/935)

otter/generate/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323

2424
DEFAULT_PYTHON_VERSION = "3.12"
2525
JINJA_ENV = Environment(loader=PackageLoader(__name__), keep_trailing_newline=True)
26+
MINIFORGE_VERSION = "25.3.1-0"
2627
OTTER_ENV_NAME = "otter-env"
27-
OTTR_VERSION = "1.5.0"
28+
OTTR_VERSION = "1.5.2"
2829
TEMPLATE_DIR = importlib.resources.files(__name__) / "templates"
2930

3031

@@ -251,6 +252,7 @@ def main(
251252
"ottr_version": OTTR_VERSION,
252253
"channel_priority_strict": channel_priority_strict,
253254
"has_r_requirements": False,
255+
"miniforge_version": MINIFORGE_VERSION,
254256
}
255257

256258
if plugin_collection is None:

otter/generate/templates/python/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dpkg -i /tmp/pandoc.deb
1313

1414
# install mamba
1515
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
16-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
16+
then wget -nv https://github.com/conda-forge/miniforge/releases/{{ miniforge_version }}/download/Miniforge3-Linux-aarch64.sh \
1717
-O {{ autograder_dir }}/source/mamba_install.sh ; \
18-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
18+
else wget -nv https://github.com/conda-forge/miniforge/releases/{{ miniforge_version }}/download/Miniforge3-Linux-x86_64.sh \
1919
-O {{ autograder_dir }}/source/mamba_install.sh ; \
2020
fi
2121
chmod +x {{ autograder_dir }}/source/mamba_install.sh

otter/generate/templates/r/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ dpkg -i /tmp/pandoc.deb
1818

1919
# install mamba
2020
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
21-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
21+
then wget -nv https://github.com/conda-forge/miniforge/releases/{{ miniforge_version }}/download/Miniforge3-Linux-aarch64.sh \
2222
-O {{ autograder_dir }}/source/mamba_install.sh ; \
23-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
23+
else wget -nv https://github.com/conda-forge/miniforge/releases/{{ miniforge_version }}/download/Miniforge3-Linux-x86_64.sh \
2424
-O {{ autograder_dir }}/source/mamba_install.sh ; \
2525
fi
2626
chmod +x {{ autograder_dir }}/source/mamba_install.sh

test/test_assign/files/example-autograder-correct/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dpkg -i /tmp/pandoc.deb
1313

1414
# install mamba
1515
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
16-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
16+
then wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-aarch64.sh \
1717
-O /autograder/source/mamba_install.sh ; \
18-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
18+
else wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-x86_64.sh \
1919
-O /autograder/source/mamba_install.sh ; \
2020
fi
2121
chmod +x /autograder/source/mamba_install.sh

test/test_assign/files/gs-autograder-correct/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dpkg -i /tmp/pandoc.deb
1313

1414
# install mamba
1515
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
16-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
16+
then wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-aarch64.sh \
1717
-O /autograder/source/mamba_install.sh ; \
18-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
18+
else wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-x86_64.sh \
1919
-O /autograder/source/mamba_install.sh ; \
2020
fi
2121
chmod +x /autograder/source/mamba_install.sh

test/test_assign/files/rmd-autograder-correct/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ dependencies:
2323
- r-stringi
2424
- r-testthat
2525
- r-usethis
26-
- r-ottr==1.5.0
26+
- r-ottr==1.5.2
2727
- pip:
2828
- otter-grader[grading,plugins,r]==6.1.4

test/test_assign/files/rmd-autograder-correct/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ dpkg -i /tmp/pandoc.deb
1818

1919
# install mamba
2020
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
21-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
21+
then wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-aarch64.sh \
2222
-O /autograder/source/mamba_install.sh ; \
23-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
23+
else wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-x86_64.sh \
2424
-O /autograder/source/mamba_install.sh ; \
2525
fi
2626
chmod +x /autograder/source/mamba_install.sh

test/test_generate/files/autograder-correct/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dpkg -i /tmp/pandoc.deb
1313

1414
# install mamba
1515
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
16-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
16+
then wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-aarch64.sh \
1717
-O /autograder/source/mamba_install.sh ; \
18-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
18+
else wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-x86_64.sh \
1919
-O /autograder/source/mamba_install.sh ; \
2020
fi
2121
chmod +x /autograder/source/mamba_install.sh

test/test_generate/files/autograder-custom-env/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ dpkg -i /tmp/pandoc.deb
1313

1414
# install mamba
1515
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "aarch64" ] ; \
16-
then wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh \
16+
then wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-aarch64.sh \
1717
-O /autograder/source/mamba_install.sh ; \
18-
else wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
18+
else wget -nv https://github.com/conda-forge/miniforge/releases/25.3.1-0/download/Miniforge3-Linux-x86_64.sh \
1919
-O /autograder/source/mamba_install.sh ; \
2020
fi
2121
chmod +x /autograder/source/mamba_install.sh

0 commit comments

Comments
 (0)