Skip to content

Conversation

@antgonza
Copy link
Member

@antgonza antgonza commented Apr 6, 2018

Discussing with @jdereus we realized that the full qiita-cron-job is taking too long in the system so I thought splitting in smaller commands will allow us to parallelize the commands and also test each step.

@codecov-io
Copy link

codecov-io commented Apr 6, 2018

Codecov Report

Merging #2543 into dev will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #2543      +/-   ##
==========================================
+ Coverage   94.41%   94.41%   +<.01%     
==========================================
  Files         160      160              
  Lines       19453    19458       +5     
==========================================
+ Hits        18367    18372       +5     
  Misses       1086     1086
Impacted Files Coverage Δ
qiita_db/test/test_util.py 99.65% <0%> (ø) ⬆️
qiita_db/util.py 96.58% <0%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7c5832...59b9bcb. Read the comment docs.

Copy link
Contributor

@ElDeveloper ElDeveloper left a comment

Choose a reason for hiding this comment

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

Looks good, just some minor suggestions in the help text.


@commands.command()
@click.option('--remove/--no-remove', default=True,
help=('remove files from that are leftover in the '
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what the help text in here means, would you mind rephrasing. Also, the parenthesis are not needed.


@commands.command()
@click.option('--remove/--no-remove', default=False,
help='check the filesystem and remove not used')
Copy link
Contributor

Choose a reason for hiding this comment

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

Files that are not used?


@commands.command()
@click.option('--remove/--no-remove', default=True,
help=('remove files from the trash folder within the upload '
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for the parenthesis here.

Copy link
Contributor

@wasade wasade left a comment

Choose a reason for hiding this comment

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

Minor comment

.travis.yml Outdated
- kill $QIITA_PID
- if [ ${TEST_ADD_STUDIES} == "True" ]; then test_data_studies/commands.sh ; fi
- if [ ${TEST_ADD_STUDIES} == "True" ]; then qiita-cron-job ; fi
- if [ ${TEST_ADD_STUDIES} == "True" ]; then qiita-cron-job empty_trash_upload_folder ; qiita-cron-job generate_biom_and_metadata_release ; qiita-cron-job purge_filepaths ; qiita-cron-job purge_files_from_filesystem ; qiita-cron-job update_redis_stats ; fi
Copy link
Contributor

Choose a reason for hiding this comment

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

would it make sense to pack this into a single script so it doesn't lead to a such a long single line in the configuration file?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure ... if you feel strong about it ... let me know.

Copy link
Member Author

Choose a reason for hiding this comment

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

thinking about it, this might be useful for other reasons, just added.

@tkosciolek tkosciolek merged commit 2a2cce7 into qiita-spots:dev Apr 7, 2018
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