Skip to content

Commit abd2079

Browse files
Merge branch 'main' into customize_limits_for_business_fleet
2 parents 595a736 + 2e5c316 commit abd2079

98 files changed

Lines changed: 7999 additions & 7968 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ body:
77
attributes:
88
label: Is there an existing issue for this?
99
description: |
10+
Thank you for helping us make TeslaMate better, by reporting a bug you have found. This issue may already be reported.
1011
Please search to see if an issue already exists for the bug you encountered:
1112
1213
- [Issues](https://github.com/teslamate-org/teslamate/issues?q=)
1314
- [Discussions](https://github.com/teslamate-org/teslamate/discussions)
1415
1516
options:
16-
- label: I have searched the existing issues
17+
- label: I have checked the existing issues and discussions, and I can confirm that there are no duplicates.
1718
required: true
1819

1920
- type: markdown
@@ -37,10 +38,20 @@ body:
3738
validations:
3839
required: false
3940

41+
- type: dropdown
42+
id: can_repro
43+
attributes:
44+
label: Can the issue reliably be reproduced?
45+
options:
46+
- "Yes"
47+
- "No"
48+
validations:
49+
required: true
50+
4051
- type: textarea
4152
attributes:
42-
label: Steps To Reproduce
43-
description: Steps to reproduce the behavior.
53+
label: Steps To Reproduce the issue
54+
description: Explain how the maintainers can reproduce the issue.
4455
placeholder: |
4556
1. Go to '...'
4657
2. Click on '....'
@@ -108,8 +119,10 @@ body:
108119
attributes:
109120
label: Type of installation
110121
options:
111-
- Docker
112-
- Manual
122+
- Docker (https://docs.teslamate.org/docs/installation/docker/)
123+
- NixOS (https://docs.teslamate.org/docs/installation/nixos)
124+
- Manual (no support)
125+
- Other (no support)
113126
validations:
114127
required: true
115128

@@ -118,6 +131,44 @@ body:
118131
attributes:
119132
label: Version
120133
description: What version of TeslaMate are you running?
121-
placeholder: v1.24.1
134+
placeholder: v1.33.0
122135
validations:
123136
required: true
137+
138+
- type: input
139+
id: postgresql_version
140+
attributes:
141+
label: PostgreSQL version
142+
description: What version of PostgreSQL are you running? (see Database information dashboard -> PostgreSQL Version (upper right on desktop) or database -> image section in your `docker-compose.yml`)
143+
placeholder: v17.3
144+
145+
- type: checkboxes
146+
attributes:
147+
label: Are you running latest major supported PostgreSQL version?
148+
description: |
149+
Please ensure you are running the latest major supported PostgreSQL version by comparing your installation with the [installation docs](https://docs.teslamate.org/docs/installation/docker/).
150+
151+
If not, please first do a backup and follow [Upgrading PostgreSQL to a new major version](https://docs.teslamate.org/docs/maintenance/upgrading_postgres)
152+
153+
options:
154+
- label: I run the latest major supported PostgreSQL version
155+
validations:
156+
required: true
157+
158+
- type: dropdown
159+
id: reverse_proxy
160+
attributes:
161+
label: Are you using a reverse Proxy for TeslaMate?
162+
options:
163+
- "No"
164+
- "Yes (specify in next field)"
165+
validations:
166+
required: true
167+
168+
- type: textarea
169+
id: reverse_proxy_details
170+
attributes:
171+
label: Details about your reverse Proxy if applicable
172+
description: If you use a reverse Proxy, please provide details about your setup
173+
validations:
174+
required: false

.github/actions/build/action.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ inputs:
3030
runs:
3131
using: "composite"
3232
steps:
33+
- name: normalize version name to a valid string
34+
# convert backslashes to dashes, so for example dependabot/x/y/z-1.2.3 works
35+
id: normalize_version
36+
shell: bash
37+
run: |
38+
VERSION="${{ inputs.version }}"
39+
NORMALIZED_VERSION="${VERSION//\//-}"
40+
echo "normalized_version=${NORMALIZED_VERSION}" >> $GITHUB_OUTPUT
41+
3342
- name: Docker meta
3443
id: meta
3544
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
@@ -59,8 +68,8 @@ runs:
5968
platforms: ${{ matrix.platform }}
6069
labels: ${{ steps.meta.outputs.labels }}
6170
tags: ${{ steps.docker_meta.outputs.tags }}
62-
cache-from: type=registry,ref=ghcr.io/${{ inputs.repository }}:buildcache-${{ matrix.cache_id }}-${{ inputs.version }}
63-
cache-to: type=registry,ref=ghcr.io/${{ inputs.repository }}:buildcache-${{ matrix.cache_id }}-${{ inputs.version }},mode=max
71+
cache-from: type=registry,ref=ghcr.io/${{ inputs.repository }}:buildcache-${{ matrix.cache_id }}-${{ steps.normalize_version.outputs.normalized_version }}
72+
cache-to: type=registry,ref=ghcr.io/${{ inputs.repository }}:buildcache-${{ matrix.cache_id }}-${{ steps.normalize_version.outputs.normalized_version }},mode=max
6473
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
6574
- name: Export digest
6675
shell: bash

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ updates:
99
directory: "/assets"
1010
schedule:
1111
interval: "monthly"
12+
ignore:
13+
# ignore the path based dependencies to prevent "Dependabot couldn't fetch all your path-based dependencies"
14+
- dependency-name: phoenix
15+
- dependency-name: phoenix_html
16+
- dependency-name: phoenix_live_view
1217

1318
- package-ecosystem: "npm"
1419
directory: "/website"

.github/workflows/buildx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
repository_owner: ${{ github.repository_owner }}
5656
repository: ${{ github.repository }}
5757
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
version: ${{ github.ref_name }}
58+
version: ${{ github.head_ref || github.ref_name }}
5959

6060
teslamate_merge:
6161
runs-on: ubuntu-24.04
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6969

7070
- name: Login to Docker Hub
71-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
71+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
7272
with:
7373
username: teslamate
7474
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -91,7 +91,7 @@ jobs:
9191
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9292

9393
- name: Login to Docker Hub
94-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
94+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
9595
with:
9696
username: teslamate
9797
password: ${{ secrets.DOCKER_PASSWORD }}

.github/workflows/check_paths.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2323
id: filter
2424
with:
25-
base: "master" # needed to set as a called workflow does not have direct access to repository.default_branch
25+
base: "main" # needed to set as a called workflow does not have direct access to repository.default_branch
2626
filters: |
2727
githubfolder:
2828
- '.github/**'

.github/workflows/cleanup_caches.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
types:
66
- closed
7-
pull_request_target:
8-
types:
9-
- closed
107
paths:
118
- "**/*"
129
- "!.github/**" # Important: Exclude PRs related to .github from auto-run

.github/workflows/devops.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run
1010
- "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run
1111
pull_request:
12-
branches: ["master"]
12+
branches: ["main"]
1313
paths:
1414
- "**/*"
1515
- "!.github/**" # Important: Exclude PRs related to .github from auto-run

.github/workflows/elixir_dep_verification_and_static_analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Restore PLT cache
4545
id: plt_cache
46-
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
46+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4747
with:
4848
key: |
4949
${{ runner.os }}-${{ steps.setup-elixir-and-cache-deps.outputs.elixir-version }}-${{ steps.setup-elixir-and-cache-deps.outputs.otp-version }}-plt
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Save PLT cache
6060
id: plt_cache_save
61-
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
61+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6262
if: steps.plt_cache.outputs.cache-hit != 'true'
6363
with:
6464
key: |

.github/workflows/elixir_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: mix test --warnings-as-errors
4949

5050
- name: Check Coverage
51-
if: github.ref == 'refs/heads/master'
51+
if: github.ref == 'refs/heads/main'
5252
run: mix coveralls.github
5353
continue-on-error: true
5454
env:

.github/workflows/ensure_linting.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,28 @@ jobs:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

1515
- name: Install Nix
16-
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 #v30
17-
with:
18-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
16+
uses: nixbuild/nix-quick-install-action@63ca48f939ee3b8d835f4126562537df0fee5b91 # v32
1917

2018
- name: Nix binary cache
21-
uses: DeterminateSystems/magic-nix-cache-action@6221693898146dc97e38ad0e013488a16477a4c4 #v9
19+
uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3
20+
with:
21+
# restore and save a cache using this key
22+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
23+
# if there's no cache hit, restore a cache by this prefix
24+
restore-prefixes-first-match: nix-${{ runner.os }}-
25+
# collect garbage until Nix store size (in bytes) is at most this number
26+
# before trying to save a new cache
27+
# 1G = 1073741824
28+
gc-max-store-size-linux: 1073741824
29+
# do purge caches
30+
purge: true
31+
# purge all versions of the cache
32+
purge-prefixes: nix-${{ runner.os }}-
33+
# created more than this number of seconds ago
34+
# relative to the start of the `Post Restore and save Nix store` phase
35+
purge-created: 0
36+
# except any version with the key that is the same as the `primary-key`
37+
purge-primary-key: never
2238

2339
- name: Run treefmt in CI mode
2440
run: nix develop --override-input devenv-root "file+file://"<(printf %s "$PWD") . --command treefmt --ci

0 commit comments

Comments
 (0)