[
https://issues.apache.org/jira/browse/FINERACT-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Edward Kang updated FINERACT-2518:
----------------------------------
Description:
After investigating, it turns out PRs have been failing due to a mismatch
between the CI/CD date locality (Asia/Kolkata) and date locality used in
SavingsAccountsExternalIdTests (UTC). At certain times of the day, we get a
date mismatch, which corresponds to the errors we have been getting.
Failed CI/CD tests are similar between commits. We get failed data validation
due to: ...cannot.be.before.client.activation.date:
!Screenshot 2026-03-02 at 6.53.46 PM.png!
Proposition is to change the hardcoded UTC to getLocalDateOfTenant() which is
also hardcoded to Asia/Kolkata. This is better than using system date, which
could depend on the location of the user if testing locally.
was:
After investigating, it turns out PRs have been failing due to a mismatch
between the CI/CD date locality (Asia/Kolkata) and date locality used in
SavingsAccountsExternalIdTests (UTC).
Failed CI/CD tests are similar between commits, and rely on this formattedDate
of UTC:
!Screenshot 2026-03-02 at 6.53.46 PM.png!
Proposition is to change the hardcoded UTC to getLocalDateOfTenant() which is
also hardcoded to Asia/Kolkata. This is better than using system date, which
could depend on the location of the user if testing locally.
> Fix to Savings account tests date
> ---------------------------------
>
> Key: FINERACT-2518
> URL: https://issues.apache.org/jira/browse/FINERACT-2518
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Edward Kang
> Priority: Minor
> Attachments: Screenshot 2026-03-02 at 6.53.46 PM-1.png, Screenshot
> 2026-03-02 at 6.53.46 PM.png
>
>
> After investigating, it turns out PRs have been failing due to a mismatch
> between the CI/CD date locality (Asia/Kolkata) and date locality used in
> SavingsAccountsExternalIdTests (UTC). At certain times of the day, we get a
> date mismatch, which corresponds to the errors we have been getting.
> Failed CI/CD tests are similar between commits. We get failed data validation
> due to: ...cannot.be.before.client.activation.date:
> !Screenshot 2026-03-02 at 6.53.46 PM.png!
> Proposition is to change the hardcoded UTC to getLocalDateOfTenant() which is
> also hardcoded to Asia/Kolkata. This is better than using system date, which
> could depend on the location of the user if testing locally.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)