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

CLDR-16835 fix phase check for adding items #3816

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Jun 20, 2024

  • adding items was using the overall phase instead of the specific phase

CLDR-16835

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

- adding items was using the overall phase instead of the specific phase
@srl295 srl295 requested review from macchiati, AEApple and btangmu June 20, 2024 14:48
@srl295 srl295 self-assigned this Jun 20, 2024
AEApple
AEApple previously approved these changes Jun 20, 2024
btangmu
btangmu previously approved these changes Jun 20, 2024
@macchiati
Copy link
Member

macchiati commented Jun 20, 2024 via email

@btangmu
Copy link
Member

btangmu commented Jun 20, 2024

Error: TestSTFactory.TestVotePerf:470->runDataDrivenTest:486 Unexpected exception: org.unicode.cldr.web.SurveyException: Status action is forbidden: FORBID_UNLESS_DATA_SUBMISSION

@macchiati
Copy link
Member

macchiati commented Jun 20, 2024 via email

@btangmu
Copy link
Member

btangmu commented Jun 20, 2024

        // Allow items if submission
        if (this == Phase.SUBMISSION || isUnitTest()) {
            return StatusAction.ALLOW;
        }

surprising if isUnitTest() returns false in this context?

@srl295
Copy link
Member Author

srl295 commented Jun 20, 2024

working on it

@btangmu
Copy link
Member

btangmu commented Jun 20, 2024

org.unicode.cldr.web.SurveyException: Status action is forbidden: FORBID_UNLESS_DATA_SUBMISSION
at org.unicode.cldr.web.api.VoteAPIHelper.getHandleVoteResponse(VoteAPIHelper.java:521)
at org.unicode.cldr.web.DataDrivenSTTestHandler.handleElementApivote(DataDrivenSTTestHandler.java:468)
at org.unicode.cldr.web.DataDrivenSTTestHandler.handlePathValue(DataDrivenSTTestHandler.java:83)
at org.unicode.cldr.util.XMLFileReader$MyContentHandler.endElement(XMLFileReader.java:439)
...
...
at org.unicode.cldr.util.XMLFileReader.read(XMLFileReader.java:147)
at org.unicode.cldr.web.TestSTFactory.runDataDrivenTest(TestSTFactory.java:486)
at org.unicode.cldr.web.TestSTFactory.TestVotePerf(TestSTFactory.java:470)

- the phase system needs to return BUILD when in unit tests.
@srl295 srl295 dismissed stale reviews from btangmu and AEApple via 1e3d535 June 20, 2024 16:08
@srl295
Copy link
Member Author

srl295 commented Jun 20, 2024

Took some digging but PTAL

@srl295 srl295 requested review from btangmu and AEApple June 20, 2024 16:08
@srl295
Copy link
Member Author

srl295 commented Jun 20, 2024

Could I get someone else to merge/drive this once it passes and is reviewed? Have to jump off for some time.

@macchiati macchiati merged commit 13b1e0c into unicode-org:main Jun 20, 2024
10 checks passed
@srl295 srl295 deleted the cldr-16835/phase-fix-for-add branch June 20, 2024 16:46
@macchiati
Copy link
Member

macchiati commented Jun 20, 2024 via email

Copy link

@Koh-8888 Koh-8888 left a comment

Choose a reason for hiding this comment

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

Thanks

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.

5 participants