Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

chore: Save package statistics to DB #821

Merged
merged 7 commits into from
Feb 8, 2019
Merged

Conversation

miroslavstastny
Copy link
Member

@miroslavstastny miroslavstastny commented Feb 1, 2019

Part of #773.

Each CI build stores results of yarn build:stats to an external DB.
Following data are stored:

  • build number,
  • GIT commit SHA,
  • GIT branch,
  • GIT tag (to filter release builds),
  • GitHub PR URL,
  • build date
  • current bundle size statistics.

No magic is currently done on DB side, data is stored as-is. Based on the required queries, we can restructure the data and migrate all existing ones.

No user-facing change, changelog left intentionally blank.

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@miroslavstastny miroslavstastny changed the title Save package statistics to DB chore: Save package statistics to DB Feb 1, 2019
@miroslavstastny
Copy link
Member Author

This is repo for the DB API endpoint: https://github.com/miroslavstastny/stardust-stats-azure (to be moved to stardust repo later)

@kuzhelov kuzhelov added needs author feedback Author's opinion is asked and removed 🚀 ready for review labels Feb 5, 2019
@codecov
Copy link

codecov bot commented Feb 6, 2019

Codecov Report

Merging #821 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #821   +/-   ##
=======================================
  Coverage   93.54%   93.54%           
=======================================
  Files          21       21           
  Lines         728      728           
  Branches       73       69    -4     
=======================================
  Hits          681      681           
  Misses         47       47

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 2d74195...a27d1c7. Read the comment docs.

@miroslavstastny miroslavstastny added 🚀 ready for review and removed needs author feedback Author's opinion is asked labels Feb 6, 2019
Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

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

👍

@miroslavstastny miroslavstastny merged commit 404b0e3 into master Feb 8, 2019
@miroslavstastny miroslavstastny deleted the chore/save-stats branch February 8, 2019 13:28
if [ -n "${STATS_URI}" ]; then
yarn stats:save
else
echo "STATS_URI not set, skipping"
Copy link
Member

Choose a reason for hiding this comment

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

Seems this should throw, no? Do we want silent passes when stats aren't being saved for some reason?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants