jenkins-infra / jenkins-contribution-stats

MIT License
1 stars 5 forks source link

./update-stats.sh ends with an error locally. #66

Open gounthar opened 4 months ago

gounthar commented 4 months ago

Locally, I get:

creating pivot table

Computing top comments
2024/06/03 17:47:35 Unexpected error loading./consolidated_data/comments_overview.csv
%!(EXTRA <nil>)
Error: Invalid input file.
Usage:
  jenkins-top-submitters extract [input file] [flags]

Flags:
  -h, --help           help for extract
      --history        Outputs the available activity history for the top submitters
  -m, --month string   Month to extract top submitters. (default "latest")
  -o, --out string     Output file name. Using the ".md" extension will generate a markdown file  (default "top-submitters_YYYY-MM.csv")
  -p, --period int     Number of months to accumulate. (default 12)
  -t, --topSize int    Number of top submitters to extract. (default 35)
      --type string    The type of data being analyzed. Can be either "submitters" or "commenters" (default "submitters")
  -v, --verbose        Displays useful info during the extraction

But the script works fine in a GitHub Action: https://github.com/gounthar/jenkins-submitter-stats/actions/runs/9353654387/job/25744673444

Could it be linked to the version of one of your binaries being outdated on my machine? If that's the case, the check-prerequisites.sh should have warned me. 🤔 And my brew packages seem to be up to date:

brew update && brew doctor
==> Updating Homebrew...
Updated 1 tap (homebrew/core).
==> New Formulae
vexctl
Your system is ready to brew.