Develop test#1830: taking latest release changes to develop#337
Conversation
Signed-off-by: GitHub <noreply@github.com>
[MOSIP-34814] updated pom version from 1.2.1-SNAPSHOT to 1.3.0-SNAPSHOT
…lob/master/deployment/v3/utils/copy_cm_func.sh to https://raw.githubusercontent.com/mosip/mosip-infra/master/deployment/v3/utils/copy_cm_func.sh Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
[MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/b…
* resolved the merge conflict Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com> * resolved the merge conflict Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com> * resolved the merge conflict Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com> --------- Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com>
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
MOSIP-36412 : Updated the released versions for commons dependency
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
MOSIP-37256 : Updated readme for developer guide java21
Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com>
Signed-off-by: dhanendra06 <dhanendra.tech@gmail.com>
MOSIP-32453
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
[MOSIP-38103] updated version and image
* Updated Pom versions for release changes Signed-off-by: GitHub <noreply@github.com> * Update README.md Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com> * [DSD-6825] platform 1.2.1.0-beta-1 release Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com> --------- Signed-off-by: GitHub <noreply@github.com> Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com> Co-authored-by: Prafulrakhade <Prafulrakhade@users.noreply.github.com> Co-authored-by: Praful Rakhade <prafulrakhade02@gmail.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prafulrakhade <99539100+Prafulrakhade@users.noreply.github.com>
…#255) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Prafulrakhade <Prafulrakhade@users.noreply.github.com>
Signed-off-by: Youssef MAHTAT <youssef.mahtat.as.developer@gmail.com>
… actions/download-artifact to version 4 Signed-off-by: Youssef MAHTAT <youssef.mahtat.as.developer@gmail.com>
MOSIP-25202 - fix sonar reliability issues
* [MOSIP-40012] Corrected ZCG Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> * updated url and description in pom Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --------- Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: kameshsr <kameshsr1338@gmail.com>
* MOSIP-37901: print-release Signed-off-by: nagendra0721 <nagendra0718@gmail.com> * MOSIP-37901: pom changes Signed-off-by: nagendra0721 <nagendra0718@gmail.com> --------- Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
* MOSIP-37901: change to RC Signed-off-by: nagendra0721 <nagendra0718@gmail.com> * MOSIP-37901: rc changes Signed-off-by: nagendra0721 <nagendra0718@gmail.com> * MOSIP-37901: rc changes Signed-off-by: nagendra0721 <nagendra0718@gmail.com> --------- Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
…maven legacy sonartype to maven ossrh central Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
[MOSIP-41674] Updated the changes for mosip namespace migration from …
* [MOSIP-44072] : Updated README.md Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> * [MOSIP-44072] : Updated README.md Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> * [MOSIP-44072] : Updated README.md Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> * [MOSIP-44072] : Updated README.md Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> * Fix typo in README.md for 'Retrieves' Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> * Update DataShare link in README Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com> --------- Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
Create NOTICES.txt
Create Apache-2.0.txt
MOSIP-43812 - Add THIRD-PARTY-NOTICES.txt with package details
Create NOTICES.txt
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prafulrakhade <99539100+Prafulrakhade@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Prafulrakhade <Prafulrakhade@users.noreply.github.com>
* Delete licenses directory to remove duplicates and move the NOTICE * Add NOTICE file for third-party licenses Added NOTICE file with copyright and license information for third-party components used in the project.
* SNAPSHOT changes for licensing folder space issue fix Signed-off-by: kameshsr <kameshsr1338@gmail.com> * Corrected mockito versions Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --------- Signed-off-by: kameshsr <kameshsr1338@gmail.com> Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Co-authored-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prafulrakhade <99539100+Prafulrakhade@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Prafulrakhade <Prafulrakhade@users.noreply.github.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
|
Warning Review limit reached
More reviews will be available in 47 minutes and 1 second. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. WalkthroughUpdated project version to 1.4.0-SNAPSHOT with corresponding kernel dependency bumps. Migrated timestamp generation across the codebase from local ChangesUnified Version Update and DateUtils Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
|
#1830 |
There was a problem hiding this comment.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
pom.xml (1)
495-503:⚠️ Potential issue | 🟠 Major | ⚡ Quick winRemove duplicate maven-javadoc-plugin declaration.
The
maven-javadoc-pluginis already declared at lines 425-441. This duplicate declaration at line 495 causes Maven build warnings and should be removed.🧹 Proposed fix
</plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>${maven.javadoc.version}</version> - <configuration> - <aggregate>true</aggregate> - <doclint>none</doclint> - </configuration> - </plugin> <plugin> <groupId>org.sonatype.central</groupId>🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pom.xml` around lines 495 - 503, The pom contains a duplicate maven-javadoc-plugin declaration (groupId org.apache.maven.plugins, artifactId maven-javadoc-plugin) — locate the second declaration in the POM (the block that sets <aggregate>true</aggregate> and <doclint>none</doclint>) and remove that duplicate plugin element so only the original plugin declaration remains; ensure no other plugin entries are accidentally removed and run a quick mvn validate to confirm warnings are gone.src/test/java/io/mosip/print/util/PrintExceptionHandlerTest.java (1)
117-480:⚠️ Potential issue | 🔴 Critical | ⚡ Quick winComplete the DateUtils2 migration in all test methods.
Only the first test method (
regPrintAppExceptionHandlerShouldReturnProperResponse) was updated to mockDateUtils2. The remaining test methods at lines 117, 144, 171, 199, 226, 254, 283, 310, 339, 366, 394, 420, 447, and 474 still mock the oldDateUtils.class. This inconsistency will cause test failures since the production code now usesDateUtils2.🔧 Example fix for one test method
`@Test` void pdfGeneratorExceptionHandlerShouldReturnProperResponse() { PDFGeneratorException exception = new PDFGeneratorException( PlatformErrorMessages.PRT_PIS_IDENTITY_NOT_FOUND.getCode(), PlatformErrorMessages.PRT_PIS_IDENTITY_NOT_FOUND.getMessage(), new RuntimeException("PDF generation error")); - try (MockedStatic<DateUtils> dateUtilsMock = mockStatic(DateUtils.class); + try (MockedStatic<DateUtils2> dateUtilsMock = mockStatic(DateUtils2.class); MockedStatic<PrintLogger> printLoggerMock = mockStatic(PrintLogger.class)) { Logger mockLogger = mock(Logger.class); printLoggerMock.when(() -> PrintLogger.getLogger(PrintExceptionHandler.class)) .thenReturn(mockLogger); - dateUtilsMock.when(() -> DateUtils.getUTCCurrentDateTimeString(DATETIME_PATTERN)) + dateUtilsMock.when(() -> DateUtils2.getUTCCurrentDateTimeString(DATETIME_PATTERN)) .thenReturn(CURRENT_DATETIME);Apply this pattern to all remaining test methods in this file.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/test/java/io/mosip/print/util/PrintExceptionHandlerTest.java` around lines 117 - 480, The tests in PrintExceptionHandlerTest still mock DateUtils (mockStatic(DateUtils.class)) while production was migrated to DateUtils2; update every test that currently calls mockStatic(DateUtils.class) to mockStatic(DateUtils2.class) (including the occurrences inside methods like templateFailureExceptionHandlerShouldReturnProperResponse, jsonMappingExceptionHandlerShouldReturnBadRequestResponse, invalidFormatExceptionHandlerShouldReturnBadRequestResponse, jsonParseExceptionHandlerShouldReturnBadRequestResponse, methodArgumentNotValidExceptionHandlerShouldReturnBadRequestResponse, accessDeniedExceptionHandlerShouldReturnProperResponse, invalidTokenExceptionHandlerShouldReturnProperResponse, pdfSignatureExceptionHandlerShouldReturnProperResponse, buildPrintApiExceptionResponseWithBaseCheckedExceptionShouldHandleCorrectly, buildPrintApiExceptionResponseWithBaseUncheckedExceptionShouldHandleCorrectly, buildPrintApiExceptionResponseWithNullIdShouldSetDefaultId, buildPrintApiExceptionResponseWithMultipleErrorsShouldHandleCorrectly, buildPrintApiExceptionResponseWithExistingIdShouldPreserveId) and ensure the mocked call to DateUtils.getUTCCurrentDateTimeString(DATETIME_PATTERN) now targets DateUtils2 so date mocks use CURRENT_DATETIME consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@helm/print/values.yaml`:
- Around line 119-124: The memory request (memory: 1800Mi) in values.yaml is too
low for the configured JVM max heap (javaOpts: "-Xms1350M -Xmx2250M"); either
raise the Kubernetes memory request under the resources block to cover heap +
20–30% overhead (e.g., ~2800Mi) to match Xmx, or reduce the Xmx/Xms in
additionalResources.javaOpts to fit within the current 1800Mi request — update
the memory value or the javaOpts string accordingly and keep cpu and limit
settings consistent.
In `@pom.xml`:
- Around line 90-96: The pom imports io.mosip.kernel:kernel-bom using the
property kernel.core.version (set to 1.4.0-SNAPSHOT) which cannot be resolved;
confirm and fix the Maven repository configuration or the version: check the
<repositories> / snapshots-repo entry used by the build, ensure the repository
URL and credentials allow SNAPSHOT retrieval, or change the kernel.core.version
to a published non-SNAPSHOT release; update either the repository
URL/credentials for snapshots or replace kernel-bom:1.4.0-SNAPSHOT with a
resolvable version so dependency resolution succeeds.
- Line 65: Remove the duplicate XML property declaration for
central.publishing.maven.plugin.version: locate the duplicate
<central.publishing.maven.plugin.version> element (the second occurrence) and
delete that entire property element so only the original declaration remains
(keep the first/earlier declaration and remove the later duplicate).
In `@src/main/java/io/mosip/print/service/impl/PrintServiceImpl.java`:
- Line 35: Update the tests to mock the new DateUtils2 usage: replace mocks of
DateUtils with mocks/stubs for DateUtils2.getUTCCurrentDateTime() in
PrintServiceImplTest (affecting the spots around the tests that call
generateCard()), and any other tests that currently mock DateUtils; ensure
PrintServiceImpl.printStatusUpdate() will receive the mocked UTC time by
stubbing DateUtils2.getUTCCurrentDateTime() before generateCard() is invoked so
the unmocked call no longer causes failures.
---
Outside diff comments:
In `@pom.xml`:
- Around line 495-503: The pom contains a duplicate maven-javadoc-plugin
declaration (groupId org.apache.maven.plugins, artifactId maven-javadoc-plugin)
— locate the second declaration in the POM (the block that sets
<aggregate>true</aggregate> and <doclint>none</doclint>) and remove that
duplicate plugin element so only the original plugin declaration remains; ensure
no other plugin entries are accidentally removed and run a quick mvn validate to
confirm warnings are gone.
In `@src/test/java/io/mosip/print/util/PrintExceptionHandlerTest.java`:
- Around line 117-480: The tests in PrintExceptionHandlerTest still mock
DateUtils (mockStatic(DateUtils.class)) while production was migrated to
DateUtils2; update every test that currently calls mockStatic(DateUtils.class)
to mockStatic(DateUtils2.class) (including the occurrences inside methods like
templateFailureExceptionHandlerShouldReturnProperResponse,
jsonMappingExceptionHandlerShouldReturnBadRequestResponse,
invalidFormatExceptionHandlerShouldReturnBadRequestResponse,
jsonParseExceptionHandlerShouldReturnBadRequestResponse,
methodArgumentNotValidExceptionHandlerShouldReturnBadRequestResponse,
accessDeniedExceptionHandlerShouldReturnProperResponse,
invalidTokenExceptionHandlerShouldReturnProperResponse,
pdfSignatureExceptionHandlerShouldReturnProperResponse,
buildPrintApiExceptionResponseWithBaseCheckedExceptionShouldHandleCorrectly,
buildPrintApiExceptionResponseWithBaseUncheckedExceptionShouldHandleCorrectly,
buildPrintApiExceptionResponseWithNullIdShouldSetDefaultId,
buildPrintApiExceptionResponseWithMultipleErrorsShouldHandleCorrectly,
buildPrintApiExceptionResponseWithExistingIdShouldPreserveId) and ensure the
mocked call to DateUtils.getUTCCurrentDateTimeString(DATETIME_PATTERN) now
targets DateUtils2 so date mocks use CURRENT_DATETIME consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 267ecc87-96c0-4fc0-b1e5-085f6b6006e4
📒 Files selected for processing (10)
NOTICEhelm/print/values.yamlpom.xmlsrc/main/java/io/mosip/print/service/impl/PrintServiceImpl.javasrc/main/java/io/mosip/print/service/impl/UinCardGeneratorImpl.javasrc/main/java/io/mosip/print/util/AuditLogRequestBuilder.javasrc/main/java/io/mosip/print/util/DigitalSignatureUtility.javasrc/main/java/io/mosip/print/util/PrintExceptionHandler.javasrc/main/java/io/mosip/print/util/TokenHandlerUtil.javasrc/test/java/io/mosip/print/util/PrintExceptionHandlerTest.java
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@AGENTS.md`:
- Line 28: The markdown has lint errors in AGENTS.md: fix the malformed table
row(s) and inconsistent fenced code block languages by ensuring table pipes are
properly escaped or the row is converted to valid markdown table format (e.g.,
add surrounding pipes and consistent column count for the "PDF generation |
pdfbox" row and the other affected rows) and normalize fenced code blocks to use
a valid language hint (e.g., ```text) with matching opening and closing
backticks; update occurrences noted (around the PDF generation row and lines ~41
and ~173) so the markdown linter passes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 99a84e59-eabd-4d04-ba8a-eda8f44e5bef
📒 Files selected for processing (5)
.github/workflows/push-trigger.ymlAGENTS.mdhelm/print/templates/deployment.yamlhelm/print/values.yamlsrc/main/resources/bootstrap.properties
💤 Files with no reviewable changes (1)
- .github/workflows/push-trigger.yml
✅ Files skipped from review due to trivial changes (1)
- src/main/resources/bootstrap.properties
🚧 Files skipped from review as they are similar to previous changes (1)
- helm/print/values.yaml
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
Signed-off-by: nagendra0721 <nagendra0718@gmail.com>
mosip/commons#1830
Summary by CodeRabbit
Chores
Configuration
Documentation