Abhijeetsng97 commented on PR #14364:
URL: https://github.com/apache/gravitino/pull/14364#issuecomment-7005124968

   > > As discussed offline with @Abhijeetsng97: following Rory's suggestion to 
use ObjectPolicyResolver directly, ResolvedTagPolicy is removed and the matcher 
now works on the resolved policies, so a match returns the policy rather than 
the tag. The resolution and matching pieces that #14993 builds on were moved 
into this PR, so #14993 only adds the feature flag and enforcement.
   > > @Abhijeetsng97 before merge, could you update the PR description to 
match? It still mentions the reader and returning the matching tag.
   > > @roryqi no other comments from me. Since the request caches and the 
resolver overloads moved here from #14993, do you want to take another look?
   > 
   > Generally ok for me now. Could u fix the CI failure?
   > 
   > Notice that
   > 
   > ```
   > Background: After you merge a PR labeled with branch-2.0, the cherry-pick 
PR will be created from your fork under your identity, and CI will run on your 
fork's runner without using ASF runners.
   > 
   > 1. Prepare your fork
   > 
   > Fork apache/gravitino under your personal account (skip if already 
forked). The forked repository must be named gravitino.
   > Open the Actions page of your fork. If you see "I understand my workflows, 
go ahead and enable them," click it to enable.
   > 
   > 2. Generate a classic PAT
   > 
   > Go to https://github.com/settings/tokens/new , i.e., Settings → Developer 
settings → Personal access tokens → Tokens (classic) → Generate new token 
(classic).
   > Note: Fill in gravitino-cherry-pick.
   > Expiration: Recommended 90 days or a custom date.
   > Scopes: Select only two: public_repo under repo (do not select the entire 
repo), and workflow.
   > Click Generate token, copy it immediately—you won’t be able to see it 
again after leaving the page.
   > 
   > 3. Create a secret in apache/gravitino
   > 
   > Go to https://github.com/apache/gravitino/settings/secrets/actions/new , 
i.e., Repository Settings → Secrets and variables → Actions → New repository 
secret.
   > Name: CHERRY_PICK_TOKEN_<your GitHub username>, with the username in all 
uppercase and hyphens replaced by underscores. For example, mchades corresponds 
to CHERRY_PICK_TOKEN_MCHADES, foo-bar corresponds to CHERRY_PICK_TOKEN_FOO_BAR.
   > Secret: Paste the token you just copied and save.
   > 
   > Notes
   > 
   > Do not share the token in chat or commit it to any repository.
   > If the token expires or is misconfigured, no error will be reported; the 
cherry-pick PR will automatically be created using Jerry’s token instead. You 
can check the reason in the summary of that workflow run.
   > Rotation: Click Regenerate on the token page, then update the secret with 
the same name. Deactivation: Delete the token and the corresponding secret.
   > If CI fails, go to the Actions page of your own fork and re-run; you can 
also trigger a re-run by pushing directly to the PR branch.
   > ```
   
   fixed CI failure 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to