carpentries / feeds.carpentries.org

A repo to generate dynamic JSON data feeds for The Carpentries
https://feeds.carpentries.org
MIT License
3 stars 2 forks source link

Error in incubator feed #71

Closed maneesha closed 11 months ago

maneesha commented 1 year ago

The incubator feed is failing and this failure holds back the whole data feeds build. I've temporarily removed that make command. According to @tobyhodges in Slack (private link):

I think I found and fixed the problem. Someone had added another life cycle stage tag to their lesson repository in the Incubator, but had not removed the old stage tag, and the script was failing because two different life cycle stages were present and it didn’t know how to deal with that. If I can figure out how to edit the script, I will open a PR to update it so that the later life cycle stage is chosen in cases like this (i.e. stable>beta>alpha>pre-alpha)

This is script that builds the incubator feed. I think we should be able to edit this to choose just one tag but my R skills are not so good so I will leave it to someone who is better at this.

maneesha commented 1 year ago

Once that script is fixed, that line should be added back to the Makefile.

(edit - typo)

zkamvar commented 1 year ago

Note for posterity (because the logs only survive for 90 days at most), here is the error:

Error in `dplyr::mutate()`:
! Problem while computing `life_cycle_tag = purrr::pmap(...)`.
Caused by error in `.f()`:
! More than one tag detected for: carpentries-incubator/lesson-parallel-python
Backtrace:
     ▆
  1. ├─base::source("R/community_lessons.R")
  2. │ ├─base::withVisible(eval(ei, envir))
  3. │ └─base::eval(ei, envir)
  4. │   └─base::eval(ei, envir)
  5. ├─global make_community_lessons_feed("_data/community_lessons.json")
  6. │ └─... %>% ...
  7. ├─global extract_tag(...)
  8. │ └─... %>% ...
  9. ├─dplyr::mutate(...)
 10. ├─dplyr::mutate(...)
 11. ├─global extract_tag(...)
 12. │ └─... %>% ...
 13. ├─dplyr::mutate(...)
 14. ├─dplyr::mutate(...)
 15. ├─dplyr:::mutate.data.frame(...)
 16. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), caller_env = caller_env())
 17. │   ├─base::withCallingHandlers(...)
 18. │   └─mask$eval_all_mutate(quo)
 19. ├─purrr::pmap(...)
 20. │ └─.f(...)
 21. │   └─base::stop("More than one tag detected for: ", full_name)
 22. └─base::.handleSimpleError(...)
 23.   └─dplyr (local) h(simpleError(msg, call))
 24.     └─rlang::abort(...)
There were 50 or more warnings (use warnings() to see the first 50)
Execution halted
maneesha commented 11 months ago

@zkamvar I believe we can close this - can you confirm?

zkamvar commented 11 months ago

Yes, this can be closed.