Skip to content

Develop#90

Closed
robinonsay wants to merge 35 commits into
mainfrom
develop
Closed

Develop#90
robinonsay wants to merge 35 commits into
mainfrom
develop

Conversation

@robinonsay

Copy link
Copy Markdown
Owner

No description provided.

@robinonsay robinonsay requested a review from Copilot September 21, 2025 10:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR represents a major refactoring and modernization of the Juno embedded C library, focusing on simplifying APIs, improving modularity, and enhancing developer experience. The changes span across core modules including hash maps, memory management, time handling, and build systems.

Key changes include:

  • Complete overhaul of the hash map API from JUNO_MEMORY_T-based to void pointer-based interface
  • Removal of hash module dependencies and consolidation of CRC functionality
  • Syntax fixes for macro usage throughout the codebase (JUNO_ASSERT_SUCCESS parameter handling)

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 50 comments.

Show a summary per file
File Description
tests/test_map.c Complete rewrite with new test framework using direct API calls instead of module-based approach
tests/test_heap.c Updated test expectations for error propagation in heap delete operations
tests/test_hash.c Entire file removed as part of hash module elimination
tests/test_cpp.cpp Updated include dependencies removing hash and string modules
src/juno_map.c Simplified map implementation focusing on index-based operations
src/juno_time.c Fixed type usage and improved documentation comments
src/juno_memory_block.c Corrected macro syntax for error handling
include/juno/map/map_api.h Complete API redesign with simplified void pointer interface
include/juno/module.h Enhanced with new utility macros for result and option handling
CMakeLists.txt Added new build options for freestanding, ASAN, and UBSAN support

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread templates/template_lib/src/template_impl.c Outdated
Comment thread templates/template_impl/src/template_impl.c Outdated
Comment thread templates/template_app/src/template_app.cpp Outdated
Comment thread src/juno_memory_block.c Outdated
Comment thread src/juno_memory_block.c Outdated
Comment thread include/juno/map/map_api.h Outdated
Comment thread include/juno/map/map_api.h Outdated
Comment thread include/juno/map/map_api.h Outdated
Comment thread include/juno/map/map_api.h Outdated
Comment thread include/juno/map/map_api.h Outdated
@robinonsay robinonsay requested a review from Copilot September 21, 2025 10:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

tests/test_map.c:1

  • This test assertion expects Delete to fail when Reset fails, but the function call is JunoDs_Heap_Delete which is a heap operation, not a map operation. This should likely be testing a map function or the variable name h is misleading for a map test.
#include "unity.h"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/juno_time.c Outdated
Comment thread include/juno/ds/map_api.h
robinonsay and others added 2 commits September 22, 2025 15:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 22, 2025 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 42 out of 42 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/test_map.c Outdated
Comment thread include/juno/module.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 22, 2025 15:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 42 out of 42 changed files in this pull request and generated 5 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/test_heap.c
Comment thread tests/test_buff.c Outdated
Comment thread include/juno/sm/sm_api.h
Comment thread include/juno/ds/map_api.h
return ptJunoMap->ptApi->GetValue(tSizeResult.tOk);
}

/// Remove the key and value ata given key

Copilot AI Sep 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: 'ata' should be 'at a'. Should read: '/// Remove the key and value at a given key'

Suggested change
/// Remove the key and value ata given key
/// Remove the key and value at a given key

Copilot uses AI. Check for mistakes.
Comment thread .github/copilot-instructions.md Outdated
Copilot AI review requested due to automatic review settings September 22, 2025 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 43 out of 43 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/test_heap.c
Comment thread src/juno_time.c
@robinonsay robinonsay requested a review from Copilot September 23, 2025 09:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 57 out of 57 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread include/juno/types.h
Comment thread tests/test_memory.c
Comment thread include/juno/module.h
Comment thread CMakeLists.txt Outdated
Copilot AI review requested due to automatic review settings October 1, 2025 10:58
robinonsay and others added 8 commits October 2, 2025 09:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 2, 2025 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 68 out of 68 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 2, 2025 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 68 out of 68 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

tests/test_memory.c:1

  • [nitpick] Passing multiple NULL parameters makes the test intention unclear. Consider using descriptive variable names or comments to clarify which parameters are being tested as invalid.
#include "juno/macros.h"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/juno_time.c Outdated
Comment thread include/juno/memory/memory_api.h Outdated
Copilot AI review requested due to automatic review settings October 2, 2025 17:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 68 out of 68 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copilot AI review requested due to automatic review settings October 2, 2025 17:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 69 out of 69 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

include/juno/module.h:1

  • The variadic macro for failure operations could be dangerous if the failure code contains multiple statements that should be treated atomically. Consider wrapping __VA_ARGS__ in a do-while(0) block for safer macro expansion.
/*

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@robinonsay robinonsay requested a review from Copilot October 2, 2025 18:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 69 out of 69 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/juno_memory_block.c
Comment thread include/juno/memory/memory_api.h Outdated
Comment thread tests/test_memory.c
Copilot AI review requested due to automatic review settings October 2, 2025 18:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 69 out of 69 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread tests/test_heap.c
Comment thread tests/test_memory.c
Comment thread src/juno_memory_block.c
@robinonsay

Copy link
Copy Markdown
Owner Author

closing this MR since it's not ready

@robinonsay robinonsay closed this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants