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
New main update version and sources module. #1027
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1027 +/- ##
==========================================
- Coverage 62.95% 58.00% -4.95%
==========================================
Files 51 53 +2
Lines 4603 5025 +422
==========================================
+ Hits 2898 2915 +17
- Misses 1705 2110 +405
Continue to review full report at Codecov.
|
We could push 3 into |
Yes, thanks for the advice. I'm right now looking into |
By the way, what means these tests of Travis and codecov ? |
Hi again, I am not sure about one thing, when the bot is running it first executes the |
I'm testing the new additions, but I want to know if there is a way to save the output file created using the Circleci run ? |
I discovered how, but it's really troublesome work with the SSH keys. So I will not be able to test the |
|
||
logger.info("writing out file") | ||
with open("new_version.json", "w") as outfile: | ||
json.dump(to_update, outfile) |
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.
We should dump one file per feedstock.
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.
Is there a specific path we should use for them ? (like bump on it's Node path)
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.
Can I create a file on cf-graph-countyfair
to save these files according to node ?(cf-graph-countyfair/versions/{node}_new_version.json
)
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.
if so, how can I send this file to that repo ?
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.
You can make a folder using os.makedirs(foldername, exist_ok=True)
. The files should just be named {node}.json
since the folder name should be descriptive that they are version numbers.
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.
oh I see, them as we already have a Job on circle that saves all the alterations made during the running, them it will push the alterations automatically right ? If that's so I will made the corrections right away thanks 👍
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.
Done, could someone check if it's ok ?
I will change the new version file (outputs) and them close this PR. Them create a new one using the correct name as |
I thought the updates to |
Sorry my bad, I will update this with the new name and removing the current |
I would not remove In my opinion the ordering of changes should be:
This ordering makes certain that we have a minimal amount of time where the system might not work and gives us multiple points to turn back or fix things without disrupting the bot. API changes usually bring all sorts of issues with them, even when we've reviewed the code a lot, so we try to keep API breaking PRs small. Ideally an API break PR only has the API break, no other pieces of code. The |
Ok, thank you very much for the help. I will change the current way the files are being saved as stated by Matthew, and then merge. After that I will work into the circle job. |
Is that okay for me to create the new versions folder at |
Yup! A few things though
This repo holds all of the core data that runs the bot, so we have to be careful! |
I would rather that we use |
Thanks, I was going to use a |
Thanks for the advice. I've completed the changes and will commit them as soon as possible. |
Those jobs are in the circle_worker repo |
Thanks, if the new dump structure is ok, I will work at this ^ |
I've added the changes to |
May I merge this one ? |
Please don't merge your own PRs (it is a bit of an anti-pattern) |
Ok sorry about that. Thanks for the advice 👍 |
Is there something I need to change for the merge ? Is there any other thing I can do ? |
Sorry for the review delay. Yes, if you are blocked on one PR/part of your project please feel free to start working on the next part. (assuming one doesn't depend on the other) |
Actually I do need this running at circle to work on the |
Then I will work on the pool version of the |
@CJ-Wright I saw your [#1032], can I implement these name changes here too ? |
If you want to do it on the new code you wrote, sure. Please don't change the code you haven't already changed though. |
Yup, thanks. |
this needs black run on it. |
@CJ-Wright are you opened to add a pre-commit hook here? |
|
Sorry IDK what is a pre-commit in your sense of speaking, can someone clarify this to me ? |
I've just finished the pool version here, I will test here and them commit the changes. (one question can I put the two of them here as |
There was any change with Travis ? Cause now Travis build passed successfully ! |
Sorry, I should be more clear You can find more information about this tool here: |
Thank you ! 🙂 |
LGTM |
As mentioned by @CJ-Wright and @beckermr this new PR aims some alterations on the original version of
update_upstream_versions
code to generate a JSON file containing the required new versions outside thegraph
structure. Is also, now communicates with the others functions of that module.Now, I've created a separate module for the upstream sources in the library. A test in a separate repo using Circle CI, was made with an good result (The code runs) Circle Ci.
There are still some missing alterations as:
graph
structure;cli.xsh
file to be read (and execute)."Changes to make graph (or maybe the version bump code) to look at the source of new version numbers. (I think this is the main piece missing from this PR)"
So these are the next steps. (I would also like to apology myself for the late PR).