Skip to content

Conversation

@gautham-kollu
Copy link
Collaborator

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Reverting the new behavior introduced in #14103 for appending suffix.

If the name of path is "/dir1/file1.ext1", the with_suffix('ext2') API replaces both ext1 with ext2 instead of appending which was the previous behavior.

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

return
for suffix in suffices:
file_path = path.with_suffix(suffix)
file_path = Path(str(path) + suffix)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use this code to keep it compatible with both pathlib.Path and msc.Path (for object storage path)?

file_path = path.with_name(path.name + suffix)

@github-actions github-actions bot removed the Run CICD label Jul 10, 2025
dimapihtar
dimapihtar previously approved these changes Jul 10, 2025
Copy link
Collaborator

@dimapihtar dimapihtar left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

Signed-off-by: Gautham Kollu <[email protected]>
@github-actions
Copy link
Contributor

[🤖]: Hi @gautham-kollu 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

@gautham-kollu gautham-kollu merged commit f5892f8 into main Jul 14, 2025
223 checks passed
@gautham-kollu gautham-kollu deleted the gkollu/file_path_fix branch July 14, 2025 18:21
AmirHussein96 pushed a commit to AmirHussein96/NeMo that referenced this pull request Jul 23, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Signed-off-by: Amir Hussein <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Aug 4, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
AmirHussein96 pushed a commit to AmirHussein96/NeMo that referenced this pull request Aug 5, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Signed-off-by: Amir Hussein <[email protected]>
AmirHussein96 pushed a commit to AmirHussein96/NeMo that referenced this pull request Aug 5, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Signed-off-by: Amir Hussein <[email protected]>
nasretdinovr pushed a commit to nasretdinovr/NeMo that referenced this pull request Aug 8, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
guyueh1 pushed a commit to guyueh1/NeMo that referenced this pull request Aug 25, 2025
Signed-off-by: Gautham Kollu <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
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.

6 participants