-
Notifications
You must be signed in to change notification settings - Fork 430
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
Add exec-mode to script files #1486
Add exec-mode to script files #1486
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KOKORO tests are failing. Is this expected?
No, I'll look at the failure. |
a03fd18
to
7dd8705
Compare
The failure was because I had also removed the chmod calls also within the same change, which caused the presubmits to fail. The presubmit jobs do the following: git checkout master
chmod +x run_some_script.sh # Earlier moved in this PR itself.
./run_some_script.sh
# Fails because even though we have add exec-permission on run_some_script.sh in this PR/branch, it's not reflected on the master branch until the merge goes through, and master branch doesn't have run_some_script.sh as executable.
# verify output
git checkout dev-branch # FAILS
./run_some_script.sh I've addressed this failure by splitting out the chmod removals into a cleanup PR afterwards i.e. Remove chmod calls for running scripts. |
This PR is safe to be merged into the release branch along the same line as here . |
704056e
to
65de916
Compare
I can see there are 21 shell-scripts under |
I haven't done it blanketly for all scripts, only for those scripts that were being |
Yeah, will change the title. |
The presubmit tests are all passing now. link Perf results |
This change adds execute mode (chmod +x) to add script files in the gcsfuse project. This is needed to avoid having to `chmod +x` each time for running a shell script especially a in jobs or in other scripts. This `chmod +x` caused errors in running `git checkout` in the calling script in the scenario like below. ```shell get checkout master chmod +x some_child_script.sh get checkout dev_branch ### FAILS saying files are modified. ``` This change addresses internal bug#307698513 .
d984fa3
65de916
to
d984fa3
Compare
@ashmeenkaur @raj-prince I'm have added Also earlier I had only added the exec-permissions to those script files, which were being Please review and approve. Once approving this, please also review follow-up PR #1489. |
d984fa3
to
8723021
Compare
* Add execute mode to all shell scripts This change adds execute mode (chmod +x) to add script files in the gcsfuse project. This is needed to avoid having to `chmod +x` each time for running a shell script especially a in jobs or in other scripts. This `chmod +x` caused errors in running `git checkout` in the calling script in the scenario like below. ```shell get checkout master chmod +x some_child_script.sh get checkout dev_branch ### FAILS saying files are modified. ``` This change addresses internal bug#307698513 . * Add execute mode to more shell scripts * Add exec permission to more script files
* Add execute mode to all shell scripts This change adds execute mode (chmod +x) to add script files in the gcsfuse project. This is needed to avoid having to `chmod +x` each time for running a shell script especially a in jobs or in other scripts. This `chmod +x` caused errors in running `git checkout` in the calling script in the scenario like below. ```shell get checkout master chmod +x some_child_script.sh get checkout dev_branch ### FAILS saying files are modified. ``` This change addresses internal bug#307698513 . * Add execute mode to more shell scripts * Add exec permission to more script files
* Add execute mode to all shell scripts This change adds execute mode (chmod +x) to add script files in the gcsfuse project. This is needed to avoid having to `chmod +x` each time for running a shell script especially a in jobs or in other scripts. This `chmod +x` caused errors in running `git checkout` in the calling script in the scenario like below. ```shell get checkout master chmod +x some_child_script.sh get checkout dev_branch ### FAILS saying files are modified. ``` This change addresses internal bug#307698513 . * Add execute mode to more shell scripts * Add exec permission to more script files
Description
Add execute mode to all shell scripts
This change adds execute mode (chmod +x)
to add script files in the gcsfuse project. This is needed to avoid having to
chmod +x
each time for running a shellscript especially a in jobs or in other scripts.
This
chmod +x
caused errors in runninggit checkout
in the calling script in the scenario like below.
This change addresses internal bug#307698513 .
This has a follow-up cleanup in Remove chmod calls for running scripts . Currently these two changes can't be merged together because putting them together fails the presubmit tests.
Link to the issue in case of a bug fix.
NA
Testing details