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

Remove os prefix from consecutive build error. #51

Merged
merged 5 commits into from
Aug 11, 2017

Conversation

allenh1
Copy link
Collaborator

@allenh1 allenh1 commented Aug 1, 2017

Fixes traceback for #50

Current behavior just removes the symlinks. I should adapt this to remove the existing tmp directory as well.

connects to #50
connects to #32

@allenh1 allenh1 self-assigned this Aug 1, 2017
link_existing_files(args.ros_distro)
"""
try:
link_existing_files(args.ros_distro)
Copy link
Member

Choose a reason for hiding this comment

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

This looks to be linking args.ros_distro, but the exception removes all active distros?

Copy link
Member

Choose a reason for hiding this comment

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

Related do we really need to symlink? Why don't we simple change the working directory/pass the repository location as an argument?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This looks to be linking args.ros_distro, but the exception removes all active distros?

The function attempts to remove all distros, and has a try catch around it that just passes if it fails to remove the link.

Related do we really need to symlink? Why don't we simple change the working directory/pass the repository location as an argument?

I think that's a much better solution. I'm more partial to that behavior. Could you propose a format for that flag?

Copy link
Member

Choose a reason for hiding this comment

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

This goes with the ability to reuse an exisiting repo. I'd suggest --output-repository-path as an argument. Where if it's unset it will use a temporary directory. (If it uses a temporary directory it should delete it at the end after opening the PR) There could be a flag to prevent the cleanup. and logic to prevent you from running without a PR or preventing cleanup.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good to me!

@allenh1 allenh1 modified the milestone: 0.1.0 Aug 9, 2017
@allenh1 allenh1 force-pushed the consecutive-run-error-50 branch 2 times, most recently from 7b82c8e to 56dac04 Compare August 10, 2017 22:11
@allenh1
Copy link
Collaborator Author

allenh1 commented Aug 10, 2017

@tfoote I added the --output-repository-path option.

@tfoote
Copy link
Member

tfoote commented Aug 10, 2017

Adding the output repository path is good. But I'd like to go one step further and not create the symlinks and just work in the repositories directory.

@allenh1
Copy link
Collaborator Author

allenh1 commented Aug 11, 2017

@tfoote I've removed the sym-link logic, and just rebased on top of master.

Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Much cleaner.

Resolves #50 and #32

@allenh1 allenh1 merged commit a2244de into master Aug 11, 2017
@allenh1 allenh1 deleted the consecutive-run-error-50 branch August 11, 2017 20:53
@allenh1 allenh1 removed the in review label Aug 11, 2017
allenh1 added a commit that referenced this pull request Oct 31, 2017
allenh1 added a commit that referenced this pull request Nov 2, 2017
* Switch to use util functions.

* Use the generate_installers function from superflore.generate_installers

* Linting

* Change the ros_meta class to be RosMeta, as well as changed the inheritance
to be a member of the class (see #52).

* Removed the sym-linked structure to behave more like the Gentoo generator (see #51).

* Removed a commented line from the ebuild logic copypasta, changed the print format slightly for the exception output after a failed pr, and called the file_pr function.

* Add temporary file manager code, as suggested by @tfoote.

* Switch to utils print functions for TempfileManager output.

* Use tempfile manager to clean up temp directories at exit.

* Linting.

* Remove hard-coded org and repo from RepoInstance call.

* Reorder import statements.

* Ok, that's pretty cool.

* Apply new TempfileManager usage to OpenEmbedded logic.

* OpenEmbedded generation is now running. ToDo: automatically clean up the tar files.

* Files were not generating in the directory, but are now.

* Fixed argument mapping for ebuild generator.
zffgithub pushed a commit to zffgithub/superflore that referenced this pull request Apr 11, 2023
* Switch to use util functions.

* Use the generate_installers function from superflore.generate_installers

* Linting

* Change the ros_meta class to be RosMeta, as well as changed the inheritance
to be a member of the class (see ros-infrastructure#52).

* Removed the sym-linked structure to behave more like the Gentoo generator (see ros-infrastructure#51).

* Removed a commented line from the ebuild logic copypasta, changed the print format slightly for the exception output after a failed pr, and called the file_pr function.

* Add temporary file manager code, as suggested by @tfoote.

* Switch to utils print functions for TempfileManager output.

* Use tempfile manager to clean up temp directories at exit.

* Linting.

* Remove hard-coded org and repo from RepoInstance call.

* Reorder import statements.

* Ok, that's pretty cool.

* Apply new TempfileManager usage to OpenEmbedded logic.

* OpenEmbedded generation is now running. ToDo: automatically clean up the tar files.

* Files were not generating in the directory, but are now.

* Fixed argument mapping for ebuild generator.
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.

2 participants