Skip to content

Commit b019036

Browse files
committed
remove CI-related items and a few stray references
1 parent f133547 commit b019036

File tree

8 files changed

+2
-85
lines changed

8 files changed

+2
-85
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ Changes:
55
- Can group multiple related symbols on a single bullet
66

77
- [ ] Tests added
8-
- [ ] If dependencies changed, "deps only" image rebuilt and "latest_deps_only_image.txt" file updated
98

109
Resolves #<github issues> (delete if none)

.github/workflows/tests.yaml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,4 @@ jobs:
5454
uv pip install --system -c constraints.txt -e .[dev]
5555
- name: Run pytest
5656
run: |
57-
make test_very_fast
58-
gpu:
59-
# These steps run on our self-hosted k8s GPU runners. See below for setup notes
60-
# https://github.com/ai2cm/long-lived-infrastructure#installing-the-github-actions-runner-controller
61-
runs-on: arc-runner-set
62-
steps:
63-
- uses: actions/checkout@v3
64-
- name: Set environment variables
65-
run: |
66-
echo "CURRENT_WEEK=$(date +'%Y-%U')" >> $GITHUB_ENV
67-
- uses: actions/setup-python@v4
68-
with:
69-
python-version: "3.11"
70-
- uses: actions/cache@v4
71-
with:
72-
path: ${{ env.pythonLocation }}
73-
key: ${{ env.CURRENT_WEEK }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('requirements-healpix.txt') }}-${{ hashFiles('constraints.txt') }}
74-
- name: Install dependencies
75-
run: |
76-
sudo apt-get update
77-
sudo apt-get install -y make git build-essential
78-
python -m pip install uv
79-
# can't use --system here because it doesn't work with --no-build-isolation and a healpix dependency
80-
uv venv --python 3.11
81-
uv pip install -c constraints.txt -e .[dev]
82-
uv pip install --no-build-isolation -c constraints.txt -e .[dev,healpix]
83-
- name: Run CUDA check and pytest
84-
run: |
85-
source .venv/bin/activate
86-
export PATH=/usr/local/nvidia/bin:${PATH}
87-
export LD_LIBRARY_PATH=/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
88-
python3 fme/require_gpu.py
89-
make test
57+
make test_very_fast

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
docs/available_modules.rst
22
docs/available_steps.rst
33
docs/_build
4-
filtered_repo/
5-
files_excluded_by_filter.txt
64

75
.vscode
86

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ repos:
3232
(?x)^(
3333
.+/conf.py |
3434
.+/conftest.py |
35-
fme/ace/models/makani_fcn3/.*
3635
)$

Makefile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
VERSION ?= $(shell git rev-parse --short HEAD)
22
IMAGE ?= fme
3-
REGISTRY ?= registry.nersc.gov/m4492/ai2cm
43
ENVIRONMENT_NAME ?= fme
5-
USERNAME ?= $(shell beaker account whoami --format=json | jq -r '.[0].name')
64
DEPLOY_TARGET ?= pypi
7-
BEAKER_WORKSPACE = ai2/ace
85

96
ifeq ($(shell uname), Linux)
107
CONDA_PACKAGES=gxx_linux-64 pip
@@ -15,30 +12,9 @@ endif
1512
build_docker_image:
1613
DOCKER_BUILDKIT=1 docker build --platform=linux/amd64 -f docker/Dockerfile -t $(IMAGE):$(VERSION) --target production .
1714

18-
push_shifter_image: build_docker_image
19-
docker tag $(IMAGE):$(VERSION) $(REGISTRY)/$(IMAGE):$(VERSION)
20-
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
21-
22-
build_beaker_image: build_docker_image
23-
beaker image create --name $(IMAGE)-$(VERSION) $(IMAGE):$(VERSION)
24-
25-
build_podman_image:
26-
podman-hpc build -f docker/Dockerfile -t $(IMAGE):$(VERSION) .
27-
28-
migrate_podman_image: build_podman_image
29-
podman-hpc migrate $(IMAGE):$(VERSION)
30-
3115
enter_docker_image: build_docker_image
3216
docker run -it --rm $(IMAGE):$(VERSION) bash
3317

34-
launch_beaker_session:
35-
./launch-beaker-session.sh $(USERNAME)/$(IMAGE)-$(VERSION)
36-
37-
build_deps_only_image:
38-
DOCKER_BUILDKIT=1 docker build --platform=linux/amd64 -f docker/Dockerfile -t $(IMAGE)-deps-only:$(VERSION) --target deps-only .
39-
beaker image create $(IMAGE)-deps-only:$(VERSION) --name $(IMAGE)-deps-only-$(VERSION) --workspace ai2/ace-ci-tests
40-
41-
4218
# recommended to deactivate current conda environment before running this
4319
create_environment:
4420
conda create -n $(ENVIRONMENT_NAME) python=3.11 $(CONDA_PACKAGES)

analysis-deps.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# these are convenient to have installed for ad-hoc analysis but are not requirements of the "fme" package
22
Bottleneck
3-
beaker-gantry==3.*
4-
beaker-py
53
bokeh>=3.1.0
64
dask[distributed]
75
ipywidgets

docker/Dockerfile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,4 @@ COPY . ${FME_DIR}
3131
RUN cd $FME_DIR && pip install --no-deps -e .
3232

3333
# copy after install so editing scripts does not trigger reinstall
34-
COPY scripts ${FME_DIR}/scripts
35-
36-
FROM base AS deps-only
37-
38-
# install github cli and yq
39-
RUN apt-get update && apt-get install -y \
40-
ca-certificates \
41-
&& curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg \
42-
&& echo "deb [signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
43-
&& apt-get update && apt-get install -y gh \
44-
&& apt-get clean \
45-
&& rm -rf /var/lib/apt/lists/*
46-
47-
RUN wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\
48-
chmod +x /usr/bin/yq
49-
50-
COPY scripts/ci_beaker/entrypoint.sh /entrypoint.sh
51-
RUN chmod +x /entrypoint.sh
52-
ENTRYPOINT ["/entrypoint.sh"]
34+
COPY scripts ${FME_DIR}/scripts

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ cache-keys = [
4242
{ file = "requirements-healpix.txt" },
4343
]
4444

45-
[tool.ruff]
46-
exclude = ["fme/ace/models/makani_fcn3/**"]
47-
4845
[tool.ruff.lint]
4946
select = ["D", "E", "F", "I", "W", "UP"]
5047
ignore = ["D1", "D200", "D205", "D212", "E203", "W293", "F541", "E402"]

0 commit comments

Comments
 (0)