Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/upgrade pydantic v2 #354

Open
wants to merge 73 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
3faeafe
feat(pydantic): Upgrade to pydantic v2
alithethird Aug 26, 2024
ded1bc0
feat(pydanticv2): Update charm_state and its unit tests
alithethird Aug 26, 2024
f17a2b6
chore: Revert adding '/' to a url test
alithethird Aug 27, 2024
ec80ef9
chore: Fix github test for model validation
alithethird Aug 27, 2024
f7d216a
chore: Fix firewall test for model validation
alithethird Aug 27, 2024
a2d8522
chore: Update grafana agent lib
alithethird Aug 27, 2024
1c7ac1c
chore: Use Url classes instead of str
alithethird Aug 27, 2024
97c3670
chore: Use None as default for optional parameters
alithethird Aug 27, 2024
e25fcf1
chore: Change `allow_mutation` to `frozen` because its removed
alithethird Aug 27, 2024
7cb75b5
chore: Change `regex` to `pattern` because its removed
alithethird Aug 27, 2024
fb6a85d
chore: Change `.json` to `.model_dump_json` because deprecated
alithethird Aug 27, 2024
6ec49af
chore: Change `.parse_raw` to `.model_validate_json` because deprecated
alithethird Aug 27, 2024
d19c359
chore: Change `.copy` to `.model_copy` because deprecated
alithethird Aug 27, 2024
c25598b
chore: Change `.construct` to `.model_construct` because deprecated
alithethird Aug 27, 2024
a21e484
chore: Change `.dict` to `.model_dump` because deprecated
alithethird Aug 27, 2024
c7d83a1
chore: Updated `AnyHttpsUrl`
alithethird Aug 27, 2024
9472db7
chore: Make linter happy
alithethird Aug 27, 2024
7670911
chore: Fixed linting for MongoDsn
alithethird Aug 27, 2024
8d5131b
chore: Sushed linter
alithethird Aug 27, 2024
f14b8f4
chore: Run `src-docs`
alithethird Aug 27, 2024
266b2c3
chore: Made linter happy
alithethird Aug 28, 2024
38671d1
chore: Fixed trying to set Url as environment variable
alithethird Aug 28, 2024
e6addaa
chore: Run `src-docs`
alithethird Aug 28, 2024
1118c8d
chore: Trying to fix openstack manager problems
alithethird Aug 28, 2024
b460863
chore: Fixing the fix
alithethird Aug 28, 2024
d2434d7
chore: Fix for Aproxy snap error
alithethird Aug 29, 2024
7fa3720
chore: fix for a fix
alithethird Aug 29, 2024
b72f1b6
chore: Add port to `aproxy_address`
alithethird Sep 2, 2024
cdfc6f2
chore: Trigger github action
alithethird Sep 2, 2024
eda4eff
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 2, 2024
e50ab16
chore: Fix merge errors
alithethird Sep 2, 2024
8ef3775
chore: Fix linting
alithethird Sep 2, 2024
7f6a748
chore: Fix url in `repo_policy_client`
alithethird Sep 3, 2024
b0ee2b2
chore: Fix openstack_runner_manager network url
alithethird Sep 3, 2024
edb9199
chore: Trying to fix repo_policy_compliance url issue
alithethird Sep 3, 2024
5f84c68
chore: A fix for a fix (classic)
alithethird Sep 3, 2024
bd9cb45
chore: Fix RunnerStop issue
alithethird Sep 4, 2024
0191366
chore: Fix Url serialization issue
alithethird Sep 4, 2024
385771f
chore: Forgot formatting
alithethird Sep 4, 2024
44c52b3
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 4, 2024
5848294
chore: Fix url serialization
alithethird Sep 4, 2024
4fc911e
chore: Fix url in reactive test
alithethird Sep 5, 2024
c342a92
Merge branch 'main' of https://github.com/canonical/github-runner-ope…
alithethird Sep 5, 2024
960c63c
chore: Delete unnecessary prints
alithethird Sep 5, 2024
07cb824
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 6, 2024
2d7135e
chore: Explanation for mypy ignores
alithethird Sep 6, 2024
a6432b2
chore: Fix for Url to str environment
alithethird Sep 6, 2024
af059fe
Merge branch 'feat/upgrade-pydantic-v2' of https://github.com/canonic…
alithethird Sep 6, 2024
b6b95f1
chore: Use pylint rule name instead of id
alithethird Sep 6, 2024
b4ebc12
chore: Changed in aproxy field validator
alithethird Sep 6, 2024
4e3554b
chore: Clean up
alithethird Sep 6, 2024
fac1f2d
chore: Use `model_validator` for ProxyConfig
alithethird Sep 9, 2024
5828c13
chore: Validate `OpenStackCloudsYAML`
alithethird Sep 9, 2024
8565c3b
chore: Use new model_validator
alithethird Sep 9, 2024
0d05457
chore: Bring back non-required parameters
alithethird Sep 9, 2024
42c41c7
chore: Run src-docs and fix minor errors
alithethird Sep 9, 2024
284d0d9
chore: Cleanup
alithethird Sep 9, 2024
3e15ba9
chore: Cleanup
alithethird Sep 9, 2024
bdc0f02
Merge branch 'main' of https://github.com/canonical/github-runner-ope…
alithethird Sep 9, 2024
2eeeb34
chore: Update manager version and format
alithethird Sep 10, 2024
bbfaddd
chore: cleanup
alithethird Sep 10, 2024
62e6643
chore: Fix test, run src-docs
alithethird Sep 10, 2024
6e2bc45
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 25, 2024
616452d
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 27, 2024
eb163a8
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Sep 30, 2024
07ac433
chore(): Fix merge error
alithethird Sep 30, 2024
7d95296
chore(): Add str properties for urls in ProxyConfig
alithethird Oct 1, 2024
d15e287
chore(): Updated pymongo version in integration test
alithethird Oct 1, 2024
b24155b
chore(): Fix misuse of `ProxyConfig`
alithethird Oct 2, 2024
3fd969b
Merge branch 'main' into feat/upgrade-pydantic-v2
alithethird Oct 14, 2024
deb1eef
run src-docs
alithethird Oct 14, 2024
4ceef57
chore(): Change MongoDsn to annotated str
alithethird Oct 16, 2024
368b7e6
chore(): Fix unit test
alithethird Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
588 changes: 575 additions & 13 deletions lib/charms/grafana_agent/v0/cos_agent.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pylxd @ git+https://github.com/canonical/pylxd
requests
typing-extensions
cryptography <=43.0.1
pydantic ==1.10.18
pydantic ==2.8.2
cosl ==0.0.15
# juju 3.1.2.0 depends on pyyaml<=6.0 and >=5.1.2
PyYAML ==6.0.*
pyOpenSSL==24.2.1
github_runner_manager @ git+https://github.com/canonical/github-runner-manager.git@33bbaff42d7cc0f250006fdd08d24659cef364c9
github_runner_manager @ git+https://github.com/canonical/github-runner-manager.git@feat-pydantic-v2
Loading
Loading