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

Release Infrahub v1.1 #5333

Merged
merged 482 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
482 commits
Select commit Hold shift + click to select a range
258020a
Merge pull request #4994 from opsmill/dga-20241119-node-tag
dgarros Nov 23, 2024
6d56767
Format to max two decimals
ogenstad Nov 25, 2024
9a0f0de
Ensure to only save the computed attribute on mutation
ogenstad Nov 25, 2024
247937c
chore: clean test docker compose
wartraxx51 Nov 19, 2024
facaf6f
remove file and fix ci
wartraxx51 Nov 25, 2024
01c7586
Merge pull request #5030 from opsmill/pog-format-wait
ogenstad Nov 25, 2024
4fc4e64
Refactor webhooks
ogenstad Nov 24, 2024
9de5c49
Merge pull request #5031 from opsmill/pog-save-only-computed-attribute
ogenstad Nov 25, 2024
f4438b0
Merge pull request #5029 from opsmill/pog-refactor-webhooks
ogenstad Nov 25, 2024
d759128
Merge pull request #5023 from opsmill/lgu-update-sdk
LucasG0 Nov 25, 2024
616ee9f
Check perm the same way everywhere (#5024)
gmazoyer Nov 25, 2024
3e8f3ab
update branch validate to use new diff (#5027)
ajtmccarty Nov 25, 2024
eb9c540
update BranchMerger.has_schema_changes to use new diff (#5028)
ajtmccarty Nov 25, 2024
73ef99e
version 1.1.0b1
lykinsbd Nov 25, 2024
bec8fb8
version 1.1.0b1
lykinsbd Nov 25, 2024
f120de0
Merge pull request #5038 from opsmill/bdl-20241125-1.1b1
lykinsbd Nov 25, 2024
ea47e7d
Fixes for N805, N812, RUF027 and SIM115
dgarros Nov 25, 2024
6a778b7
Merge pull request #5033 from opsmill/dga-20241125-fix-ruff
dgarros Nov 26, 2024
5545a27
Merge pull request #4982 from opsmill/IFC-755_clean_docker_compose_test
dgarros Nov 26, 2024
93751d2
Merge pull request #4957 from opsmill/dependabot/npm_and_yarn/docs/np…
dgarros Nov 26, 2024
def9769
Add WorkflowType Core
dgarros Nov 26, 2024
ac18e79
Load and process new schema before replacing registry branch
ogenstad Nov 26, 2024
453f34b
Modify error message on login and -> or
ogenstad Nov 26, 2024
4b135a4
Set INFRAHUB_PRODUCTION=false for testing
LucasG0 Nov 26, 2024
5eabb2e
Log graphql errors while testing
LucasG0 Nov 26, 2024
7f22b1b
Merge pull request #5046 from opsmill/lgu-rel-log-graphql-errors
LucasG0 Nov 26, 2024
a9b1987
Merge pull request #5034 from opsmill/lgu-fix-production-env-var
LucasG0 Nov 26, 2024
fb34bbf
Correct branch match for when all branches share the same schema
ogenstad Nov 26, 2024
deab2c2
restoring inadvertently deleted changelog entries
lykinsbd Nov 26, 2024
9d27f79
handle node deleted merge edge case (#5026)
ajtmccarty Nov 26, 2024
3fc9d6c
Merge pull request #5044 from opsmill/pog-graphql-schema-after-update…
ogenstad Nov 26, 2024
aa2de9b
Merge pull request #5045 from opsmill/pog-login-error-message
ogenstad Nov 26, 2024
97bebd3
Merge pull request #5048 from opsmill/pog-correct-branch-match-ca
ogenstad Nov 26, 2024
600d199
Add wait and remove restart after loading schema in CI
ogenstad Nov 26, 2024
f4e6aa7
bump python SDK to v1.1.0rc0
lykinsbd Nov 26, 2024
4f53fb6
Merge pull request #5058 from opsmill/bdl-20241126-sdk-to-1.1.0rc0
lykinsbd Nov 26, 2024
0cc31e4
Merge pull request #5054 from opsmill/pog-remove-restart
ogenstad Nov 27, 2024
39944f3
Cleanup workflows for computed attributes
dgarros Nov 27, 2024
cd5211a
Add fragments for releasse note (#5063)
pa-lem Nov 27, 2024
5fa9d75
Merge pull request #5043 from opsmill/dga-20241126-computed-task-cleanup
dgarros Nov 27, 2024
e1f416e
Change task from SCHEDULED to COMPLETED
dgarros Nov 27, 2024
1209a71
Corrections to branch support for jinja2 attributes
ogenstad Nov 26, 2024
3c669c1
Merge pull request #5053 from opsmill/pog-computed-attribute-branch-c…
ogenstad Nov 27, 2024
3e444b9
Computed attribute documentation (#4978)
BaptisteGi Nov 26, 2024
10eeecc
Restore logs for local testing
LucasG0 Nov 26, 2024
f7545f6
Merge pull request #5042 from opsmill/dga-20241126-task-cleanup
dgarros Nov 27, 2024
aef1f93
Merge pull request #5068 from opsmill/bkr-cherry-pick-4978
dgarros Nov 27, 2024
1253333
Merge branch 'stable' into stable-to-release-1.1
ajtmccarty Nov 27, 2024
7117e1e
Merge pull request #5075 from opsmill/stable-to-release-1.1
ajtmccarty Nov 27, 2024
3ed5c18
fix(ci): use forked paths-filter
fatih-acar Nov 27, 2024
11975de
Merge pull request #5021 from opsmill/lgu-set-testing-local-level
LucasG0 Nov 28, 2024
fe28c1e
Add sub flow while processing jinja2 computed attr
dgarros Nov 28, 2024
8de218d
Merge branch 'stable' into 'release-1.1' with resolved conflicts
ogenstad Nov 29, 2024
bd41585
Merge pull request #5089 from opsmill/dga-20241128-comp-attr
dgarros Nov 29, 2024
53f965a
Merge pull request #5094 from opsmill/pog-stable-release-1.1-conflict…
ogenstad Nov 29, 2024
bda92ba
docs for git repo storage 4789 (#5064)
petercrocker Nov 29, 2024
6b7d7df
Use plain instead of enriched stack traceback
LucasG0 Nov 29, 2024
6f9f27f
Merge pull request #5103 from opsmill/lgu-clear-stracktrace
LucasG0 Nov 29, 2024
b736134
fix(docker): remove task worker shared storage
fatih-acar Dec 2, 2024
d78eccb
uniformize VERSION (#5113)
BeArchiTek Dec 2, 2024
eb234b6
fix(helm): remove shared storage dependency
fatih-acar Dec 2, 2024
0549d8b
fix(docs): update helm docs
fatih-acar Dec 2, 2024
54cc4d4
Finalize the migration of schema validation and schema migration tasks
dgarros Nov 10, 2024
13e0fa0
Remove schema_validators_checker
dgarros Nov 11, 2024
6e71ef5
Refactor schema_validate_migrations to return a list of SchemaValidat…
dgarros Nov 11, 2024
1450381
Fix tests
LucasG0 Nov 29, 2024
1a872dc
Convert Git repository import methods to prefect tasks
dgarros Dec 2, 2024
8954065
Fix PTH rules
dgarros Dec 2, 2024
16289c6
Merge pull request #5097 from opsmill/dga-20241129-git-task
dgarros Dec 2, 2024
76c968f
Merge pull request #5032 from opsmill/dga-20241123-PTH-rules
dgarros Dec 2, 2024
65aa5aa
Merge pull request #5102 from opsmill/lgu-schema-migrate
LucasG0 Dec 2, 2024
9847a18
Add more groups to /docs/. (#5040)
FragmentedPacket Nov 26, 2024
add98b0
Convert EventBranchRebased to InfrahubEvent
LucasG0 Nov 28, 2024
2e01f6d
load_schema modifs
LucasG0 Nov 29, 2024
6e85638
fix SchemaNotFoundError for renamed schema during diff enrichment
ajtmccarty Dec 2, 2024
369bce4
Minor changes
LucasG0 Dec 2, 2024
eef91f4
add pypi publish
BeArchiTek Dec 3, 2024
2009af1
fix(ci): update release workflow to use release events
fatih-acar Dec 3, 2024
fb3d17b
fix(ci): ignore some linter rules
fatih-acar Dec 3, 2024
e61e6c8
Change path strings into pathlib.Path objects.
PhillSimonds Dec 4, 2024
1226efc
Updates per pr review
PhillSimonds Dec 5, 2024
ae0dc1a
Merge stable into release-1.1
LucasG0 Dec 3, 2024
13ab5b0
Merge branch 'release-1.1' into lgu-merge-stable-release-1-1
LucasG0 Dec 9, 2024
1644c5c
Merge pull request #5088 from opsmill/lgu-copy-rebase
LucasG0 Dec 9, 2024
9828b39
Merge pull request #5142 from PhillSimonds/ps-issue-3545
ogenstad Dec 10, 2024
201e082
Define as @classmethod and remove noqa statements
ogenstad Dec 10, 2024
d47f07c
Merge pull request #5176 from opsmill/pog-remove-lint-noqa
ogenstad Dec 10, 2024
df68791
Merge branch 'release-1.1' into lgu-merge-stable-release-1-1
LucasG0 Dec 10, 2024
c1e5ca3
Merge pull request #5141 from opsmill/lgu-merge-stable-release-1-1
LucasG0 Dec 10, 2024
65cc50b
Merge pull request #5108 from opsmill/fac-update-docker-storage
dgarros Dec 11, 2024
a5871df
Merge branch 'stable' into bab-merge-stable-into-1.1
bilalabbad Dec 11, 2024
376ad31
update changelog
bilalabbad Dec 11, 2024
3a29425
fix poetry lock + lint
bilalabbad Dec 11, 2024
6ab6b87
fix lint changelog
bilalabbad Dec 11, 2024
e765858
Initialize component/cache within test_proposed_changes.py
LucasG0 Dec 11, 2024
2f96f31
fix e2e search
bilalabbad Dec 11, 2024
5f62aeb
refactor ipam unit tests to maintain data (#5163)
ajtmccarty Dec 11, 2024
636f64e
Merge pull request #5193 from opsmill/bab-merge-stable-into-1.1
dgarros Dec 12, 2024
90c67bf
chore: removed duplicated component AddRelationshipAction (#5199)
bilalabbad Dec 12, 2024
101bfbe
IFC-993 Fix uniqueness constraint with enum attributes (#5195)
gmazoyer Dec 12, 2024
683917d
Upgrade prefect to 3.1.6
dgarros Dec 12, 2024
ee4f62f
Disable caching for all prefect tasks
dgarros Dec 12, 2024
ee8aa8c
Switch to 3.1.5
dgarros Dec 13, 2024
d36c7f6
Add lock on object creation
LucasG0 Dec 11, 2024
f76fa3c
Merge pull request #5198 from opsmill/dga-20241212-prefect-3.1.6
dgarros Dec 13, 2024
95f2347
Merge stable into release-1.1 with resolved conflicts
ogenstad Dec 13, 2024
ba5b40c
Temporarily ignore ASYNC230
ogenstad Dec 13, 2024
3e3f187
Only lock on main branch + refactoring
LucasG0 Dec 13, 2024
938522d
Merge pull request #5194 from opsmill/lgu-add-lock
LucasG0 Dec 13, 2024
56c24c8
Update tests for release-1.1 due to changes in stable
ogenstad Dec 13, 2024
6b47257
Merge pull request #5207 from opsmill/pog-release-mergeback
ogenstad Dec 13, 2024
a61e398
Release 1.1.0b2 prep (#5210)
lykinsbd Dec 13, 2024
6dafc5c
Remove flow from git-repository-get-file
dgarros Dec 14, 2024
6fdb14e
Add flow_run_name in a few places
dgarros Dec 14, 2024
867f4f4
Don't always pull images
ogenstad Dec 14, 2024
9396162
Merge pull request #5213 from opsmill/pog-docker-pull
dgarros Dec 14, 2024
628800c
Merge branch 'release-1.1' into dga-20241214-flow-log
dgarros Dec 14, 2024
adcf36c
Use uuid for branch identifier in schema converge function
ogenstad Dec 14, 2024
f574601
Add debug profile
dgarros Dec 15, 2024
18ce696
Merge pull request #5212 from opsmill/dga-20241214-flow-log
dgarros Dec 16, 2024
a34dc2d
Merge pull request #5211 from opsmill/pog-branch-by-uuid
ogenstad Dec 16, 2024
61446cf
Set query type when missing
dgarros Dec 16, 2024
de95fce
Merge pull request #5218 from opsmill/dga-20241215-profile-observability
dgarros Dec 16, 2024
f4fce13
Add option to define default runtime and ensure Parallel runtime can'…
dgarros Dec 16, 2024
bd3777f
fix: update version prefect 3.1.5 from helm
wartraxx51 Dec 16, 2024
9e67801
Add tags on flows in check/repositories
dgarros Dec 17, 2024
b2dd903
Merge pull request #5217 from opsmill/dga-20241215-db-runtime
dgarros Dec 17, 2024
700a15f
Merge pull request #5224 from opsmill/jbr-update-prefect-helm
dgarros Dec 17, 2024
5d4f843
Update version to 3.0.9
dgarros Dec 17, 2024
df7fea6
Merge pull request #5228 from opsmill/dga-20241217-fix-prefect
dgarros Dec 17, 2024
b438b57
Merge branch 'release-1.1' into dga-20241217-flow-check-repo
dgarros Dec 17, 2024
3251dde
Cont working on flows for git tasks
dgarros Dec 17, 2024
b4b3c84
Add namespace tag to all flows
dgarros Dec 17, 2024
67eca4d
Merge pull request #5225 from opsmill/dga-20241217-flow-log-cont
dgarros Dec 17, 2024
20b9c5d
Merge pull request #5226 from opsmill/dga-20241217-flow-check-repo
dgarros Dec 17, 2024
64731ae
Merge pull request #5227 from opsmill/dga-20241217-add-tag-namespace
dgarros Dec 17, 2024
e730931
update 3.0.11 prefect
wartraxx51 Dec 17, 2024
f902dc2
fix(backend, tests): pin redis version
fatih-acar Dec 17, 2024
67f4d4c
Enhanced relationship inputs for hierarchical models with a new optio…
bilalabbad Dec 17, 2024
1811dc8
Add logs and tags to flow for proposed change
dgarros Dec 18, 2024
7885e46
Refresh Docker-compose and Helm Chart (#5237)
BeArchiTek Dec 18, 2024
e23ec4d
Merge pull request #5234 from opsmill/dga-20241217-flow-proposed-change
dgarros Dec 18, 2024
d3f19dc
Use 3.0.11-python3.12 in docker-compose oneliner
BeArchiTek Dec 18, 2024
8b267dc
Do not display error message on search anywhere (#5246)
bilalabbad Dec 18, 2024
46e4b3a
Do not send EventBranchDelete, EventSchemaUpdate and EventNodeMutated…
dgarros Dec 18, 2024
22ccacc
Merge pull request #5250 from opsmill/dga-20241218-branch-event2
dgarros Dec 18, 2024
b6b960b
Merge pull request #5249 from opsmill/bkr-update-prefect-oneliner
dgarros Dec 18, 2024
06ccd69
Display tasks in the proposed changes view only if needed - IFC-1010 …
pa-lem Dec 18, 2024
df0d522
Ensure git repository is initialized locally before accessing files
dgarros Dec 18, 2024
e38bd8a
Merge pull request #5247 from opsmill/dga-20241218-ifc-1011
dgarros Dec 18, 2024
931bd5a
Merge branch 'stable' into stable-r1.1
ajtmccarty Dec 18, 2024
8f9b842
fix frontend lint
bilalabbad Dec 18, 2024
0e4ef60
Update homepage to add card about Infrahub labs and schema library (#…
bilalabbad Dec 18, 2024
98e7ffa
Merge pull request #5245 from opsmill/fix-5235
LucasG0 Dec 18, 2024
e2b7cf2
Merge pull request #5257 from opsmill/stable-r1.1
ajtmccarty Dec 18, 2024
da488ec
Fix db migration
LucasG0 Dec 18, 2024
590ad52
Merge branch 'release-1.1' into lgu-fix-db-migrate
LucasG0 Dec 18, 2024
6123d4a
WIP prototype using DataLoader for single_relationship_resolver
ajtmccarty Dec 12, 2024
42cc50b
format
ajtmccarty Dec 12, 2024
600f5f5
pylint
ajtmccarty Dec 12, 2024
c1342f3
remove component caching
ajtmccarty Dec 16, 2024
cf8c0e0
use get_many for cardinality-one data loader
ajtmccarty Dec 17, 2024
ff2ea59
pylint fix
ajtmccarty Dec 17, 2024
450e13b
fix rel_manager conditional check
ajtmccarty Dec 17, 2024
44be475
add old resolve logic as fallback when metadata is required
ajtmccarty Dec 17, 2024
ff9ddcc
move code around
ajtmccarty Dec 18, 2024
95d0a33
add changelog
ajtmccarty Dec 18, 2024
4e9244e
big refactor, relationship identifier filter for query
ajtmccarty Dec 19, 2024
70c9fc4
Add branch support to transform based computed attributes
ogenstad Dec 17, 2024
9fffe68
Merge pull request #5244 from opsmill/ajtm-12112024-gql-single-data-l…
dgarros Dec 19, 2024
f3afc6d
Merge pull request #5233 from opsmill/pog-computed-transforms-branches
ogenstad Dec 19, 2024
cc5131b
Merge pull request #5258 from opsmill/lgu-fix-db-migrate
LucasG0 Dec 19, 2024
4cdfe21
Prevent double tab navigation with a button is inside a link (#5256)
bilalabbad Dec 19, 2024
7495137
Correctly scroll and form fields when there is a submit error (#5252)
bilalabbad Dec 19, 2024
1b1c9cf
Correctly reset search params when going back in hierarchical explorer
bilalabbad Dec 19, 2024
961040b
Added new "dev" command that enable devtools on UI
bilalabbad Dec 19, 2024
dfd9ddf
Fix query to correctly send variables in the task details query (#5262)
pa-lem Dec 19, 2024
a7c28a1
adds branch locking mechanism explanation to version control topic
wvandeun Dec 19, 2024
ae69fb9
Update python SDK to fix the issue while loading the menu
dgarros Dec 19, 2024
ef98435
Merge pull request #5263 from opsmill/dga-20241219-fix-menu-load
dgarros Dec 19, 2024
db487fe
Improved response time of menu api endpoint
dgarros Dec 19, 2024
f01e8e8
Add more logging to generators
dgarros Dec 19, 2024
b81b050
Add more logs during Artifact processing in a propose change
dgarros Dec 19, 2024
4e681ca
Merge pull request #5259 from opsmill/dga-20241218-flow-generator
dgarros Dec 19, 2024
4e3014e
Merge pull request #5266 from opsmill/dga-20241219-artifact-log
dgarros Dec 19, 2024
a7eaa02
Merge pull request #5265 from opsmill/dga-20241219-menu-prefetch
dgarros Dec 19, 2024
188c7ab
Introduce the new combobox for the pagination (#5267)
pa-lem Dec 19, 2024
c00973e
Use combobox for ip namespace selector in IPAM (#5271)
bilalabbad Dec 19, 2024
5e8bcbe
Biome: enable rule noSwitchDeclarations, noUnusedFunctionParameters a…
bilalabbad Dec 19, 2024
7d7eb1a
Merge branch 'stable' into bdl-20241220-stable-mergeback
lykinsbd Dec 20, 2024
ecf1a51
update SDK to v1.2.0 to match stable
lykinsbd Dec 20, 2024
085f271
Merge pull request #5273 from opsmill/bdl-20241220-stable-mergeback
dgarros Dec 20, 2024
50f2d73
test upgrade version
wartraxx51 Dec 19, 2024
d87ac90
feat: logs,status,export
wartraxx51 Dec 13, 2024
77c2b01
fix: pylint
wartraxx51 Dec 18, 2024
ec27489
fix commande status
wartraxx51 Dec 19, 2024
8c5dbdc
poetry.lock
wartraxx51 Dec 19, 2024
555228b
Update SDK to latest `develop` commit
ogenstad Dec 20, 2024
16ce7e2
Add log group around the building of the docker container
ogenstad Dec 20, 2024
05b875b
Lock CoreGroup kinds on any branch
LucasG0 Dec 20, 2024
8be015c
Merge pull request #5280 from opsmill/pog-add-log-group
ogenstad Dec 20, 2024
1eb2bbb
Merge pull request #5278 from opsmill/pog-update-sdk-commit
ogenstad Dec 20, 2024
c701e33
Display the IP Namespace for prefixes and IP adresses in the searchan…
pa-lem Dec 20, 2024
18ec02a
Fix: error log due to wrong semantic element on avatar (#5286)
bilalabbad Dec 20, 2024
91fe997
Merge pull request #5285 from opsmill/lgu-lock-groups
dgarros Dec 21, 2024
58a6d18
fix(docs): remove helm pull policy example
fatih-acar Dec 21, 2024
f392bcc
minor adjustment of flow logs
dgarros Dec 22, 2024
477b769
Merge pull request #5298 from opsmill/dga-20241221-flow-logs-minor
dgarros Dec 22, 2024
7dbf184
Merge branch 'stable' into stable-r1.1
ajtmccarty Dec 22, 2024
6fe043c
small diff updates
ajtmccarty Dec 22, 2024
ad0ae5a
more diff tweaks
ajtmccarty Dec 23, 2024
187b13f
remove comments
ajtmccarty Dec 23, 2024
afe2871
Fi issue with branch management in git
dgarros Dec 23, 2024
9179e1a
Add newsfragment for computed attributes
ogenstad Dec 23, 2024
e46294a
Merge pull request #5295 from opsmill/dga-20241221-fix-branch-create
dgarros Dec 23, 2024
12776c4
Latest SDK commit and update imports
dgarros Dec 23, 2024
c41f1e4
Merge pull request #5300 from opsmill/stable-r1.1
ogenstad Dec 23, 2024
3532ad2
Run get_commit_worktree() at correct indentation level
ogenstad Dec 23, 2024
75f91ae
Merge pull request #5124 from opsmill/dga-20241202-sdk-schema
dgarros Dec 23, 2024
3bb97cd
Cleanup graphql-query tasks
dgarros Dec 23, 2024
fa2e92b
Capture additional logger during task execution
dgarros Dec 23, 2024
5340d88
Merge pull request #5264 from opsmill/wvd-20241219-add-branch-locking…
wvandeun Dec 23, 2024
aee97a8
Merge pull request #5305 from opsmill/pog-git-worktree-indentation
ogenstad Dec 23, 2024
d8131ca
Merge pull request #5302 from opsmill/pog-computed-attribute-news-IFC…
ogenstad Dec 23, 2024
f7bdcf0
Merge pull request #5301 from opsmill/dga-20241222-gql-query-tasks-cl…
dgarros Dec 23, 2024
3ca6a92
Merge pull request #5260 from opsmill/dga-20241218-task-logger
dgarros Dec 23, 2024
e435b98
Ensure all tasks accessing the database are using a dedicated session
dgarros Dec 23, 2024
530fb03
Merge pull request #5309 from opsmill/dga-20241223-task-db-session
dgarros Dec 23, 2024
3c3f32c
Deprecate infrahub tasks (internal)
dgarros Dec 23, 2024
4942eb7
Consider updated fields for Jinja2 based computed attributes
ogenstad Dec 23, 2024
6de1685
Ensure flows are empty before starting the tests
dgarros Dec 23, 2024
9b2562d
Merge pull request #5307 from opsmill/pog-computed-attribute-jinja-up…
ogenstad Dec 23, 2024
81acc0d
Remove useless tests and their files (#5313)
bilalabbad Dec 24, 2024
d002b7f
Refactor list input to make it simpler and improve a11y (#5304)
bilalabbad Dec 24, 2024
5f7a674
fix artifacts diff (#5311)
ajtmccarty Dec 24, 2024
daf5d1b
Merge pull request #5310 from opsmill/dga-20241223-task-db
dgarros Dec 24, 2024
3af41fa
docs fixes for vale (#5320)
ajtmccarty Dec 24, 2024
1aa2a97
Update alerts type on errors with proposed changes and branches (#5317)
pa-lem Dec 26, 2024
2b10c3d
Update shortcut from the branch details view to create a proposed cha…
pa-lem Dec 26, 2024
3872da8
Added support for hierarchical selection on relationship many (#5321)
bilalabbad Dec 27, 2024
106423a
update vitest to 2.1.8 (#5324)
bilalabbad Dec 27, 2024
b23d472
Add testcontainers packages and move testing to the SDK
dgarros Dec 30, 2024
17c9905
fix(backend): randomize telemetry workflow schedule
fatih-acar Dec 24, 2024
2168cb5
fix(docker): remove build warning
fatih-acar Dec 20, 2024
c7b7b60
Merge pull request #5287 from opsmill/dga-20241220-int-testing
dgarros Dec 30, 2024
f6e3673
Merge branch 'stable' into stable-r1.1
ajtmccarty Dec 30, 2024
2803317
v1.1.0 Release Prep (#5290)
lykinsbd Dec 30, 2024
ed69465
Merge pull request #5332 from opsmill/stable-r1.1
ajtmccarty Dec 30, 2024
d4e9f6e
remove newsfragments
lykinsbd Dec 30, 2024
d0acd61
update helm chart and docker compose file
lykinsbd Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
195 changes: 129 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
with:
submodules: true
- name: "Linting: markdownlint"
uses: DavidAnson/markdownlint-cli2-action@v17
uses: DavidAnson/markdownlint-cli2-action@v18
with:
config: .markdownlint.yaml
globs: |
Expand Down Expand Up @@ -314,8 +314,6 @@ jobs:
run: "poetry install --no-interaction --no-ansi"
- name: "Mypy Tests"
run: "poetry run invoke backend.mypy"
- name: "Pylint Tests"
run: "poetry run invoke backend.pylint"
- name: "Integration Tests"
run: "poetry run invoke backend.test-integration"
- name: "Coveralls : Integration Tests"
Expand All @@ -327,59 +325,106 @@ jobs:
flag-name: backend-integration
parallel: true

# ---------------------------------------------------
# DISABLING Memgraph for now :(
# - Tests where too flaky in 2.19 and completely broken in 2.20.1
# - Using new db session within tasks introduced flaky tests as well
# ---------------------------------------------------
# backend-tests-memgraph:
# if: |
# always() && !cancelled() &&
# !contains(needs.*.result, 'failure') &&
# !contains(needs.*.result, 'cancelled') &&
# needs.files-changed.outputs.backend == 'true'
# needs: ["files-changed", "yaml-lint", "python-lint"]
# runs-on:
# group: huge-runners
# timeout-minutes: 45
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: backend-tests-unit-memgraph
# env:
# INFRAHUB_DB_TYPE: memgraph
# # - name: backend-tests-unit-nats
# # env:
# # INFRAHUB_DB_TYPE: memgraph
# # INFRAHUB_USE_NATS: 1
# # INFRAHUB_BROKER_DRIVER: nats
# # INFRAHUB_CACHE_DRIVER: nats
# name: ${{ matrix.name }}
# env: ${{ matrix.env }}
# steps:
# - name: "Check out repository code"
# uses: "actions/checkout@v4"
# with:
# submodules: true
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: "Setup git credentials"
# run: "git config --global user.name 'Infrahub' && \
# git config --global user.email 'infrahub@opsmill.com' && \
# git config --global --add safe.directory '*' && \
# git config --global credential.usehttppath true && \
# git config --global credential.helper /usr/local/bin/infrahub-git-credential"
# - name: "Setup Python environment"
# run: |
# poetry config virtualenvs.create true --local
# poetry env use 3.12
# - name: "Install dependencies"
# run: "poetry install --no-interaction --no-ansi"
# - name: "Unit Tests"
# run: "poetry run invoke backend.test-unit"
backend-tests-functional:
if: |
always() && !cancelled() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.files-changed.outputs.backend == 'true'
needs: ["files-changed", "yaml-lint", "python-lint"]
runs-on:
group: "huge-runners"
timeout-minutes: 30
env:
INFRAHUB_DB_TYPE: neo4j
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: "Setup git credentials"
run: "git config --global user.name 'Infrahub' && \
git config --global user.email 'infrahub@opsmill.com' && \
git config --global --add safe.directory '*' && \
git config --global credential.usehttppath true && \
git config --global credential.helper /usr/local/bin/infrahub-git-credential"
- name: "Setup Python environment"
run: |
poetry config virtualenvs.create true --local
poetry env use 3.12
- name: "Install dependencies"
run: "poetry install --no-interaction --no-ansi"
- name: "Mypy Tests"
run: "poetry run invoke backend.mypy"
- name: "Pylint Tests"
run: "poetry run invoke backend.pylint"
- name: "Functional Tests"
run: "poetry run invoke backend.test-functional"
- name: "Coveralls : Functional Tests"
uses: coverallsapp/github-action@v2
continue-on-error: true
env:
COVERALLS_SERVICE_NUMBER: ${{ github.sha }}
with:
flag-name: backend-functional
parallel: true

# ---------------------------------------------------
# DISABLING Memgraph for now :(
# Tests where too flaky in 2.19 and completely broken in 2.20.1
# ---------------------------------------------------
# backend-tests-memgraph:
# if: |
# always() && !cancelled() &&
# !contains(needs.*.result, 'failure') &&
# !contains(needs.*.result, 'cancelled') &&
# needs.files-changed.outputs.backend == 'true'
# needs: ["files-changed", "yaml-lint", "python-lint"]
# runs-on:
# group: huge-runners
# timeout-minutes: 45
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: backend-tests-unit-memgraph
# env:
# INFRAHUB_DB_TYPE: memgraph
# # - name: backend-tests-unit-nats
# # env:
# # INFRAHUB_DB_TYPE: memgraph
# # INFRAHUB_USE_NATS: 1
# # INFRAHUB_BROKER_DRIVER: nats
# # INFRAHUB_CACHE_DRIVER: nats
# name: ${{ matrix.name }}
# env: ${{ matrix.env }}
# steps:
# - name: "Check out repository code"
# uses: "actions/checkout@v4"
# with:
# submodules: true
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: "Setup git credentials"
# run: "git config --global user.name 'Infrahub' && \
# git config --global user.email 'infrahub@opsmill.com' && \
# git config --global --add safe.directory '*' && \
# git config --global credential.usehttppath true && \
# git config --global credential.helper /usr/local/bin/infrahub-git-credential"
# - name: "Setup Python environment"
# run: |
# poetry config virtualenvs.create true --local
# poetry env use 3.12
# - name: "Install dependencies"
# run: "poetry install --no-interaction --no-ansi"
# - name: "Unit Tests"
# run: "poetry run invoke backend.test-unit"

backend-validate-generated:
if: |
Expand Down Expand Up @@ -508,12 +553,17 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: "Setup Python environment"
run: |
pipx install poetry
poetry config virtualenvs.create true --local
poetry env use 3.12
- name: "Install dependencies"
run: "poetry install --no-interaction --no-ansi"
- name: "Setup environment"
run: "pip install invoke toml"
- name: "Build Test Image"
run: "invoke dev.build"
- name: "Validate generated documentation"
run: "invoke docs.validate --docker"
run: "poetry run invoke docs.validate"

validate-documentation-style:
if: |
Expand Down Expand Up @@ -641,10 +691,10 @@ jobs:
run: docker compose -p $INFRAHUB_BUILD_NAME down -v --remove-orphans --rmi local

- name: Build Demo
run: invoke dev.build

- name: Pull External Docker Images
run: invoke dev.pull
run: |
echo "::group::Build infrahub container"
invoke dev.build
echo "::endgroup::"

- name: Initialize Demo
id: init-demo
Expand Down Expand Up @@ -672,7 +722,7 @@ jobs:

# Make chromium ignore netlink messages by returning HandleMessage early
- name: Chrome path
run: echo CHROME_BIN_PATH="$(npx playwright install chromium --dry-run | grep Install | awk '{print $3}')/chrome-linux/chrome" >> $GITHUB_ENV
run: echo CHROME_BIN_PATH="$(npx playwright install chromium --dry-run | grep Install | grep chromium- | awk '{print $3}')/chrome-linux/chrome" >> $GITHUB_ENV
- name: Chrome func offset
run: echo FUNC_OFFSET="$(objdump -C --file-offsets --disassemble='net::internal::AddressTrackerLinux::HandleMessage(char const*, int, bool*, bool*, bool*)' $CHROME_BIN_PATH | grep 'File Offset' | sed -n 1p | sed -E 's/.*File Offset. (.*)\).*/\1/')" >> $GITHUB_ENV
- name: Patch chromium
Expand Down Expand Up @@ -808,11 +858,11 @@ jobs:

- name: Display task worker 1 logs
if: always()
run: docker logs "${INFRAHUB_BUILD_NAME}-infrahub-git-1"
run: docker logs "${INFRAHUB_BUILD_NAME}-task-worker-1"

- name: Display task worker 2 logs
if: always()
run: docker logs "${INFRAHUB_BUILD_NAME}-infrahub-git-2"
run: docker logs "${INFRAHUB_BUILD_NAME}-task-worker-2"

- name: Display task manager logs
if: always()
Expand All @@ -830,6 +880,19 @@ jobs:
if: always()
run: docker compose -p $INFRAHUB_BUILD_NAME down -v --remove-orphans --rmi local

# ------------------------------------------ E2E version upgrade ------------------------------------------------
E2E-testing-version-upgrade:
needs:
- javascript-lint
- files-changed
- yaml-lint
- python-lint
if: |
always() && !cancelled() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
uses: ./.github/workflows/version-upgrade.yml

# ------------------------------------------ Benchmarks ------------------------------------------------
backend-benchmark:
needs:
Expand Down
Loading
Loading