Skip to content

Commit 9dba3e7

Browse files
committed
develop -> main
Squashed commit of the following: commit 584fc5c Author: Atlan CI <[email protected]> Date: Fri Feb 28 16:20:32 2025 +0530 chore(release): bump version (#247) commit 0fbe68d Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 28 16:19:39 2025 +0530 APP-5482: [Unit Tests] Improve coverage and maintain coverage report (#224) - add coverage reports to s3 bucket. commit 90ccf9e Author: Atlan CI <[email protected]> Date: Fri Feb 28 15:14:49 2025 +0530 chore(release): bump version (#246) commit d789fde Author: SanilK2108 <[email protected]> Date: Fri Feb 28 15:13:54 2025 +0530 Configurable timeouts (#245) * configurable timeouts * default_schedule_to_start_timeout - increase to 6 hours commit 2add6ac Author: Atlan CI <[email protected]> Date: Fri Feb 28 13:48:20 2025 +0530 chore(release): bump version (#244) commit 2f7287c Author: SanilK2108 <[email protected]> Date: Fri Feb 28 13:47:20 2025 +0530 fix: APP-5598 Health check timeout 1m assets (#243) * Removing max transform concurrency * fix: pin dapr CLI to 1.14.1 --------- Co-authored-by: Nishchith Shetty <[email protected]> commit c8bafe8 Author: Atlan CI <[email protected]> Date: Fri Feb 28 12:01:32 2025 +0530 chore(release): bump version (#242) commit ccf19c6 Author: Ujala Singh <[email protected]> Date: Fri Feb 28 12:00:40 2025 +0530 fix: Trivy Action to ignore the unfixed vulnerabilities (#239) commit 5d8139d Author: Atlan CI <[email protected]> Date: Fri Feb 28 11:34:14 2025 +0530 chore(release): bump version (#240) commit ca3df39 Merge: 607c18b e4bb3e5 Author: Onkar Ravgan <[email protected]> Date: Fri Feb 28 11:32:59 2025 +0530 Merge pull request #210 from atlanhq/APP-5484-e2e-test-framework feat: APP-5484 [Integration Tests] E2E test framework commit e4bb3e5 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 22:41:09 2025 +0530 update the branch to develop commit 349a920 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 21:07:33 2025 +0530 rmv whitespace commit 49a65cc Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 20:59:41 2025 +0530 add event after for commit hash commit 4507afb Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 19:43:43 2025 +0530 echo commit hashes commit e36f898 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 19:22:07 2025 +0530 test6 commit ee04d1d Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 19:08:42 2025 +0530 checkout repo commit 08403d7 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 18:52:01 2025 +0530 check commit hash commit c5bddf6 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 17:38:51 2025 +0530 test3" " commit 904b8f2 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 17:35:18 2025 +0530 test2 commit 607c18b Author: Atlan CI <[email protected]> Date: Thu Feb 27 17:29:22 2025 +0530 chore(release): bump version (#238) commit 39c6b97 Author: Junaid Rahim <[email protected]> Date: Thu Feb 27 17:25:14 2025 +0530 ci: APP-5393 handle edge case for cascading releases (#236) * ci: handle edge case for cascading releases Signed-off-by: Junaid Rahim <[email protected]> * chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> --------- Signed-off-by: Junaid Rahim <[email protected]> commit 3a27d54 Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 16:40:04 2025 +0530 fix poetry 3 commit cbec63a Merge: 47107ed b62a64a Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 16:39:31 2025 +0530 Merge remote-tracking branch 'origin/develop' into APP-5484-e2e-test-framework commit 47107ed Author: Onkar Ravgan <[email protected]> Date: Thu Feb 27 16:37:02 2025 +0530 use dispatch gh commit b62a64a Author: Atlan CI <[email protected]> Date: Thu Feb 27 16:07:03 2025 +0530 chore(release): bump version (#234) commit 07f2668 Author: Atlan CI <[email protected]> Date: Thu Feb 27 16:06:20 2025 +0530 chore(release): bump version (#233) commit fa83969 Author: Atlan CI <[email protected]> Date: Thu Feb 27 16:05:37 2025 +0530 chore(release): bump version (#232) commit 36083db Author: Junaid Rahim <[email protected]> Date: Thu Feb 27 16:04:50 2025 +0530 ci: APP-5393 correct commit command (#229) Signed-off-by: Junaid Rahim <[email protected]> commit 573cb3b Author: Atlan CI <[email protected]> Date: Thu Feb 27 15:53:47 2025 +0530 chore(release): bump version (#231) commit a222055 Author: Nishchith Shetty <[email protected]> Date: Wed Feb 26 22:12:31 2025 -0800 fix: ruff errors commit cd0e90a Author: Mustafa <[email protected]> Date: Thu Feb 27 11:29:33 2025 +0530 ci: APP-5661 Added Resource Attributes in the otel logger (#219) * added resoruce attributes via the code * refactor: improve formatting and readability in logger_adaptors.py * refactor: enhance resource attribute parsing in logger_adaptors.py * refactor: improve attribute parsing logic in logger_adaptors.py * refactor: add error handling to resource attribute parsing in logger_adaptors.py * fix: correct typo in method name for resource attribute parsing in logger_adaptors.py commit 56f8acc Author: Junaid Rahim <[email protected]> Date: Thu Feb 27 10:56:32 2025 +0530 ci: APP-5393 correct commit command (#226) * chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> * chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> * ci: correct commit command Signed-off-by: Junaid Rahim <[email protected]> --------- Signed-off-by: Junaid Rahim <[email protected]> commit db3c560 Author: Nishchith Shetty <[email protected]> Date: Wed Feb 26 13:16:44 2025 -0800 fix: tests commit 8eca825 Merge: 3b32057 34d5f80 Author: Nishchith Shetty <[email protected]> Date: Wed Feb 26 13:15:03 2025 -0800 Merge branch 'main' into develop commit 3b32057 Author: Nishchith Shetty <[email protected]> Date: Wed Feb 26 13:11:55 2025 -0800 fix: custom attributes commit b37c8b1 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 26 20:09:10 2025 +0530 rmv mkdocs commit f1c6a7a Author: Onkar Ravgan <[email protected]> Date: Wed Feb 26 20:07:33 2025 +0530 fix poetry file commit 75c201e Merge: 3864b75 1ec326c Author: Onkar Ravgan <[email protected]> Date: Wed Feb 26 20:06:42 2025 +0530 Merge remote-tracking branch 'origin/develop' into APP-5484-e2e-test-framework commit 1ec326c Author: Junaid Rahim <[email protected]> Date: Wed Feb 26 17:00:45 2025 +0530 ci: APP-5393 correct release commit user (#225) * ci: correct release commit user Signed-off-by: Junaid Rahim <[email protected]> * chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> * chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> --------- Signed-off-by: Junaid Rahim <[email protected]> commit 64bfca3 Merge: 4da0c26 ceabd72 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 26 13:31:10 2025 +0530 Merge pull request #223 from atlanhq/change-deps re-added scale data generator module in pyproject.toml commit ceabd72 Author: Abhishek Agrawal <[email protected]> Date: Wed Feb 26 13:26:35 2025 +0530 re-added scale data generator module in pyproject.toml commit 4da0c26 Merge: cc47138 61c8f42 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 26 12:17:20 2025 +0530 Merge pull request #221 from atlanhq/APP-5635 fix(docgen): APP-5635 make mkdocs dep optional commit 61c8f42 Author: Junaid Rahim <[email protected]> Date: Wed Feb 26 12:13:11 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit f6075a9 Author: Junaid Rahim <[email protected]> Date: Wed Feb 26 12:09:20 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit 0f18275 Author: Junaid Rahim <[email protected]> Date: Wed Feb 26 11:55:49 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit 3864b75 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 20:37:18 2025 +0530 add mkdocs temporarily commit d708e19 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 20:33:50 2025 +0530 update deps commit 05aee0d Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 19:05:38 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit a038e0a Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 19:02:16 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit 9d5745f Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 18:57:40 2025 +0530 fix(docgen): make mkdocs dep optional Signed-off-by: Junaid Rahim <[email protected]> commit cc47138 Author: SanilK2108 <[email protected]> Date: Tue Feb 25 16:47:04 2025 +0530 App-5256 Transformation time improvements (#193) * single assignment for columns * single assignment for all types * fix: transformed data didnt have attributes commit ab468eb Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 15:45:12 2025 +0530 check api resp commit 1978143 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 15:35:42 2025 +0530 fix poetry conflicts commit 69947a6 Merge: c1943a3 aef1071 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 15:34:44 2025 +0530 fix conflicts commit c1943a3 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 25 15:31:33 2025 +0530 add gh action to trigger workflow from sdk commit aef1071 Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 15:05:52 2025 +0530 ci: APP-5393 correct duplicate env (#218) commit 31a5233 Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 15:01:47 2025 +0530 ci: update secret for releases (#216) (#217) Signed-off-by: Junaid Rahim <[email protected]> commit 0d99647 Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 14:23:55 2025 +0530 ci: update secret for releases (#216) Signed-off-by: Junaid Rahim <[email protected]> commit ea13744 Author: Junaid Rahim <[email protected]> Date: Tue Feb 25 13:30:07 2025 +0530 feat: APP-5393 add semantic releases (#211) * feat: add semantic releases commit 2cba826 Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 25 12:00:04 2025 +0530 APP-5482 [Unit Tests] Improve coverage and maintain coverage report (#208) * Improvement : APP-5482 [Unit Tests] Improve coverage and maintain coverage report Added command for the coverage to omit tests folder Added command for the unit test step to fail if the coverage falls under 60 * APP-5037 Add unit tests for tables and views - Added a test to test_workflow.py which would test the following scenario : "In the current application-sdk, even if temp_table_regex is None, we still add a regex condition in our SQL statements - NOT TABLE_NAME RLIKE '^$'. With this change, if temp_table_regex is empty, then this condition would not be added." * Revert "APP-5037 Add unit tests for tables and views" This reverts commit 4392fda. commit ff52c58 Merge: 58105f1 5b7308e Author: Onkar Ravgan <[email protected]> Date: Mon Feb 24 18:22:10 2025 +0530 Merge pull request #213 from atlanhq/APP-5585 fix: APP-5585 Bug: Incorrect credentials inaccurate error message - Preflight check hander commit 5b7308e Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 17:48:31 2025 +0530 Made engine creation and connection under single try / Except commit 8c09f2e Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 16:40:24 2025 +0530 Removed sqlalchemy specific error handling alltogether commit 58105f1 Merge: 19d05ca 3b29b6f Author: Onkar Ravgan <[email protected]> Date: Mon Feb 24 16:16:46 2025 +0530 Merge pull request #207 from atlanhq/APP-4889 refactor: APP-4889 Refactor `ChunkedObjectStoreWriterInterface` to the Inputs / Outputs interface commit 3b29b6f Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 16:01:30 2025 +0530 Pathed read_file and upload_file methods. commit 19d05ca Author: Junaid Rahim <[email protected]> Date: Mon Feb 24 15:42:06 2025 +0530 chore: APP-5393 create different action for conventional commits Signed-off-by: Junaid Rahim <[email protected]> commit 78b74b9 Author: Junaid Rahim <[email protected]> Date: Mon Feb 24 15:40:06 2025 +0530 feat(docs): APP-5321 mount doc server with app * feat(docs): mount doc server with app * chore: cleanup commit 9c94787 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 15:17:16 2025 +0530 Input will read from objectStore and Output will push to objectstore commit 2f731ea Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 14:20:39 2025 +0530 Instead of using string matches, used SQLAlchemy specific exceptions commit d5a078f Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 09:58:19 2025 +0530 Made the tests functional for testing parquet with pandas and daft both commit 28fa4a9 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 09:43:56 2025 +0530 renamed decorator from transform_pandas to transform commit 9649a8f Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 09:37:41 2025 +0530 Changes to ParquetInputs and ParquetOutputs - Added decorator based tests for both the input and the output classes - Added a parquet Input class - Used native daft and pandas methods to implement the Input and the Output classes. commit 97f69d0 Merge: 66c23e7 ce94a1b Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 24 09:01:43 2025 +0530 Merge branch 'develop' of github.com:atlanhq/application-sdk into APP-4889 commit ce94a1b Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 21 16:47:15 2025 +0530 APP-5037 Add unit tests for tables and views (#209) - Added unit tests to validate this scenario : ”In the current application-sdk, even if temp_table_regex is None, we still add a regex condition in our SQL statements - NOT TABLE_NAME RLIKE '^$'. With this change, if temp_table_regex is empty, then this condition would not be added.” commit a896e7d Author: Onkar Ravgan <[email protected]> Date: Fri Feb 21 15:57:33 2025 +0530 improved code readability commit a0d71d3 Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 21 08:49:23 2025 +0530 converted exception handling into seperate function and used that in to handle exceptions. commit fbcf1bc Author: Mustafa <[email protected]> Date: Fri Feb 21 01:37:58 2025 +0530 fix: APP-5438: Description/remarks causing diff (KIWI) (#203) * refactor: remove unnecessary JSON serialization in process_text function * refactor: improve test output format in CI workflow * fix: remove unnecessary JSON parsing in schema and table tests * refactor: update test descriptions and improve coverage command * fix: correct command syntax in CI workflow for running tests with coverage * refactor: enhance text processing by removing HTML tags and normalizing whitespace * refactor: streamline text processing by combining HTML tag removal and whitespace normalization commit 9ab90ea Author: Onkar Ravgan <[email protected]> Date: Thu Feb 20 16:56:20 2025 +0530 update custom test commit 6f4a068 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 20 16:13:01 2025 +0530 fix: APP-5585 Bug: Incorrect credentials inaccurate error message - Preflight check hander - Added error handling for sql_client.load() method - modified the metadata extraction activity to create and store handler before awaiting for the sql_client commit b3f3ae7 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 19 20:03:09 2025 +0530 handle exceptions commit b66bb82 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 19 17:56:48 2025 +0530 fix poetry commit 81b163a Author: Onkar Ravgan <[email protected]> Date: Wed Feb 19 17:13:23 2025 +0530 APP-5484 e2e test framework commit 66c23e7 Author: Abhishek Agrawal <[email protected]> Date: Wed Feb 19 11:16:58 2025 +0530 refactor: APP-4889 Refactor `ChunkedObjectStoreWriterInterface` to the Inputs / Outputs interface commit e0efbdd Merge: d95f9f9 c9c7aa4 Author: Onkar Ravgan <[email protected]> Date: Wed Feb 19 10:48:54 2025 +0530 Merge pull request #201 from atlanhq/fix-paths fix: APP-5369 Add Cloud specific metadata for Output Bindings commit d95f9f9 Merge: 911a4fe d6fea5e Author: Onkar Ravgan <[email protected]> Date: Wed Feb 19 10:46:41 2025 +0530 Merge pull request #189 from atlanhq/stale-deps-cleanup Cleanup of stale dependencies in application-sdk commit 911a4fe Merge: 3827ff0 4c59203 Author: Onkar Ravgan <[email protected]> Date: Tue Feb 18 19:08:38 2025 +0530 Merge pull request #204 from atlanhq/feat/add-healthcheck-override-timeout feature: Allow apps to override heartbeat timeout commit c9c7aa4 Author: ujala-singh <[email protected]> Date: Tue Feb 18 17:08:33 2025 +0530 fix: Pre-Commit Check commit d6fea5e Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 18 12:54:29 2025 +0530 Updated comments on pyproject.toml commit 0baac01 Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 18 12:35:20 2025 +0530 Updated pyproject.toml - Moved boto3-stubs to dev-dependency commit 593e204 Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 18 12:10:21 2025 +0530 fixed pre-commit checks commit 0c21ee8 Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 18 12:08:04 2025 +0530 Updated pyproject.toml by adding comments commit b45ecd0 Author: Abhishek Agrawal <[email protected]> Date: Tue Feb 18 11:58:00 2025 +0530 Refactored pyproject.toml - Removed aiofiles - Made pyarrow an optional dependency - added pandas to dev dependency - Removed starlette-context - removed pyyaml - renamed boto3 module to iam_auth - removed pandas and pyarrorw from test dependency - Removed pygwalker and numpy commit 01c4382 Author: ujala-singh <[email protected]> Date: Tue Feb 18 11:47:56 2025 +0530 chore: Update metadata payload commit 4c59203 Author: SanilK2108 <[email protected]> Date: Tue Feb 18 11:28:42 2025 +0530 feat: Allow apps to override heartbeat timeout commit 5f280c0 Author: ujala-singh <[email protected]> Date: Tue Feb 18 10:52:34 2025 +0530 chore: Update metadata payload commit 1c4b294 Author: ujala-singh <[email protected]> Date: Tue Feb 18 10:49:07 2025 +0530 chore: Update metadata payload commit ceeaa14 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 18:57:47 2025 +0530 Updated poetry.lock commit 89b2254 Merge: ff10413 3827ff0 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 18:56:39 2025 +0530 Merge branch 'develop' into stale-deps-cleanup commit 3827ff0 Merge: b90d60a ef27bac Author: Onkar Ravgan <[email protected]> Date: Mon Feb 17 18:19:18 2025 +0530 Merge pull request #200 from atlanhq/fix/trivy-snowflake-app Add input for skip-files commit b90d60a Merge: ceea14e c0df449 Author: Onkar Ravgan <[email protected]> Date: Mon Feb 17 18:14:04 2025 +0530 Merge pull request #181 from atlanhq/feat/loguru APP-5363 : Added Loguru for better logging commit ff10413 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 18:12:52 2025 +0530 boto3-stubs and boto3 are part of the same module commit ef27bac Author: SanilK2108 <[email protected]> Date: Mon Feb 17 18:12:14 2025 +0530 fix: required commit cff7d17 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 18:05:22 2025 +0530 made boto3-stubs as optional and as a module commit 2909774 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 18:01:16 2025 +0530 debug commit 10a4aa5 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:55:57 2025 +0530 debug commit 5ea4918 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:54:33 2025 +0530 debug commit f526525 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:52:56 2025 +0530 debug commit cf93bb1 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:50:09 2025 +0530 debug commit c0df449 Author: Mustafa <[email protected]> Date: Mon Feb 17 17:43:49 2025 +0530 chore: update poetry.lock to remove unnecessary groups and markers commit baeddf6 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 17:43:38 2025 +0530 updated pyproject.toml commit 7936a15 Merge: 25c7879 ceea14e Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 17:40:27 2025 +0530 Merge branch 'develop' into stale-deps-cleanup commit 5648a53 Merge: 01385a7 ceea14e Author: Mustafa <[email protected]> Date: Mon Feb 17 17:38:43 2025 +0530 Merge branch 'develop' of https://github.com/atlanhq/application-sdk into feat/loguru commit 385c5ec Author: ujala-singh <[email protected]> Date: Mon Feb 17 17:34:49 2025 +0530 fix: Add Cloud specific metadata for Output Bindings commit 8642e7f Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:07:05 2025 +0530 fix: adding skip in the right places commit 5bedd6a Author: SanilK2108 <[email protected]> Date: Mon Feb 17 17:05:13 2025 +0530 debug commit 0115f29 Author: SanilK2108 <[email protected]> Date: Mon Feb 17 16:57:09 2025 +0530 debug commit ceea14e Merge: 2448dd9 46520c9 Author: Mrunmayi Tripathi <[email protected]> Date: Mon Feb 17 16:44:40 2025 +0530 Merge pull request #199 from atlanhq/interrogate-cleanup chore: APP-5028 cleanup interrogate commit 46520c9 Author: Junaid Rahim <[email protected]> Date: Mon Feb 17 16:26:20 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit 2448dd9 Merge: e12113a 1ef2a4b Author: Mrunmayi Tripathi <[email protected]> Date: Mon Feb 17 15:26:56 2025 +0530 Merge pull request #197 from atlanhq/APP-5028 fix: APP-5028 make docstring coverage action reusable commit 25c7879 Merge: e2a61be e12113a Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 15:20:55 2025 +0530 Merge branch 'develop' into stale-deps-cleanup commit 01385a7 Author: Mustafa <[email protected]> Date: Mon Feb 17 14:29:54 2025 +0530 No code changes made. commit e6e0ad4 Merge: 324d4e1 e12113a Author: Mustafa <[email protected]> Date: Mon Feb 17 14:25:58 2025 +0530 Merge branch 'develop' of https://github.com/atlanhq/application-sdk into feat/loguru commit e12113a Merge: d634aec a348d3a Author: Mrunmayi Tripathi <[email protected]> Date: Mon Feb 17 12:54:21 2025 +0530 Merge pull request #190 from atlanhq/APP-5320 feat(docs): APP-5320 add driver class commit d634aec Merge: 67d51ef 7f79397 Author: Mrunmayi Tripathi <[email protected]> Date: Mon Feb 17 12:49:02 2025 +0530 Merge pull request #196 from atlanhq/APP-5495 fix: APP-5495 stale PRs GitHub Action does not seem to be working commit 324d4e1 Author: Mustafa <[email protected]> Date: Mon Feb 17 12:14:35 2025 +0530 refactor: update GitHub Actions workflow to improve test coverage reporting commit 60b3dc7 Author: Mustafa <[email protected]> Date: Mon Feb 17 12:13:22 2025 +0530 refactor: enable loading of cached virtual environment in GitHub Actions workflow commit 27df9b0 Author: Mustafa <[email protected]> Date: Mon Feb 17 12:09:31 2025 +0530 refactor: clean up error logging and improve message formatting in SQLClient and AtlanLoggerAdapter commit a348d3a Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 15:35:48 2025 +0530 feat: added supported features matrix Signed-off-by: Junaid Rahim <[email protected]> commit db5e3fc Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 15:07:51 2025 +0530 feat: added local server Signed-off-by: Junaid Rahim <[email protected]> commit cd0c3c3 Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 14:44:27 2025 +0530 feat(docs): add driver class Signed-off-by: Junaid Rahim <[email protected]> commit 8488f44 Author: Mustafa <[email protected]> Date: Mon Feb 17 12:03:06 2025 +0530 refactor: add print statements in logger adapter tests for debugging purposes commit d5a5215 Author: Mustafa <[email protected]> Date: Mon Feb 17 11:54:52 2025 +0530 refactor: simplify expected message formatting in logger adapter tests for improved readability commit 7f79397 Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 10:51:51 2025 +0530 Modified the cron to run daily instead of weekly commit a2f921d Author: Abhishek Agrawal <[email protected]> Date: Mon Feb 17 10:44:29 2025 +0530 APP-5495 stale prs github action does not seem to be working - Made the workflow callable commit d0936b9 Author: Mustafa <[email protected]> Date: Fri Feb 14 19:48:33 2025 +0530 refactor: streamline workflow and activity context handling in AtlanLoggerAdapter for improved clarity commit b2bf67b Author: Mustafa <[email protected]> Date: Fri Feb 14 19:38:39 2025 +0530 refactor: enhance logging context handling in AtlanLoggerAdapter for improved robustness commit 670bf75 Author: Mustafa <[email protected]> Date: Fri Feb 14 19:27:39 2025 +0530 refactor: update logging format in SQLClient for improved string interpolation commit 8a0e10e Author: Mustafa <[email protected]> Date: Fri Feb 14 15:21:28 2025 +0530 refactor: improve error logging format in SQLClient and AtlasTransformer for better clarity commit 4e1f7d5 Author: Mustafa <[email protected]> Date: Fri Feb 14 15:16:35 2025 +0530 refactor: update logging format in SQLClient for improved string interpolation commit c1f2ce9 Author: Mustafa <[email protected]> Date: Fri Feb 14 15:04:17 2025 +0530 refactor: update logging format in FastAPIApplication for improved readability commit b8ce510 Author: Mustafa <[email protected]> Date: Fri Feb 14 14:20:07 2025 +0530 refactor: comment out condition for cached dependencies installation in GitHub Actions workflow commit c0cb33d Author: Mustafa <[email protected]> Date: Fri Feb 14 14:19:52 2025 +0530 refactor: comment out cached venv loading in GitHub Actions workflow commit 8564174 Author: Mustafa <[email protected]> Date: Fri Feb 14 14:16:52 2025 +0530 refactor: improve error logging in AtlasTransformer for better context commit f759e0f Author: Mustafa <[email protected]> Date: Fri Feb 14 14:10:02 2025 +0530 refactor: update test command to use quiet mode and short traceback format commit 7a2655e Author: Mustafa <[email protected]> Date: Fri Feb 14 14:00:45 2025 +0530 refactor: update logger adapter test to use run_id instead of workflow_run_id commit 93c3c3d Author: Mustafa <[email protected]> Date: Fri Feb 14 13:55:19 2025 +0530 refactor: update expected logger messages to use dynamic workflow and activity context variables commit e2a61be Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 14 13:47:28 2025 +0530 Updating pyproject.toml commit 4eb544d Author: Mustafa <[email protected]> Date: Fri Feb 14 13:47:00 2025 +0530 test: add unit tests for AtlanLoggerAdapter and logger functions commit d5ba82f Merge: 54919a0 67d51ef Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 14 13:40:34 2025 +0530 Merge branch 'develop' into stale-deps-cleanup commit 0350b5a Author: Mustafa <[email protected]> Date: Fri Feb 14 13:37:06 2025 +0530 refactor: remove outdated logger tests and fixtures for AtlanLoggerAdapter commit ad71d66 Author: Mustafa <[email protected]> Date: Fri Feb 14 13:15:29 2025 +0530 refactor: replace logging with loguru in logger adaptors and directory parser commit d5866c9 Merge: bb40924 67d51ef Author: Mustafa <[email protected]> Date: Fri Feb 14 12:57:58 2025 +0530 Merge branch 'develop' of https://github.com/atlanhq/application-sdk into feat/loguru commit bb40924 Author: Mustafa <[email protected]> Date: Fri Feb 14 12:23:22 2025 +0530 refactor: update expected logger messages to include detailed workflow and activity context commit 4f9ab12 Author: Mustafa <[email protected]> Date: Fri Feb 14 12:13:50 2025 +0530 refactor: simplify expected message in logger tests by removing context details commit 73831cc Author: Mustafa <[email protected]> Date: Fri Feb 14 12:01:02 2025 +0530 refactor: enhance logger test messages with formatted workflow and activity context commit 67d51ef Author: SanilK2108 <[email protected]> Date: Fri Feb 14 12:00:46 2025 +0530 APP-5081 : fixed healthchecks (#182) * update: Adding configuration for max concurrent activities * fix: precommit * fix: unit tests * fix: Added health timeouts and health checks for transform batch * fix: Code refactoring commit e069d22 Author: Ujala Singh <[email protected]> Date: Fri Feb 14 12:00:26 2025 +0530 APP-5369 feat: Add ENVs support for Dapr Components (#186) * feat: Add ENVs support for Dapr Components * fix: Pre-Commit Check commit b261f18 Merge: 0a8c0c3 45ee41f Author: Mustafa <[email protected]> Date: Fri Feb 14 11:52:24 2025 +0530 Merge branch 'develop' of https://github.com/atlanhq/application-sdk into feat/loguru commit 45ee41f Author: Mustafa <[email protected]> Date: Fri Feb 14 11:41:38 2025 +0530 APP-5362 : feat: integrate uvloop for improved asyncio performance (#179) * feat: integrate uvloop for improved asyncio performance * feat: add uvloop integration for improved asyncio performance across the application * refactor: remove uvloop integration from various files * test: add unit tests for event loop implementations and performance comparison * refactor: clean up whitespace and formatting in event loop tests * test: simplify event loop tests by removing unnecessary assertions and imports * refactor: add whitespace for improved readability in decorators module * refactor: remove obsolete event loop tests and related imports commit 0a8c0c3 Author: Mustafa <[email protected]> Date: Fri Feb 14 11:10:15 2025 +0530 refactor: update logger format string for improved clarity commit ffd3acf Author: Mustafa <[email protected]> Date: Fri Feb 14 11:07:48 2025 +0530 refactor: remove redundant logging from SQL query fetch method commit 54919a0 Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 14 10:57:33 2025 +0530 made numpy an optional test dependency. commit 1ef4a48 Author: Abhishek Agrawal <[email protected]> Date: Fri Feb 14 10:55:06 2025 +0530 Updated pyproject.toml wrt PR comments. commit cf70201 Merge: 2f48ea5 2f6f2de Author: Mrunmayi Tripathi <[email protected]> Date: Thu Feb 13 18:26:13 2025 +0530 Merge pull request #191 from atlanhq/conventional-commits feat: APP-5391 enforce conventional commits and semantic PR title commit 82629bc Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 18:07:36 2025 +0530 added back pylint commit 80bca90 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 18:03:54 2025 +0530 Added back pydata-sphinx-theme commit 75d8dae Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 18:01:07 2025 +0530 Added back myst-parser as it was being used by "Build Docs and Push to Kryptonite / generate-docs" commit 2f6f2de Merge: 581325c 2f48ea5 Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 17:57:11 2025 +0530 Merge branch 'develop' into conventional-commits commit 2f48ea5 Merge: 5938b1c 8220470 Author: Mrunmayi Tripathi <[email protected]> Date: Thu Feb 13 17:55:19 2025 +0530 Merge pull request #185 from atlanhq/APP-5069 APP-5069 Added pyright pre-commit checks to application-sdk commit 11fdc69 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 17:45:05 2025 +0530 Made pyarrow an optional dependency, removed pydata-sphinx-theme, pylint and myst-parser commit 581325c Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 17:38:13 2025 +0530 chore: update guide Signed-off-by: Junaid Rahim <[email protected]> commit b6d69c1 Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 17:28:32 2025 +0530 chore: cleanup Signed-off-by: Junaid Rahim <[email protected]> commit 8b8ba68 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 17:24:23 2025 +0530 Moved scale_data_generator to tests commit 76f4185 Author: Junaid Rahim <[email protected]> Date: Thu Feb 13 17:22:52 2025 +0530 feat: enforce conventional commits Signed-off-by: Junaid Rahim <[email protected]> commit 35a9e25 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 17:22:12 2025 +0530 update poetry.lock file commit 26d5305 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 17:20:02 2025 +0530 Removed otel-deps, numpy and pyyaml commit 5938b1c Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 14:20:03 2025 +0530 APP-4989 : Rename `dapr_router` (#188) - dapr router is renamed to pubsub_router since it only handled subscription to events via dapr. commit afb34c0 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 14:18:26 2025 +0530 APP-5418 : trivy github action should add comment to the PR and block the PR merge (#187) * APP-5418 : trivy github action should add comment to the PR and block the PR merge - Modified the flow so that trivy github action adds comments to the PR, block merging of that PR and uploads the scan details to Github Security tab too. * Updated aquasecurity/[email protected] to aquasecurity/[email protected] commit 8220470 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 13:22:57 2025 +0530 Added a new-line at EOF for .pre-commit-config.yaml commit 1714169 Author: Abhishek Agrawal <[email protected]> Date: Thu Feb 13 12:33:11 2025 +0530 cleanup of stale dependencies in application-sdk - Removed alembic, fastapi-sqlalchemy, aiofiles, pygwalker from the pyproject.toml commit e2633f9 Author: Abhishek Agrawal <[email protected]> Date: Wed Feb 12 11:25:15 2025 +0530 Used pyright version 1.1.393 which is the latest one. commit eefd9c2 Author: Abhishek Agrawal <[email protected]> Date: Wed Feb 12 11:16:56 2025 +0530 APP - 5069 : Added pyright pre-commit checks to application-sdk commit 9604a22 Merge: 177713f 80edec6 Author: Mustafa <[email protected]> Date: Tue Feb 11 23:42:40 2025 +0530 Merge branch 'feat/loguru' of https://github.com/atlanhq/application-sdk into feat/loguru commit 177713f Author: Mustafa <[email protected]> Date: Tue Feb 11 23:42:38 2025 +0530 refactor: update logger adapter test to use 'request_id' instead of 'extra' key commit 80edec6 Merge: 592cacf 02d0dbf Author: Mustafa <[email protected]> Date: Tue Feb 11 23:36:44 2025 +0530 Merge branch 'develop' into feat/loguru commit 592cacf Author: Mustafa <[email protected]> Date: Tue Feb 11 23:34:47 2025 +0530 refactor: enhance logger adapter tests with improved context handling and mock setup commit 9a1df4a Author: Mustafa <[email protected]> Date: Tue Feb 11 23:30:08 2025 +0530 refactor: remove redundant assertion comment from logger adapter test commit a5d8f44 Author: Mustafa <[email protected]> Date: Tue Feb 11 23:29:35 2025 +0530 refactor: remove unnecessary 'extra' key assertions from logger adapter tests commit 0aad505 Author: Mustafa <[email protected]> Date: Tue Feb 11 23:28:58 2025 +0530 refactor: update logger adapter tests to remove unnecessary 'extra' key usage commit 52e7615 Author: Mustafa <[email protected]> Date: Tue Feb 11 23:17:12 2025 +0530 refactor: remove unused regex import from logger_adaptors.py commit cfe3b88 Author: Mustafa <[email protected]> Date: Tue Feb 11 23:16:19 2025 +0530 feat: enhance AtlanLoggerAdapter to support severity mapping and improve OTLP logging commit 155f6a5 Author: Mustafa <[email protected]> Date: Tue Feb 11 16:07:28 2025 +0530 refactor: update logging message formatting to use custom tags for Run ID commit 3f3e29b Author: Mustafa <[email protected]> Date: Tue Feb 11 16:04:17 2025 +0530 refactor: simplify AtlanLoggerAdapter initialization by removing logger name parameter commit 7294cb8 Author: Mustafa <[email protected]> Date: Tue Feb 11 16:03:28 2025 +0530 feat: enhance logging messages with color formatting for improved readability commit e30180d Author: Mustafa <[email protected]> Date: Tue Feb 11 12:23:49 2025 +0530 refactor: remove unnecessary blank lines in decorators module commit 211ac5b Author: Mustafa <[email protected]> Date: Tue Feb 11 12:23:00 2025 +0530 refactor: remove unnecessary blank lines in decorators module commit 7811055 Author: Mustafa <[email protected]> Date: Tue Feb 11 09:37:08 2025 +0530 refactor: streamline logger format string definition for clarity commit 7b9304c Author: Mustafa <[email protected]> Date: Tue Feb 11 09:30:43 2025 +0530 feat: enhance logging output with color formatting for better readability commit 5c9c0ae Author: Mustafa <[email protected]> Date: Mon Feb 10 17:59:44 2025 +0530 refactor: improve logger adapter structure and enhance logging level mapping commit 11727f6 Author: Mustafa <[email protected]> Date: Mon Feb 10 17:52:00 2025 +0530 feat: integrate Loguru for enhanced logging functionality
1 parent 34d5f80 commit 9dba3e7

File tree

20 files changed

+6349
-85
lines changed

20 files changed

+6349
-85
lines changed

.github/actions/workflow-setup/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
- name: Install Dapr CLI
1414
shell: bash
1515
run: |
16-
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
16+
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s 1.14.1
1717
dapr init --runtime-version 1.13.6 --slim
1818
1919
# Install Temporal
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: E2E Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
branches:
13+
- main
14+
- develop
15+
16+
jobs:
17+
trigger:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
repo_name: ["atlan-postgres-app"] # List of repositories to run the tests
22+
23+
steps:
24+
- name: Check out repository
25+
uses: actions/checkout@v4
26+
with:
27+
ref: ${{ github.ref }}
28+
29+
- name: Run E2E Integrations Tests
30+
uses: codex-/return-dispatch@v2
31+
id: return_dispatch
32+
with:
33+
token: "${{ secrets.ORG_PAT_GITHUB }}"
34+
ref: "refs/heads/develop"
35+
repo: ${{ matrix.repo_name }}
36+
owner: "atlanhq"
37+
workflow: "e2e-integration-test.yaml"
38+
workflow_timeout_seconds: 120
39+
workflow_job_steps_retry_seconds: 10
40+
distinct_id: "${{ github.event.after }}"
41+
42+
- name: Get the run ID and run URL
43+
run: |
44+
echo ${{steps.return_dispatch.outputs.run_id}}
45+
echo ${{steps.return_dispatch.outputs.run_url}}
46+
47+
- name: Check Workflow Status
48+
run: |
49+
repo_owner="atlanhq"
50+
repo_name="${{ matrix.repo_name }}"
51+
run_id="${{steps.return_dispatch.outputs.run_id}}"
52+
53+
echo "Checking status of workflow run $run_id in $repo_name"
54+
55+
status="in_progress"
56+
while [[ "$status" == "in_progress" || "$status" == "queued" ]]; do
57+
sleep 10
58+
status=$(curl -s -H "Authorization: Bearer ${{ secrets.ORG_PAT_GITHUB }}" \
59+
https://api.github.com/repos/$repo_owner/$repo_name/actions/runs/$run_id \
60+
| jq -r '.status')
61+
conclusion=$(curl -s -H "Authorization: Bearer ${{ secrets.ORG_PAT_GITHUB }}" \
62+
https://api.github.com/repos/$repo_owner/$repo_name/actions/runs/$run_id \
63+
| jq -r '.conclusion')
64+
done
65+
66+
if [[ "$conclusion" != "success" ]]; then
67+
echo "Workflow run $run_id in $repo_name failed with conclusion $conclusion"
68+
exit 1
69+
else
70+
echo "Workflow run $run_id in $repo_name succeeded"
71+
fi

.github/workflows/e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Install Dapr
2727
- name: Install Dapr CLI
2828
run: |
29-
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
29+
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s 1.14.1
3030
dapr init --runtime-version 1.13.6 --slim
3131
3232
# Install Temporal

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ on:
3939

4040
jobs:
4141
tag-and-release:
42-
if: github.event.pull_request.merged == true
42+
if: github.event.pull_request.merged == true && !startsWith(github.event.pull_request.head.ref, 'version-update')
4343
runs-on: ubuntu-latest
4444
permissions:
4545
contents: write
@@ -82,14 +82,18 @@ jobs:
8282
run: |
8383
git config --global user.name 'atlan-ci'
8484
git config --global user.email '[email protected]'
85-
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
85+
86+
git checkout -b version-update-${{ github.ref_name }}
8687
8788
git add pyproject.toml poetry.lock
8889
git commit -m "chore(release): bump version"
89-
git push origin ${{ github.ref_name }}
90+
91+
git push origin version-update-${{ github.ref_name }} --force
92+
gh pr create --base develop --title "chore(release): version bump" --body "Automated PR to increment version"
93+
gh pr merge --squash --admin
9094
9195
- name: Create GitHub Release
9296
env:
9397
GH_TOKEN: ${{ secrets.ORG_PAT_GITHUB }}
9498
run: |
95-
gh release create "v$(poetry version -s)" --generate-notes
99+
gh release create "v$(poetry version -s)" --generate-notes

.github/workflows/scale-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# Install Dapr
6363
- name: Install Dapr CLI
6464
run: |
65-
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
65+
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s 1.14.1
6666
dapr init --runtime-version 1.13.6 --slim
6767
6868
# Install Temporal

.github/workflows/tests.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ on:
1616
branches:
1717
- main
1818
- develop
19+
20+
permissions:
21+
pull-requests: write
22+
contents: write
23+
id-token: write # Required for AWS credentials
24+
1925
jobs:
2026
tests:
2127
runs-on: ubuntu-latest
@@ -26,6 +32,7 @@ jobs:
2632
permissions:
2733
pull-requests: write
2834
contents: write
35+
id-token: write # Required for AWS credentials
2936

3037
steps:
3138
- uses: actions/checkout@v3
@@ -38,6 +45,16 @@ jobs:
3845
with:
3946
python-version: "3.11"
4047

48+
- name: Setup AWS Credentials
49+
uses: aws-actions/configure-aws-credentials@v4
50+
with:
51+
aws-region: ap-south-1
52+
role-to-assume: arn:aws:iam::733936409301:role/kryptonite-store_FullAccess
53+
54+
- name: Get branch name
55+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
56+
id: get_branch
57+
4158
#----------------------------------------------
4259
# ----- install & configure poetry -----
4360
#----------------------------------------------
@@ -71,10 +88,15 @@ jobs:
7188
run: |
7289
poetry run coverage run -m pytest tests/ --full-trace --hypothesis-show-statistics
7390
poetry run coverage xml
91+
poetry run coverage html
7492
poetry run coverage report --fail-under=60
7593
7694
- name: Comment Coverage Report on PR
7795
uses: orgoro/[email protected]
7896
with:
7997
coverageFile: coverage.xml
80-
token: ${{ secrets.ORG_PAT_GITHUB }}
98+
token: ${{ secrets.ORG_PAT_GITHUB }}
99+
100+
- name: Upload Coverage Report to S3
101+
run: |
102+
aws s3 sync ./htmlcov s3://kryptonite-store/coverage/application-sdk/${{ steps.get_branch.outputs.branch }} --delete

.github/workflows/trivy-container.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
uses: aquasecurity/[email protected]
5151
with:
5252
image-ref: 'docker-trivy-tag:latest'
53+
ignore-unfixed: true
5354
format: 'table'
5455
severity: 'CRITICAL,HIGH'
5556
exit-code: '1' # Fail the workflow if vulnerabilities are found
@@ -64,6 +65,7 @@ jobs:
6465
if: github.event_name == 'pull_request'
6566
with:
6667
image-ref: 'docker-trivy-tag:latest'
68+
ignore-unfixed: true
6769
format: 'sarif'
6870
output: 'trivy-results.sarif'
6971
severity: 'CRITICAL,HIGH'

application_sdk/common/logger_adaptors.py

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
SERVICE_NAME: str = os.getenv("OTEL_SERVICE_NAME", "application-sdk")
2020
SERVICE_VERSION: str = os.getenv("OTEL_SERVICE_VERSION", "0.1.0")
21+
OTEL_RESOURCE_ATTRIBUTES: str = os.getenv("OTEL_RESOURCE_ATTRIBUTES", "")
2122
OTEL_EXPORTER_OTLP_ENDPOINT: str = os.getenv(
2223
"OTEL_EXPORTER_OTLP_ENDPOINT", "http://localhost:4317"
2324
)
@@ -57,11 +58,18 @@ def __init__(self, logger_name: str) -> None:
5758
# Get workflow node name for Argo environment
5859
workflow_node_name = os.getenv("OTEL_WF_NODE_NAME", "")
5960

60-
# Base resource attributes
61-
resource_attributes = {
62-
"service.name": SERVICE_NAME,
63-
"service.version": SERVICE_VERSION,
64-
}
61+
# First try to get attributes from OTEL_RESOURCE_ATTRIBUTES
62+
resource_attributes = {}
63+
if OTEL_RESOURCE_ATTRIBUTES:
64+
resource_attributes = self._parse_otel_resource_attributes(
65+
OTEL_RESOURCE_ATTRIBUTES
66+
)
67+
68+
# Only add default service attributes if they're not already present
69+
if "service.name" not in resource_attributes:
70+
resource_attributes["service.name"] = SERVICE_NAME
71+
if "service.version" not in resource_attributes:
72+
resource_attributes["service.version"] = SERVICE_VERSION
6573

6674
# Add workflow node name if running in Argo
6775
if workflow_node_name:
@@ -91,7 +99,25 @@ def __init__(self, logger_name: str) -> None:
9199
except Exception as e:
92100
self.logger.error(f"Failed to setup OTLP logging: {str(e)}")
93101

94-
def _create_log_record(self, record: Dict[str, Any]) -> LogRecord:
102+
def _parse_otel_resource_attributes(self, env_var: str) -> dict[str, str]:
103+
try:
104+
# Check if the environment variable is not empty
105+
if env_var:
106+
# Split the string by commas to get individual key-value pairs
107+
attributes = env_var.split(",")
108+
# Create a dictionary from the key-value pairs
109+
return {
110+
item.split("=")[0].strip(): item.split("=")[
111+
1
112+
].strip() # Strip spaces around the key and value
113+
for item in attributes
114+
if "=" in item # Ensure there's an "=" to split
115+
}
116+
except Exception as e:
117+
self.logger.error(f"Failed to parse OTLP resource attributes: {str(e)}")
118+
return {}
119+
120+
def _create_log_record(self, record: dict) -> LogRecord:
95121
"""Create an OpenTelemetry LogRecord."""
96122
severity_number = SEVERITY_MAPPING.get(
97123
record["level"].name, SeverityNumber.UNSPECIFIED
@@ -178,8 +204,12 @@ def process(self, msg: Any, kwargs: Dict[str, Any]) -> Tuple[Any, Dict[str, Any]
178204
activity_info.schedule_to_close_timeout or 0
179205
),
180206
"start_to_close_timeout": str(
181-
activity_info.start_to_close_timeout or 0
207+
activity_info.start_to_close_timeout or None
208+
),
209+
"schedule_to_start_timeout": str(
210+
activity_info.schedule_to_start_timeout or None
182211
),
212+
"heartbeat_timeout": str(activity_info.heartbeat_timeout or None),
183213
}
184214
kwargs.update(activity_context)
185215

0 commit comments

Comments
 (0)